* {
  box-sizing: border-box;
}

:root {
  --ink: #142019;
  --ink-soft: #39463e;
  --muted: #727b74;
  --line: #dcddd6;
  --canvas: #f4f2ec;
  --paper: #fbfaf6;
  --white: #ffffff;
  --sage: #b9c7b7;
  --sage-light: #e8eee6;
  --sage-dark: #244a35;
  --lime: #dce8ac;
  --gold: #b38a52;
  --purple: #75608e;
  --blue: #517f9f;
  --danger: #a34e42;
  --shadow: 0 20px 60px rgba(39, 48, 41, 0.09);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(222, 230, 205, 0.62), transparent 27rem),
    radial-gradient(circle at 95% 32%, rgba(223, 214, 195, 0.38), transparent 32rem),
    var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
label:focus-within,
a:focus-visible {
  outline: 3px solid rgba(63, 108, 79, 0.3);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  width: min(1240px, calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(36, 50, 40, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--sage-dark);
  border: 1px solid rgba(36, 74, 53, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand > span:last-child {
  display: grid;
  line-height: 1;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  letter-spacing: 0.16em;
  font-weight: 500;
}

.brand small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.privacy-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  color: #566159;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(36, 50, 40, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.privacy-dot {
  position: relative;
  width: 7px;
  height: 7px;
  background: #4c8a5c;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(76, 138, 92, 0.12);
}

main {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 50px;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--sage-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin: 18px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 em {
  color: #667564;
  font-weight: 400;
}

.hero > p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.region-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.region-chips span {
  padding: 7px 11px;
  color: #5d695f;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(36, 50, 40, 0.11);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
}

.analyzer {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(390px, 0.93fr);
  gap: 18px;
  align-items: stretch;
}

.capture-card,
.analysis-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  background: rgba(251, 250, 246, 0.95);
  border: 1px solid rgba(42, 54, 45, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.card-heading,
.result-head,
.processing-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.step-label {
  display: block;
  margin-bottom: 7px;
  color: #7a847c;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.card-heading h2,
.result-head h2,
.section-header h2,
.error-view h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.card-heading h2 {
  font-size: 24px;
}

.source-badge,
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 9px;
  color: #49634f;
  background: var(--sage-light);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.ai-badge i {
  width: 6px;
  height: 6px;
  background: #4d8b5d;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(77, 139, 93, 0.12);
}

.camera-shell {
  position: relative;
  min-height: 425px;
  margin-top: 20px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 70% 22%, rgba(180, 203, 179, 0.28), transparent 15rem),
    linear-gradient(145deg, #1e2c24, #101b15);
  border-radius: var(--radius-lg);
  isolation: isolate;
}

.camera-shell video,
.camera-shell > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.camera-empty::before,
.camera-empty::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.camera-empty::after {
  width: 310px;
  height: 310px;
}

.camera-icon {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  color: #dfe9dd;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.camera-icon svg {
  width: 31px;
}

.camera-empty strong,
.camera-empty span {
  position: relative;
  z-index: 1;
}

.camera-empty strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
}

.camera-empty span {
  max-width: 280px;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 12px;
  line-height: 1.55;
}

.guide-frame {
  position: absolute;
  inset: 34px;
  z-index: 3;
  pointer-events: none;
}

.guide-frame i {
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, 0.78);
  border-style: solid;
}

.guide-frame i:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
  border-radius: 12px 0 0;
}

.guide-frame i:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
  border-radius: 0 12px 0 0;
}

.guide-frame i:nth-child(3) {
  right: 0;
  bottom: 0;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 12px;
}

.guide-frame i:nth-child(4) {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 12px;
}

.camera-label {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  background: rgba(16, 27, 21, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.camera-label span {
  width: 6px;
  height: 6px;
  background: #9ad2a4;
  border-radius: 50%;
}

.camera-label b {
  font-size: 8px;
  letter-spacing: 0.13em;
}

.scan-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  background: rgba(32, 68, 47, 0.13);
  pointer-events: none;
}

.scan-line {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 2px;
  top: 10%;
  background: linear-gradient(90deg, transparent, rgba(223, 239, 179, 0.95), transparent);
  box-shadow: 0 0 18px rgba(223, 239, 179, 0.65);
  animation: scan 2.2s ease-in-out infinite;
}

.scan-glow {
  position: absolute;
  left: 0;
  right: 0;
  top: -35%;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(218, 237, 180, 0.12));
  animation: scanGlow 2.2s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { top: 8%; opacity: 0.65; }
  50% { top: 90%; opacity: 1; }
}

@keyframes scanGlow {
  0%, 100% { top: -27%; }
  50% { top: 63%; }
}

.capture-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.button {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.button svg {
  width: 20px;
  height: 20px;
}

.button-dark {
  color: var(--white);
  background: #18231c;
  box-shadow: 0 8px 22px rgba(24, 35, 28, 0.12);
}

.button-dark:hover:not(:disabled) {
  background: #233129;
}

.button-light {
  color: var(--ink);
  background: #eeeee8;
  border: 1px solid rgba(34, 48, 38, 0.08);
}

.button-light:hover:not(:disabled) {
  background: #e8e9e2;
}

.button-accent {
  color: #1c2b20;
  background: var(--lime);
  box-shadow: 0 8px 22px rgba(101, 123, 62, 0.12);
}

.button-accent:hover:not(:disabled) {
  background: #d2e294;
}

.button-wide {
  width: 100%;
}

#photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.camera-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 11px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  color: #59655d;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.text-button svg {
  width: 16px;
}

.photo-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  padding: 12px 13px;
  color: #58645b;
  background: #f0f1eb;
  border-radius: 13px;
}

.photo-tip svg {
  flex: 0 0 auto;
  width: 17px;
  margin-top: 1px;
}

.photo-tip p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.photo-tip strong {
  display: block;
  color: #303d34;
}

.analysis-card {
  min-height: 100%;
}

.state-view {
  min-height: 100%;
}

.ready-view {
  display: flex;
  flex-direction: column;
}

.ready-visual {
  min-height: 155px;
  display: grid;
  place-items: center;
  margin: 22px 0 12px;
}

.skin-orb {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle at 37% 33%, #f9e6d5 0, #e5bea2 37%, #c58e72 72%, #a87562 100%);
  box-shadow:
    inset -17px -20px 32px rgba(109, 63, 48, 0.19),
    inset 14px 12px 28px rgba(255, 255, 255, 0.35),
    0 18px 38px rgba(119, 86, 69, 0.18);
}

.skin-orb::before,
.skin-orb::after {
  content: "";
  position: absolute;
  inset: -17px;
  border: 1px solid rgba(90, 107, 92, 0.13);
  border-radius: 50%;
}

.skin-orb::after {
  inset: -32px;
  border-color: rgba(90, 107, 92, 0.07);
}

.skin-orb span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(97, 53, 40, 0.28);
  border-radius: 50%;
}

.skin-orb span:nth-child(1) { top: 32%; left: 29%; }
.skin-orb span:nth-child(2) { top: 58%; left: 63%; }
.skin-orb span:nth-child(3) { top: 47%; left: 44%; }

.ready-copy {
  text-align: center;
}

.ready-copy h3,
.processing-view h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
}

.ready-copy p,
.processing-view > p {
  max-width: 370px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.process-preview {
  margin: 22px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.process-preview li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}

.process-preview li > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #657068;
  background: #eceee8;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 750;
}

.process-preview div {
  display: grid;
  gap: 3px;
}

.process-preview b {
  font-size: 11px;
}

.process-preview small {
  color: var(--muted);
  font-size: 9px;
}

.voice-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 13px;
  color: #657068;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.voice-choice input {
  position: absolute;
  opacity: 0;
}

.switch {
  position: relative;
  width: 30px;
  height: 18px;
  background: #cdd1ca;
  border-radius: 999px;
  transition: background 180ms ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform 180ms ease;
}

.voice-choice input:checked + .switch {
  background: #4d755a;
}

.voice-choice input:checked + .switch::after {
  transform: translateX(12px);
}

.processing-view {
  padding: 4px 3px;
  text-align: center;
}

.processing-percent {
  color: #55625a;
  font-size: 11px;
  font-weight: 750;
}

.processing-visual {
  position: relative;
  width: 178px;
  height: 178px;
  display: grid;
  place-items: center;
  margin: 35px auto 22px;
}

.processing-core {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: #3f664c;
  background: radial-gradient(circle at 35% 30%, #f6f8e8, #d9e5b7);
  border: 1px solid rgba(64, 95, 72, 0.18);
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(59, 83, 64, 0.17);
}

.processing-core svg {
  width: 37px;
}

.pulse-ring {
  position: absolute;
  border: 1px solid rgba(79, 113, 88, 0.2);
  border-radius: 50%;
  animation: pulse 2.4s ease-out infinite;
}

.ring-one {
  inset: 22px;
}

.ring-two {
  inset: 0;
  animation-delay: 0.7s;
}

@keyframes pulse {
  0% { transform: scale(0.72); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

.progress-track {
  height: 5px;
  margin: 24px 0 22px;
  overflow: hidden;
  background: #e5e7df;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 15%;
  height: 100%;
  background: linear-gradient(90deg, #719379, #d8e5a9);
  border-radius: inherit;
  transition: width 700ms ease;
}

.stage-list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.stage-list li {
  display: grid;
  grid-template-columns: 18px 1fr 18px;
  align-items: center;
  gap: 10px;
  padding: 12px 5px;
  color: #9aa09b;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  transition: color 200ms ease;
}

.stage-list li i {
  width: 9px;
  height: 9px;
  border: 1px solid #c3c8c2;
  border-radius: 50%;
}

.stage-list li b {
  width: 15px;
  height: 15px;
  border: 1px solid transparent;
  border-radius: 50%;
}

.stage-list li.active {
  color: #34433a;
}

.stage-list li.active i {
  background: #6e9478;
  border-color: #6e9478;
  box-shadow: 0 0 0 4px rgba(110, 148, 120, 0.12);
}

.stage-list li.active b {
  border-top-color: #6e9478;
  animation: spin 0.9s linear infinite;
}

.stage-list li.done {
  color: #56645b;
}

.stage-list li.done i {
  position: relative;
  background: #6e9478;
  border-color: #6e9478;
}

.stage-list li.done i::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 1px;
  width: 4px;
  height: 2px;
  border: solid white;
  border-width: 0 0 1px 1px;
  transform: rotate(-45deg);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.result-view {
  padding: 1px;
}

.result-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.result-head h2 {
  font-size: 30px;
}

#region-label {
  padding: 5px 8px;
  color: #52635a;
  background: var(--sage-light);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.confidence {
  width: 68px;
  height: 68px;
  display: grid;
  align-content: center;
  justify-items: center;
  flex: 0 0 auto;
  background: #eff2e8;
  border: 1px solid rgba(62, 87, 67, 0.1);
  border-radius: 50%;
}

.confidence strong {
  font-size: 15px;
}

.confidence small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.result-summary {
  margin: 19px 0;
  padding: 15px 16px;
  color: #435047;
  background: #f0f2eb;
  border-left: 3px solid #78927d;
  border-radius: 0 13px 13px 0;
  font-size: 12px;
  line-height: 1.65;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.score-card {
  padding: 12px;
  background: #f5f5f0;
  border: 1px solid rgba(36, 50, 40, 0.08);
  border-radius: 13px;
}

.score-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.score-card span {
  color: #69736c;
  font-size: 9px;
  font-weight: 650;
}

.score-card strong {
  font-size: 10px;
}

.meter {
  height: 4px;
  overflow: hidden;
  background: #dddfd9;
  border-radius: 999px;
}

.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: #718e78;
  border-radius: inherit;
  transition: width 700ms ease;
}

.result-section {
  margin-top: 21px;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}

.section-title h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
}

.section-title span {
  color: #8c948e;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.observations {
  display: grid;
  gap: 7px;
}

.observation {
  position: relative;
  padding: 11px 12px 11px 32px;
  background: #f7f6f2;
  border: 1px solid rgba(36, 50, 40, 0.07);
  border-radius: 12px;
}

.observation::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 13px;
  width: 8px;
  height: 8px;
  background: #8fa094;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(143, 160, 148, 0.12);
}

.observation[data-tone="attention"]::before {
  background: #c68b66;
  box-shadow: 0 0 0 4px rgba(198, 139, 102, 0.12);
}

.observation[data-tone="positive"]::before {
  background: #6d9778;
  box-shadow: 0 0 0 4px rgba(109, 151, 120, 0.12);
}

.observation strong {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
}

.observation p {
  margin: 0;
  color: #737b75;
  font-size: 9px;
  line-height: 1.45;
}

.recommendation {
  display: grid;
  grid-template-columns: 105px 1fr;
  min-height: 122px;
  overflow: hidden;
  background: #edf1e7;
  border: 1px solid rgba(53, 83, 61, 0.12);
  border-radius: 15px;
}

.recommendation.product-blue { background: #eaf1f4; }
.recommendation.product-purple { background: #f0ecf3; }
.recommendation.product-gold { background: #f4eee3; }

.recommendation img {
  width: 100%;
  height: 100%;
  min-height: 122px;
  object-fit: cover;
}

.recommendation-copy {
  align-self: center;
  padding: 14px;
}

.recommendation-copy > span {
  color: #667269;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recommendation-copy h4 {
  margin: 5px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 400;
}

.recommendation-copy p {
  margin: 0;
  color: #606b63;
  font-size: 9px;
  line-height: 1.48;
}

.recommendation-empty {
  padding: 16px;
  color: #5f6b62;
  background: #f2f3ee;
  border-radius: 13px;
  font-size: 10px;
  line-height: 1.55;
}

.routine-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  counter-reset: routine;
  list-style: none;
}

.routine-list li {
  position: relative;
  min-height: 32px;
  padding: 8px 10px 8px 34px;
  color: #59645c;
  background: #f7f6f2;
  border-radius: 10px;
  font-size: 9px;
  line-height: 1.45;
  counter-increment: routine;
}

.routine-list li::before {
  content: counter(routine, decimal-leading-zero);
  position: absolute;
  left: 10px;
  color: #7c8f7f;
  font-size: 8px;
  font-weight: 750;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}

.result-actions .button {
  min-height: 44px;
  font-size: 11px;
}

.error-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 18px;
  text-align: center;
}

.error-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: #9d6557;
  background: #f4e9e4;
  border-radius: 50%;
}

.error-icon svg {
  width: 34px;
}

.error-view h2 {
  font-size: 28px;
}

.error-view > p {
  max-width: 370px;
  margin: 12px auto 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.error-tips {
  width: 100%;
  max-width: 350px;
  margin: 0 0 24px;
  padding: 14px 18px 14px 34px;
  color: #59645c;
  background: #f3f3ee;
  border-radius: 13px;
  text-align: left;
  font-size: 10px;
  line-height: 1.8;
}

.products {
  padding: 105px 0 82px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 28px;
}

.section-header .eyebrow {
  justify-content: flex-start;
}

.section-header h2 {
  margin-top: 12px;
  font-size: clamp(35px, 4vw, 50px);
  letter-spacing: -0.035em;
}

.section-header > p {
  max-width: 380px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.product-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(36, 50, 40, 0.1);
  border-radius: var(--radius-lg);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card:hover,
.product-card.is-matched {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card.is-matched {
  border-color: rgba(58, 96, 69, 0.5);
}

.product-card.is-matched::after {
  content: "Analiz eşleşmesi";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 9px;
  color: white;
  background: rgba(29, 56, 37, 0.88);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.product-card {
  position: relative;
}

.product-image {
  height: 245px;
  overflow: hidden;
  background: #eceae3;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.product-card:hover img {
  transform: scale(1.025);
}

.product-copy {
  padding: 20px;
}

.product-copy > span {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-blue .product-copy > span { color: var(--blue); }
.product-purple .product-copy > span { color: var(--purple); }
.product-gold .product-copy > span { color: var(--gold); }

.product-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.product-copy p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 26px 0;
  border-top: 1px solid rgba(36, 50, 40, 0.13);
  border-bottom: 1px solid rgba(36, 50, 40, 0.13);
}

.trust-row > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 13px;
  padding: 4px 26px;
  border-right: 1px solid rgba(36, 50, 40, 0.1);
}

.trust-row > div:first-child {
  padding-left: 0;
}

.trust-row > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.trust-row span {
  color: #819084;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.trust-row p {
  display: grid;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.trust-row strong {
  color: var(--ink);
  font-size: 11px;
}

footer {
  width: min(1240px, calc(100% - 40px));
  margin: 70px auto 0;
  padding: 28px 0 40px;
  display: grid;
  grid-template-columns: auto minmax(300px, 650px) auto;
  align-items: start;
  gap: 40px;
  color: var(--muted);
  border-top: 1px solid rgba(36, 50, 40, 0.12);
}

.footer-brand {
  color: #49554d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.footer-brand span {
  color: #a7aea9;
}

footer p {
  margin: 0;
  font-size: 9px;
  line-height: 1.65;
  text-align: center;
}

footer small {
  font-size: 9px;
  text-align: right;
}

@media (max-width: 980px) {
  .analyzer {
    grid-template-columns: 1fr;
  }

  .analysis-card {
    min-height: 620px;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-card:last-child {
    grid-column: 1 / -1;
  }

  .product-card:last-child .product-image {
    height: 320px;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .trust-row > div,
  .trust-row > div:first-child,
  .trust-row > div:last-child {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(36, 50, 40, 0.08);
  }

  .trust-row > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1240px);
  }

  .site-header {
    min-height: 76px;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
  }

  .brand strong {
    font-size: 21px;
  }

  .brand small {
    font-size: 7px;
  }

  .privacy-pill {
    max-width: 112px;
    padding: 7px 9px;
    font-size: 8px;
    line-height: 1.25;
  }

  .hero {
    padding: 50px 0 34px;
  }

  .hero h1 {
    margin-top: 14px;
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero > p {
    font-size: 14px;
  }

  .capture-card,
  .analysis-card {
    padding: 17px;
    border-radius: 23px;
  }

  .camera-shell {
    min-height: 385px;
    margin-top: 16px;
  }

  .guide-frame {
    inset: 24px;
  }

  .capture-actions,
  .result-actions {
    grid-template-columns: 1fr;
  }

  .analysis-card {
    min-height: 600px;
  }

  .ready-visual {
    min-height: 135px;
    margin-top: 14px;
  }

  .process-preview {
    margin: 17px 0;
  }

  .processing-visual {
    margin-top: 25px;
  }

  .result-head h2 {
    font-size: 26px;
  }

  .confidence {
    width: 60px;
    height: 60px;
  }

  .recommendation {
    grid-template-columns: 95px 1fr;
  }

  .products {
    padding: 75px 0 60px;
  }

  .section-header {
    display: block;
  }

  .section-header > p {
    margin-top: 16px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card:last-child {
    grid-column: auto;
  }

  .product-image,
  .product-card:last-child .product-image {
    height: 255px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 52px;
    text-align: center;
  }

  footer small {
    text-align: center;
  }
}

@media (max-width: 390px) {
  .camera-shell {
    min-height: 330px;
  }

  .card-heading h2 {
    font-size: 21px;
  }

  .score-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
