    :root {
      --bg: oklch(98.6% 0.008 247);
      --surface: oklch(100% 0 0);
      --surface-2: oklch(97.6% 0.013 248);
      --fg: oklch(20.5% 0.041 260);
      --muted: oklch(52.9% 0.048 257);
      --soft: oklch(67.6% 0.036 256);
      --text-primary: #333333;
      --text-secondary: #666666;
      --text-tertiary: #999999;
      --color-text-primary: var(--text-primary);
      --color-text-secondary: var(--text-secondary);
      --color-text-tertiary: var(--text-tertiary);
      --color-text-disabled: #CFCFCF;
      --border: oklch(91.7% 0.023 255);
      --color-border: #E2E8F0;
      --accent: oklch(57.9% 0.225 277);
      --accent-2: oklch(71.2% 0.169 249);
      --accent-soft: oklch(94.3% 0.032 260);
      --color-primary: #5555FF;
      --color-primary-light: #EEF2FF;
      --color-surface: #FFFFFF;
      --success: oklch(63.2% 0.158 153);
      --warning: oklch(76.8% 0.164 70);
      --danger: oklch(60.4% 0.205 25);
      --gradient: linear-gradient(135deg, #5EA9F9 0%, #5555FF 54%, #545BF6 100%);
      --hero-gradient: linear-gradient(165deg, #B9FBFF 8.17%, #5EA9F9 29.61%, #5555FF 53.18%, #D500FF 76.88%);
      --shadow-card: 0 10px 10px rgba(184, 184, 202, 0.1), 0 60px 60px rgba(178, 178, 228, 0.2);
      --shadow-hover: 0 12px 12px rgba(184, 184, 202, 0.15), 0 70px 70px rgba(178, 178, 228, 0.25);
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --radius-xl: 24px;
      --max: 1180px;
      --display: "DM Sans", Arial, sans-serif;
      --body: "DM Sans", Arial, sans-serif;
      --mono: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background:
        linear-gradient(180deg, #fbfbff 0%, var(--bg) 46%, var(--surface-2) 100%);
      color: var(--color-text-primary);
      font-family: var(--body);
      letter-spacing: 0;
    }
    a { color: inherit; text-decoration: none; }
    button, input { font: inherit; }
    .wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      background: color-mix(in oklch, var(--bg) 86%, transparent);
      border-bottom: 1px solid transparent;
      backdrop-filter: blur(16px);
      box-shadow: 0 10px 28px transparent;
      transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    }
    .topbar.is-scrolled {
      border-bottom-color: transparent;
      box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    }
    .nav {
      height: 72px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 800;
      letter-spacing: 0;
    }
    .brand-mark, .icon-box {
      display: grid;
      place-items: center;
      background: var(--gradient);
      color: white;
      box-shadow: 0 10px 24px color-mix(in oklch, var(--accent) 28%, transparent);
    }
    .brand-mark { width: 36px; height: 36px; border-radius: 11px; overflow: hidden; }
    .brand-mark img { width: 100%; height: 100%; display: block; }
    .navlinks { display: flex; align-items: center; gap: 22px; color: var(--color-text-secondary); font-size: 14px; font-weight: 600; }
    .navlinks a:hover { color: var(--color-text-primary); }
    .nav-actions { display: flex; align-items: center; gap: 10px; }
    .nav-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 0 18px;
      border-radius: 999px;
      border: 0;
      background: var(--gradient);
      background-size: 100% 100%;
      color: white;
      font-weight: 800;
      box-shadow: none;
      transition: background-size .4s ease, transform .3s ease, box-shadow .3s ease;
    }
    .nav-cta:hover { background-size: 110% 110%; transform: translateY(-1px); box-shadow: none; }
    .section { padding: 72px 0; }
    .section.tight { padding: 56px 0; }
    .what-is-section,
    [id="how"] { padding: 80px 0; }
    [id="features"] { padding: 72px 0; }
    [id="related"] { padding: 64px 0; }
    [id="faq"] { padding: 48px 0 80px; }
    .hero-grid {
      display: grid;
      gap: 28px;
      align-items: center;
      min-height: calc(100vh - 72px);
      padding: 54px 0 70px;
      text-align: center;
    }
    .hero-copy {
      display: grid;
      justify-items: center;
    }
    .hero-product {
      display: grid;
      grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr);
      gap: 22px;
      align-items: stretch;
      width: 100%;
      margin-top: 14px;
      padding: 18px;
      border: 1px solid color-mix(in oklch, var(--border) 78%, white);
      border-radius: 32px;
      background: color-mix(in oklch, var(--surface) 88%, white);
      box-shadow: 0 18px 48px rgba(24, 32, 28, .08);
    }
    .hero-media {
      position: relative;
      min-height: 430px;
      border-radius: 24px;
      overflow: hidden;
      background: linear-gradient(135deg, #f2efff, #f8fbff);
      border: 1px solid var(--border);
    }
    .hero-media img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }
    .hero-media-note {
      position: absolute;
      left: 18px;
      bottom: 18px;
      padding: 10px 13px;
      border-radius: 14px;
      background: rgba(255,255,255,.82);
      color: var(--color-text-primary);
      font-size: 13px;
      font-weight: 800;
      box-shadow: 0 14px 34px rgba(31, 41, 55, .12);
    }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      border: 0;
      border-radius: 999px;
      background: var(--color-primary-light);
      color: var(--color-primary);
      font-size: 13px;
      font-weight: 600;
    }
    h1, h2, h3, p { margin: 0; }
    h1 {
      margin-top: 16px;
      font-family: var(--display);
      font-size: clamp(36px, 5vw, 56px);
      font-weight: 800;
      line-height: 1.1;
      letter-spacing: 0;
      color: var(--color-text-primary);
      max-width: 860px;
    }
    .hero-title-gradient {
      background: var(--hero-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .hero-subhead {
      max-width: 700px;
      margin-top: 18px;
      color: var(--color-text-primary);
      font-family: var(--display);
      font-size: clamp(21px, 2.5vw, 30px);
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: 0;
      text-align: inherit;
    }
    h2 {
      font-family: var(--display);
      font-size: clamp(24px, 3vw, 36px);
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: 0;
      color: var(--color-text-primary);
      text-align: center;
    }
    h3 {
      font-size: 18px;
      font-weight: 600;
      line-height: 1.3;
      color: var(--color-text-primary);
    }
    .lead {
      margin-top: 22px;
      color: var(--color-text-secondary);
      font-size: clamp(17px, 1.7vw, 19px);
      line-height: 1.6;
      max-width: 760px;
    }
    .section-intro {
      max-width: 760px;
      margin: 18px auto 0;
      color: var(--color-text-secondary);
      font-size: 16px;
      line-height: 1.6;
      text-align: center;
    }
    .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
    .chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 38px;
      padding: 0 14px;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--surface);
      color: var(--color-text-secondary);
      font-size: 14px;
      font-weight: 700;
      box-shadow: none;
    }
    .trust-chips {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 16px;
      padding: 24px 0 34px;
    }
    .trust-chip {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: 100px;
      font-size: 14px;
      font-weight: 500;
      color: var(--color-text-secondary);
      box-shadow: none;
    }
    .trust-chip .chip-bold {
      font-weight: 700;
      color: var(--color-text-primary);
    }
    .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; align-items: center; }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 46px;
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0 18px;
      background: var(--surface);
      color: var(--fg);
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 8px 22px rgba(31, 41, 55, .06);
      transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background-size .4s ease;
    }
    .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31, 41, 55, .10); }
    .btn.primary {
      border: 0;
      background: linear-gradient(131.63deg, #5EA9F9 20.59%, #5555FF 91.67%);
      background-size: 100% 100%;
      color: white;
      padding: 0 22px;
      box-shadow: 0 10px 22px rgba(24, 32, 28, .10);
    }
    .btn.primary:hover {
      background-size: 110% 110%;
      box-shadow: 0 8px 20px rgba(24, 32, 28, .12);
    }
    .btn.ghost { background: transparent; }
    .upload-card {
      position: relative;
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      background: var(--surface);
      padding: 22px;
      box-shadow: none;
    }
    .upload-drop {
      position: relative;
      min-height: 430px;
      display: grid;
      place-items: center;
      text-align: center;
      border: 1.5px dashed color-mix(in oklch, var(--accent) 48%, var(--border));
      border-radius: 20px;
      background: linear-gradient(135deg, #f8fbff, #ffffff 46%, #f7f1ff);
      padding: 44px;
      overflow: hidden;
      transition: border-color .2s ease, background .2s ease;
    }
    .upload-drop.is-drag { border-color: var(--accent); background: color-mix(in oklch, var(--accent-soft) 70%, var(--surface)); }
    .upload-state { display: grid; justify-items: center; gap: 15px; max-width: 390px; }
    .icon-box { width: 58px; height: 58px; border-radius: 18px; font-size: 27px; }
    .upload-title { font-size: 20px; font-weight: 700; color: var(--color-text-primary); }
    .upload-help { color: var(--color-text-tertiary); line-height: 1.55; }
    .upload-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 4px; }
    .sample-link {
      border: 0;
      background: transparent;
      color: var(--accent);
      font-weight: 800;
      cursor: pointer;
      padding: 6px 0;
    }
    .preview {
      width: min(100%, 330px);
      aspect-ratio: 4 / 3;
      border-radius: 18px;
      border: 1px solid var(--border);
      background:
        radial-gradient(circle at 50% 33%, oklch(88% .045 64) 0 38px, transparent 39px),
        radial-gradient(circle at 42% 28%, oklch(24% .04 260) 0 4px, transparent 5px),
        radial-gradient(circle at 58% 28%, oklch(24% .04 260) 0 4px, transparent 5px),
        radial-gradient(ellipse at 50% 72%, oklch(62% .09 262) 0 78px, transparent 80px),
        linear-gradient(135deg, oklch(94% .05 250), oklch(90% .06 315));
      background-size: cover;
      background-position: center;
      box-shadow: inset 0 0 0 1px color-mix(in oklch, white 40%, transparent);
    }
    .status-row {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      color: var(--success);
      font-weight: 850;
    }
    .meter {
      width: min(330px, 100%);
      height: 10px;
      border-radius: 999px;
      background: color-mix(in oklch, var(--border) 72%, transparent);
      overflow: hidden;
    }
    .meter > span {
      display: block;
      height: 100%;
      width: 100%;
      background: var(--gradient);
      border-radius: inherit;
      transform: scaleX(0);
      transform-origin: left center;
      transition: transform .45s ease;
    }
    .result-box {
      width: min(370px, 100%);
      padding: 18px;
      border: 1px solid color-mix(in oklch, var(--success) 36%, var(--border));
      border-radius: var(--radius-lg);
      background: color-mix(in oklch, var(--success) 10%, var(--surface));
      text-align: left;
    }
    .result-age {
      font-family: var(--mono);
      font-size: 42px;
      font-weight: 900;
      color: var(--color-text-primary);
    }
    .face-viz {
      position: relative;
      width: min(370px, 100%);
      aspect-ratio: 4 / 3;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      background: var(--surface);
    }
    .face-viz svg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: block;
    }
    .face-viz {
      background-size: contain;
      background-position: center;
      background-repeat: no-repeat;
      background-color: color-mix(in oklch, var(--surface-2) 74%, var(--surface));
    }
    .face-web-outline,
    .face-web-brow,
    .face-web-iris,
    .face-web-nose,
    .face-web-mouth,
    .scan-line,
    .scan-tag__line { fill: none; vector-effect: non-scaling-stroke; }
    .face-web-region {
      stroke-dasharray: 100;
      stroke-dashoffset: 100;
      animation: drawLandmark 1.05s cubic-bezier(.2,.7,.2,1) forwards;
      animation-delay: calc(240ms + var(--i) * 145ms);
    }
    .face-web-outline { stroke: color-mix(in oklch, var(--accent) 72%, white); stroke-width: 1.55; }
    .face-web-brow,
    .face-web-iris,
    .face-web-nose,
    .face-web-mouth { stroke: color-mix(in oklch, var(--success) 72%, white); stroke-width: 1.15; }
    .face-web-node {
      fill: var(--color-primary);
      opacity: 0;
      transform-box: fill-box;
      transform-origin: center;
      animation: nodeReveal .42s cubic-bezier(.2,.7,.2,1) forwards;
      animation-delay: calc(560ms + var(--i) * 24ms);
    }
    .face-web-node--mid {
      fill: color-mix(in oklch, var(--accent) 64%, white);
      opacity: 0;
    }
    .scan-line {
      stroke: var(--warning);
      stroke-width: 1.1;
      stroke-dasharray: 100;
      stroke-dashoffset: 100;
      animation: drawLandmark .7s ease-out forwards;
      animation-delay: calc(1400ms + var(--i) * 135ms);
    }
    .scan-callout {
      fill: color-mix(in oklch, var(--surface) 88%, transparent);
      stroke: color-mix(in oklch, var(--warning) 48%, var(--border));
      stroke-width: 1;
      filter: drop-shadow(0 8px 18px rgba(24,32,28,.12));
    }
    .scan-label {
      fill: var(--color-text-primary);
      font: 800 16px var(--display);
    }
    .scan-label__score {
      fill: var(--color-primary);
      font: 900 30px var(--display);
    }
    .scan-tag,
    .scan-age {
      opacity: 0;
      animation: tagReveal .48s cubic-bezier(.2,.7,.2,1) forwards;
      animation-delay: calc(1500ms + var(--i) * 135ms);
    }
    .scan-tag__line {
      stroke: color-mix(in oklch, var(--accent) 68%, white);
      stroke-width: .8;
      stroke-dasharray: 100;
      stroke-dashoffset: 100;
      animation: drawLandmark .7s ease-out forwards;
      animation-delay: calc(1360ms + var(--i) * 135ms);
    }
    .scan-tag__box {
      fill: rgba(24,32,28,.72);
      stroke: color-mix(in oklch, var(--accent) 58%, white);
      stroke-width: 1;
      filter: drop-shadow(0 8px 16px rgba(24,32,28,.2));
    }
    .scan-tag__text {
      fill: #f7faf7;
      font: 800 13px var(--display);
      letter-spacing: .04em;
    }
    .analysis-scan {
      position: relative;
      width: min(370px, 100%);
      aspect-ratio: 4 / 3;
      border-radius: var(--radius-lg);
      overflow: hidden;
      border: 1px solid color-mix(in oklch, var(--accent) 34%, var(--border));
      background: color-mix(in oklch, var(--accent-soft) 42%, var(--surface));
    }
    .analysis-scan::before {
      content: "";
      position: absolute;
      inset: -22%;
      background: conic-gradient(from 0deg, transparent, color-mix(in oklch, var(--accent) 34%, transparent), transparent 42%);
      animation: scanSpin 1.5s linear infinite;
    }
    .analysis-scan::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 12%;
      height: 3px;
      background: var(--gradient);
      box-shadow: 0 0 22px color-mix(in oklch, var(--accent) 46%, transparent);
      animation: scanLine 1.2s ease-in-out infinite alternate;
    }
    .camera-sheet {
      position: fixed;
      inset: 0;
      z-index: 40;
      display: grid;
      place-items: center;
      padding: 24px;
      background: rgba(15, 23, 42, .74);
      backdrop-filter: blur(14px);
    }
    .camera-panel {
      width: min(900px, calc(100vw - 28px));
      max-height: calc(100dvh - 28px);
      overflow: auto;
      border: 1px solid color-mix(in oklch, white 18%, transparent);
      border-radius: var(--radius-xl);
      background: var(--surface);
      box-shadow: 0 30px 80px rgba(15, 23, 42, .34);
      padding: 18px;
    }
    .camera-panel video,
    .camera-panel canvas {
      width: 100%;
      height: min(58dvh, 560px);
      max-height: calc(100dvh - 230px);
      aspect-ratio: 16 / 9;
      display: block;
      border-radius: var(--radius-lg);
      background: var(--surface-2);
      object-fit: cover;
    }
    @keyframes scanSpin { to { transform: rotate(1turn); } }
    @keyframes scanLine { from { transform: translateY(0); } to { transform: translateY(260px); } }
    @media (prefers-reduced-motion: reduce) {
      .analysis-scan::before,
      .analysis-scan::after { animation: none; }
      .btn,
      .card,
      .nav-cta,
      .meter > span { transition: none; }
    }
    .micro { color: var(--color-text-tertiary); font-size: 13px; line-height: 1.5; }
    .below-note {
      margin-top: 14px;
      color: var(--color-text-tertiary);
      text-align: center;
      font-size: 14px;
    }
    .trust-grid, .steps-grid, .feature-grid, .related-grid, .why-grid {
      display: grid;
      gap: 18px;
      margin-top: 34px;
    }
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid { grid-template-columns: repeat(3, 1fr); }
    .card {
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      background: var(--surface);
      padding: 28px 24px;
      box-shadow: 0 12px 36px rgba(31, 41, 55, .06);
      transition: box-shadow .3s ease, transform .3s ease;
    }
    .card:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(31, 41, 55, .08); }
    .trust-card { text-align: center; }
    .trust-icon { font-size: 25px; }
    .trust-key {
      display: block;
      margin-top: 10px;
      font-size: 22px;
      font-weight: 900;
    }
    .trust-desc { margin-top: 6px; color: var(--color-text-tertiary); font-size: 14px; line-height: 1.5; }
    .step-num {
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      background: var(--gradient);
      color: white;
      font-family: var(--mono);
      font-weight: 900;
      margin-bottom: 18px;
    }
    .card p { margin-top: 8px; color: var(--color-text-tertiary); font-size: 14px; line-height: 1.5; }
    .editorial {
      max-width: 880px;
      margin: 0 auto;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: 46px 0;
    }
    .editorial h2 { text-align: left; }
    .editorial p {
      margin-top: 20px;
      color: var(--color-text-secondary);
      font-size: 16px;
      line-height: 1.6;
    }
    .tool-shell {
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
      gap: 24px;
      margin-top: 36px;
      padding: 24px;
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      background: var(--surface);
      box-shadow: 0 14px 40px rgba(24, 32, 28, .07);
    }
    .result-panel {
      border-radius: 20px;
      border: 1px solid var(--border);
      background: var(--surface-2);
      padding: 24px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 18px;
      min-height: 420px;
    }
    .panel-title { font-size: 18px; font-weight: 900; }
    .result-placeholder {
      flex: 1;
      min-height: 240px;
      display: grid;
      place-items: center;
      border: 1px solid color-mix(in oklch, var(--border) 80%, transparent);
      border-radius: 18px;
      background:
        linear-gradient(90deg, color-mix(in oklch, var(--border) 55%, transparent) 1px, transparent 1px),
        linear-gradient(180deg, color-mix(in oklch, var(--border) 45%, transparent) 1px, transparent 1px),
        color-mix(in oklch, var(--surface) 76%, var(--surface-2));
      background-size: 36px 36px;
      color: var(--color-text-tertiary);
    }
    .result-placeholder-inner {
      display: grid;
      justify-items: center;
      gap: 12px;
      text-align: center;
      font-size: 13px;
      font-weight: 700;
    }
    .privacy-list { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
    .privacy-list li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: var(--color-text-secondary);
      line-height: 1.55;
    }
    .feature-icon {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 12px;
      background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
      color: var(--color-primary);
      margin-bottom: 16px;
    }
    .feature-grid .card {
      max-width: 320px;
      width: 100%;
      justify-self: center;
    }
    .feature-grid .card h3 { font-size: 16px; }
    .related-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin-top: 28px;
    }
    .related-card {
      min-height: 170px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
    }
    .related-card a {
      color: var(--accent);
      font-weight: 800;
    }
    .result-related {
      display: grid;
      gap: 8px;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid var(--border);
      color: var(--color-text-secondary);
      font-size: 14px;
      line-height: 1.45;
    }
    .result-related strong { color: var(--color-text-primary); }
    .result-related a { color: var(--accent); font-weight: 800; }
    .faq {
      max-width: 900px;
      margin: 34px auto 0;
      display: grid;
      gap: 12px;
    }
    details {
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--surface);
      box-shadow: none;
      overflow: hidden;
    }
    details[open] {
      border-color: color-mix(in oklch, var(--accent) 32%, var(--border));
    }
    summary {
      min-height: 58px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 0 18px;
      cursor: pointer;
      font-weight: 600;
      color: var(--color-text-primary);
      list-style: none;
    }
    summary::-webkit-details-marker { display: none; }
    summary::after { content: "+"; font-family: var(--mono); color: var(--color-text-tertiary); font-size: 20px; font-weight: 400; transition: transform .2s ease; }
    details[open] summary::after { content: "-"; }
    details p { padding: 0 18px 18px; color: var(--color-text-secondary); font-size: 15px; line-height: 1.6; }
    .cta {
      border-radius: 28px;
      background: var(--gradient);
      color: white;
      padding: 54px;
      text-align: center;
      box-shadow: 0 22px 54px color-mix(in oklch, var(--accent) 32%, transparent);
    }
    .cta h2, .cta p { color: white; }
    .cta p { max-width: 720px; margin: 18px 0 0; opacity: .86; line-height: 1.7; font-size: 18px; }
    .cta .btn { margin-top: 26px; background: white; color: #4F46E5; border: 0; }
    .footer {
      padding: 64px 0 34px;
      background: color-mix(in oklch, var(--surface-2) 72%, var(--surface));
      color: var(--color-text-secondary);
      border-top: 1px solid var(--border);
    }
    .footer-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
      gap: 32px;
      margin-bottom: 44px;
    }
    .footer-title {
      margin: 0 0 16px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--color-text-primary);
    }
    .footer-list {
      display: grid;
      gap: 12px;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .footer-list a {
      color: var(--color-text-secondary);
      font-size: 14px;
      transition: color .18s ease, transform .18s ease;
    }
    .footer-list a:hover {
      color: var(--color-primary);
      transform: translateX(2px);
    }
    .footer-copy {
      max-width: 230px;
      color: var(--color-text-secondary);
      font-size: 14px;
      line-height: 1.6;
    }
    .footer-list span {
      color: var(--color-text-tertiary);
      font-size: 14px;
    }
    .footer-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      flex-wrap: wrap;
      padding-top: 24px;
      border-top: 1px solid var(--border);
      font-size: 14px;
    }
    .footer-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--color-text-tertiary);
    }
    .footer-brand img { width: 24px; height: 24px; border-radius: 7px; }
    .footer-brand strong { color: var(--color-text-primary); }
    .hidden { display: none !important; }
    input[type="file"] { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }

    @media (max-width: 920px) {
      .wrap { width: min(100% - 28px, var(--max)); }
      .navlinks > a,
      .hero-grid, .tool-shell, .hero-product { grid-template-columns: 1fr; }
      .hero-grid { min-height: auto; gap: 34px; padding-top: 34px; }
      .hero-product { padding: 12px; border-radius: 24px; }
      .hero-media { min-height: 300px; }
      .section { padding: 62px 0; }
      .trust-grid, .steps-grid, .feature-grid, .related-grid, .why-grid { grid-template-columns: 1fr; }
      .upload-drop { min-height: 360px; }
      .cta { padding: 36px 22px; border-radius: 22px; }
      .editorial h2 { text-align: center; }
      .footer-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 560px) {
      .nav { height: auto; min-height: 72px; padding: 12px 0; }
      .navlinks { order: 3; width: 100%; justify-content: center; gap: 18px; }
      .navlinks a { display: inline-flex; }
      .nav-actions { margin-left: auto; }
      .upload-drop { padding: 30px 18px; }
      .footer-grid { grid-template-columns: 1fr; }
      .footer-bottom { align-items: flex-start; flex-direction: column; }
    }
    /* Phase 1: a quiet, light-first utility surface. */
    :root {
      --bg: #f7f8f6;
      --surface: #ffffff;
      --surface-2: #eef1ed;
      --fg: #18201c;
      --muted: #5d6861;
      --soft: #68746d;
      --text-primary: #18201c;
      --text-secondary: #5d6861;
      --text-tertiary: #748078;
      --color-text-primary: #18201c;
      --color-text-secondary: #5d6861;
      --color-text-tertiary: #748078;
      --border: #dbe1da;
      --color-border: #dbe1da;
      --accent: #b94818;
      --accent-2: #b94818;
      --accent-soft: #fff0e8;
      --color-primary: #b94818;
      --color-primary-light: #fff0e8;
      --color-surface: #ffffff;
      --success: #197a51;
      --warning: #c46a1a;
      --gradient: #b94818;
      --hero-gradient: none;
      --radius-sm: 6px;
      --radius-md: 8px;
      --radius-lg: 8px;
      --radius-xl: 8px;
      --display: "DM Sans", Arial, sans-serif;
      --body: "DM Sans", Arial, sans-serif;
    }
    body { background: var(--bg); color: var(--fg); }
    .hero-media, .result-placeholder { display: none !important; }
    .topbar { position: sticky; height: 64px; background: rgba(247,248,246,.94); border-bottom: 1px solid var(--border); box-shadow: none; }
    .topbar.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 18px rgba(24,32,28,.05); }
    .nav { height: 64px; flex-wrap: nowrap; gap: 18px; }
    .brand { gap: 9px; font-size: 15px; color: var(--fg); }
    .brand-mark { width: 30px; height: 30px; border-radius: 6px; box-shadow: none; background: var(--accent); }
    .navlinks { margin-left: auto; gap: 20px; font-size: 13px; color: var(--muted); }
    .nav-cta, .btn.primary { background: var(--accent); color: #fff; box-shadow: none; }
    .nav-cta { min-height: 36px; padding: 0 14px; font-size: 13px; }
    .nav-cta:hover, .btn.primary:hover { background: #9d3b13; box-shadow: none; transform: translateY(-1px); }
    .hero-grid { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); column-gap: 48px; row-gap: 20px; min-height: 0; padding: 74px 0 48px; text-align: left; align-items: center; }
    .hero-copy { justify-items: start; align-self: center; }
    .eyebrow { padding: 0; border-radius: 0; background: transparent; color: var(--color-primary); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
    h1 { max-width: 560px; margin-top: 14px; font-size: 46px; line-height: 1.06; letter-spacing: 0; color: var(--fg); }
    .hero-title-gradient { -webkit-text-fill-color: currentColor; background: none; }
    .lead { max-width: 500px; margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.55; }
    .actions { justify-content: flex-start; margin-top: 26px; }
    .privacy-link { color: var(--fg); font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: #aeb8b0; text-underline-offset: 5px; }
    .privacy-link:hover { color: var(--color-primary); text-decoration-color: currentColor; }
    .btn { min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); border-color: #cfd7cf; color: var(--fg); box-shadow: none; font-size: 14px; }
    .btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(24,32,28,.08); }
    .hero-product { grid-column: 2; grid-row: 1; display: block; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 14px 36px rgba(24,32,28,.07); }
    .upload-card { padding: 16px; border: 0; border-radius: 8px; background: transparent; }
    .upload-drop { min-height: 440px; padding: 34px; border: 1.5px dashed #b8c4ba; border-radius: 6px; background: #fbfcfa; }
    .upload-drop.is-drag { border-color: var(--accent); background: var(--accent-soft); }
    .icon-box { width: 54px; height: 54px; border-radius: 8px; background: var(--accent-soft); color: var(--color-primary); box-shadow: none; }
    .icon { width: 20px; height: 20px; display: inline-block; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
    .icon-box .icon { width: 25px; height: 25px; }
    .upload-title { font-size: 20px; color: var(--fg); }
    .upload-help { font-size: 14px; color: var(--muted); }
    .upload-buttons { gap: 10px; }
    .preview { width: min(100%, 360px); border-radius: 6px; box-shadow: none; }
    .status-row { color: var(--success); }
    .below-note { margin: 0; padding: 12px 16px 0; text-align: left; color: var(--soft); font-size: 12px; }
    .meter { width: 100%; height: 4px; margin-top: 14px; background: #e6ebe6; }
    .meter > span { background: var(--accent); }
    .result-panel { min-height: 0; padding: 0 16px 16px; border: 0; border-radius: 0; background: transparent; gap: 14px; }
    .result-panel > div:first-child { display: none; }
    .result-panel .actions { display: none; }
    .analysis-scan, .face-viz, .result-box { width: 100%; border-radius: 6px; }
    .analysis-scan { aspect-ratio: 4/3; background: var(--accent-soft); border-color: #efc4af; }
    .analysis-scan::after { background: var(--accent); }
    .face-viz { aspect-ratio: 4/3; border-color: var(--border); }
    .result-box { padding: 16px; border-color: #a7d6bf; background: #f2fbf5; }
    .result-age { font-size: 54px; color: var(--fg); }
    .chips { grid-column: 1 / -1; justify-content: flex-start; gap: 0; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--border); }
    .chip { min-height: 0; padding: 0 18px 0 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); box-shadow: none; font-size: 13px; }
    .chip + .chip { padding-left: 18px; border-left: 1px solid var(--border); }
    .section { padding: 72px 0; border-top: 1px solid var(--border); }
    .section.tight { padding: 56px 0; }
    h2 { font-size: 30px; color: var(--fg); text-align: left; }
    .section-intro { margin: 12px 0 0; text-align: left; color: var(--muted); }
    .editorial { max-width: 900px; margin: 0 auto; padding: 0; border: 0; }
    .editorial p { color: var(--muted); }
    .why-grid, .steps-grid { grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 32px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
    .feature-grid { grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 32px; border-top: 1px solid var(--border); }
    .related-grid { grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 32px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
    .card { min-height: 180px; padding: 24px 20px; border: 0; border-radius: 0; border-right: 1px solid var(--border); background: transparent; box-shadow: none; }
    .card:last-child { border-right: 0; }
    .card:hover { transform: none; box-shadow: none; background: #fbfcfa; }
    .card p { color: var(--muted); }
    .step-num, .feature-icon { width: 32px; height: 32px; margin-bottom: 16px; border-radius: 50%; background: var(--accent-soft); color: var(--color-primary); font-size: 13px; }
    .feature-icon { color: var(--color-primary); }
    .faq { max-width: 900px; margin: 30px 0 0; gap: 0; border-top: 1px solid var(--border); }
    details { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
    details[open] { border-color: var(--border); }
    summary { padding: 0; min-height: 58px; color: var(--fg); }
    details p { padding: 0 0 18px; color: var(--muted); }
    .cta { border-radius: 8px; padding: 44px; background: #1d2821; box-shadow: none; text-align: left; }
    .cta h2 { color: #fff; text-align: left; }
    .cta .btn { color: var(--fg); }
    .footer { padding: 52px 0 28px; background: #edf0ec; border-top: 1px solid var(--border); }
    .footer-grid { gap: 24px; }
    .footer-brand img { border-radius: 5px; }
    .content-columns {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 28px;
      margin-top: 28px;
    }
    .content-columns h3 { margin-top: 0; }
    .content-columns p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.65; }
    .inline-link { color: var(--color-primary); font-weight: 800; text-decoration: underline; text-decoration-color: #efb99f; text-underline-offset: 4px; }
    .section-link-center { margin-top: 22px; text-align: center; }
    .section-link-center a { color: var(--color-primary); font-weight: 800; text-decoration: underline; text-decoration-color: #efb99f; text-underline-offset: 4px; }
    @media (max-width: 920px) {
      .hero-grid { grid-template-columns: 1fr; padding-top: 48px; }
      .hero-product { grid-column: auto; grid-row: auto; }
      .hero-copy { max-width: 620px; }
      .why-grid, .steps-grid, .feature-grid { grid-template-columns: repeat(2,1fr); }
      .related-grid { grid-template-columns: 1fr; }
      .content-columns { grid-template-columns: 1fr; }
      .card:nth-child(2n) { border-right: 0; }
    }
    @media (max-width: 560px) {
      .wrap { width: min(100% - 32px, var(--max)); }
      .navlinks { display: none; }
      .nav-cta { min-height: 34px; padding: 0 12px; }
      .brand > span:last-child { font-size: 13px; }
      .hero-grid { padding: 38px 0 34px; }
      h1 { font-size: 38px; }
      .lead { font-size: 16px; }
      .upload-drop { min-height: 390px; padding: 24px 16px; }
      .upload-buttons { flex-direction: column; width: min(100%, 260px); }
      .upload-buttons .btn { width: 100%; }
      .chips { display: grid; gap: 10px; }
      .chip, .chip + .chip { padding: 0; border: 0; }
      .why-grid, .steps-grid, .feature-grid, .related-grid { grid-template-columns: 1fr; }
      .card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
      .card:last-child { border-bottom: 0; }
      .cta { padding: 30px 22px; }
      .footer-grid { grid-template-columns: 1fr; }
      .footer-brand { flex-wrap: wrap; }
      .footer-brand > span { flex-basis: 100%; padding-left: 39px; }
    }
    /* Phase 2: stable tool states and an image-led scan layer. */
    .upload-drop { display: grid; grid-template-rows: 1fr auto; align-items: center; }
    .upload-state { grid-area: 1 / 1; }
    .stage-feedback { grid-area: 2 / 1; width: min(100%, 420px); margin: 18px auto 0; text-align: center; }
    .stage-feedback .panel-title { color: var(--fg); font-size: 16px; font-weight: 700; }
    .stage-feedback .micro { margin-top: 5px; color: var(--muted); }
    .stage-feedback-icon { display: none; }
    .stage-actions { grid-area: 3 / 1; display: flex; justify-content: center; gap: 10px; width: 100%; margin-top: 12px; }
    .upload-drop[data-state="idle"] .stage-feedback { display: none; }
    .upload-drop[data-state="photo_ready"] .stage-feedback,
    .upload-drop[data-state="result"] .stage-feedback { display: block; }
    .upload-drop[data-state="error"] .stage-feedback { display: block; padding: 14px; border: 1px solid #edb99f; border-radius: 6px; background: #fff7f2; }
    .upload-drop[data-state="error"] .stage-feedback .panel-title { color: #a13c12; }
    .upload-drop[data-state="error"] .stage-feedback-icon { width: 32px; height: 32px; display: inline-grid; place-items: center; margin-bottom: 8px; border-radius: 50%; background: #ffe7db; color: #a13c12; }
    .upload-drop[data-state="model_preparing"] .stage-feedback,
    .upload-drop[data-state="analyzing"] .stage-feedback,
    .upload-drop[data-state="validating"] .stage-feedback { position: relative; z-index: 3; margin-bottom: 12px; padding: 10px 12px; border-radius: 6px; background: rgba(255,255,255,.9); }
    .upload-drop[data-state="photo_ready"] #heroReady,
    .upload-drop[data-state="model_preparing"] #heroReady,
    .upload-drop[data-state="analyzing"] #heroReady,
    .upload-drop[data-state="validating"] #heroReady,
    .upload-drop[data-state="error"] #heroReady { width: min(100%, 560px); max-width: 560px; justify-self: center; }
    .upload-drop[data-state="model_preparing"] #heroReady,
    .upload-drop[data-state="analyzing"] #heroReady,
    .upload-drop[data-state="validating"] #heroReady,
    .upload-drop[data-state="error"] #heroReady { display: grid !important; }
    .upload-drop[data-state="model_preparing"] #heroReady > :not(.preview),
    .upload-drop[data-state="analyzing"] #heroReady > :not(.preview),
    .upload-drop[data-state="validating"] #heroReady > :not(.preview),
    .upload-drop[data-state="error"] #heroReady > :not(.preview) { display: none; }
    .upload-drop[data-state="photo_ready"] .preview,
    .upload-drop[data-state="model_preparing"] .preview,
    .upload-drop[data-state="analyzing"] .preview,
    .upload-drop[data-state="validating"] .preview { width: min(100%, 560px); }
    .analysis-scan {
      position: relative;
      z-index: 2;
      grid-area: 1 / 1;
      align-self: center;
      justify-self: center;
      width: min(100% - 32px, 560px);
      aspect-ratio: 4 / 3;
      display: block;
      pointer-events: none;
      border: 1px solid rgba(229,108,50,.42);
      background:
        radial-gradient(circle at 50% 42%, transparent 0 18%, rgba(229,108,50,.16) 18.5% 19.4%, transparent 20%),
        radial-gradient(circle at 50% 49%, transparent 0 30%, rgba(25,122,81,.14) 30.5% 31.4%, transparent 32%),
        linear-gradient(90deg, rgba(229,108,50,.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(25,122,81,.07) 1px, transparent 1px);
      background-size: auto, auto, 26px 26px, 26px 26px;
      box-shadow: inset 0 0 0 999px rgba(255,255,255,.08);
      overflow: hidden;
    }
    .analysis-scan::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: -18%;
      height: 28%;
      background: linear-gradient(180deg, transparent, rgba(229,108,50,.34), rgba(255,255,255,.24), transparent);
      border-top: 1px solid rgba(229,108,50,.82);
      border-bottom: 1px solid rgba(229,108,50,.82);
      animation: stageScan 1.55s ease-in-out infinite;
    }
    .analysis-scan::after {
      content: "";
      position: absolute;
      inset: 18% 28%;
      border: 2px solid rgba(25,122,81,.46);
      border-radius: 44% 44% 48% 48%;
      box-shadow: 0 0 0 1px rgba(255,255,255,.45);
      animation: scanPulse 1.2s ease-in-out infinite alternate;
    }
    .scan-corner { position: absolute; width: 18px; height: 18px; border-color: #e56c32; border-style: solid; }
    .scan-corner--tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
    .scan-corner--tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
    .scan-corner--bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
    .scan-corner--br { right: 8px; bottom: 8px; border-width: 0 2px 2px 0; }
    .face-viz { width: min(100%, 360px); grid-area: 1 / 1; z-index: 1; margin: 0 auto; }
    .result-box { grid-area: 1 / 1; z-index: 4; width: min(100%, 360px); margin: 0 auto; align-self: center; }
    .upload-drop[data-state="result"] #heroReady { display: none !important; }
    .upload-drop[data-state="result"] .stage-feedback { align-self: end; }
    @keyframes stageScan { 0% { transform: translateY(-10%); } 50% { transform: translateY(310%); } 100% { transform: translateY(-10%); } }
    @keyframes scanPulse { from { opacity: .66; transform: scale(.985); } to { opacity: 1; transform: scale(1.015); } }
    @keyframes drawLandmark { to { stroke-dashoffset: 0; } }
    @keyframes nodeReveal { from { opacity: 0; transform: scale(.38); } to { opacity: .9; transform: scale(1); } }
    @keyframes tagReveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
    @keyframes cameraPulse { from { transform: scale(.96); opacity: .76; } to { transform: scale(1.04); opacity: 1; } }
    @keyframes cameraLoadingScan { 0% { transform: translateY(-10%); } 50% { transform: translateY(420%); } 100% { transform: translateY(-10%); } }
    .camera-sheet { z-index: 60; padding: clamp(10px, 2dvh, 20px); background: rgba(247,248,246,.76); backdrop-filter: blur(2px); overflow: auto; align-items: center; }
    .camera-panel { width: min(900px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); overflow: auto; border: 1px dashed #aeb8b0; border-radius: 8px; padding: 18px; background: #fbfcfa; box-shadow: 0 18px 55px rgba(24,32,28,.14); }
    .camera-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
    .camera-heading h2 { font-size: 22px; }
    .camera-heading p, .camera-status { margin: 6px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
    .icon-button { width: 40px; height: 40px; display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--fg); cursor: pointer; }
    .icon-button:hover { border-color: #aeb8b0; background: var(--surface-2); }
    .camera-view-shell { position: relative; overflow: hidden; border-radius: 6px; background: #eef1ed; }
    .camera-view { display: block; width: 100%; height: min(58dvh, 560px); max-height: calc(100dvh - 230px); aspect-ratio: 16 / 9; border-radius: 6px; background: #eef1ed; object-fit: cover; }
    .camera-loading { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 9px; padding: 24px; color: var(--fg); text-align: center; background: linear-gradient(135deg, #f6f8f5, #e9eee8); }
    .camera-loading::before { content: ""; position: absolute; left: 8%; right: 8%; top: -20%; height: 26%; background: linear-gradient(180deg, transparent, rgba(229,108,50,.28), transparent); animation: cameraLoadingScan 1.3s ease-in-out infinite; }
    .camera-loading__icon { position: relative; z-index: 1; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid #cbd7cc; border-radius: 50%; color: var(--accent); background: rgba(255,255,255,.72); box-shadow: 0 12px 30px rgba(24,32,28,.1); animation: cameraPulse 1.1s ease-in-out infinite alternate; }
    .camera-loading__icon .icon { width: 26px; height: 26px; }
    .camera-loading strong, .camera-loading span { position: relative; z-index: 1; }
    .camera-loading strong { font-size: 18px; }
    .camera-loading span:last-child { max-width: 320px; color: var(--muted); font-size: 13px; line-height: 1.45; }
    .camera-panel .actions { justify-content: center; margin-top: 14px; }
    .camera-panel .actions .btn { min-width: 170px; }
    @media (prefers-reduced-motion: reduce) {
      .analysis-scan::before,
      .analysis-scan::after,
      .face-web-region,
      .face-web-node,
      .scan-line,
      .scan-tag,
      .scan-age,
      .scan-tag__line,
      .camera-loading,
      .camera-loading::before,
      .camera-loading__icon {
        animation: none;
        opacity: 1;
        stroke-dashoffset: 0;
        transform: none;
      }
      .analysis-scan::before,
      .analysis-scan::after { top: 40%; }
    }
    @media (max-width: 560px) { .analysis-scan { width: min(100% - 24px, 560px); } .stage-actions { flex-direction: column; align-items: stretch; width: min(100%, 280px); justify-self: center; } .camera-sheet { padding: 10px; } .camera-panel .actions { flex-direction: column; align-items: stretch; } .camera-panel .actions .btn { width: 100%; } }
    /* Phase 3: honest result, local comparison, and share preview. */
    .result-view { display: none; grid-area: 1 / 1; grid-template-columns: 1fr; gap: 16px; width: min(100%, 720px); margin: 0 auto; align-self: center; z-index: 4; }
    .hero-grid:has(.upload-drop[data-state="result"]) { grid-template-columns: 1fr; padding-top: 34px; align-items: start; }
    .hero-grid:has(.upload-drop[data-state="result"]) .hero-copy { display: none; }
    .hero-grid:has(.upload-drop[data-state="result"]) .hero-product { width: min(100%, 1120px); justify-self: center; }
    .hero-grid:has(.upload-drop[data-state="result"]) .upload-card { padding: 14px; }
    .hero-grid:has(.upload-drop[data-state="result"]) .upload-drop { min-height: auto; padding: 18px; align-items: start; }
    .hero-grid:has(.upload-drop[data-state="result"]) .below-note,
    .hero-grid:has(.upload-drop[data-state="result"]) .chips { display: none; }
    .hero-grid:has(.upload-drop[data-state="result"]) .result-view {
      grid-template-columns: minmax(0, 1.1fr) minmax(330px, .72fr);
      grid-template-areas:
        "photo summary"
        "why controls";
      align-items: start;
      gap: 14px;
      width: min(100%, 1060px);
    }
    .upload-drop[data-state="result"] .result-view { display: grid; }
    .upload-drop[data-state="result"] .stage-feedback { display: none; }
    .result-view .face-viz, .result-view .result-box { display: block; grid-area: auto; width: 100%; margin: 0; }
    .result-view .face-viz { align-self: center; justify-self: center; width: min(100%, 620px); aspect-ratio: 4 / 3; }
    .result-view .result-box { align-self: stretch; justify-self: center; width: min(100%, 520px); }
    .hero-grid:has(.upload-drop[data-state="result"]) .result-view .face-viz { grid-area: photo; width: 100%; align-self: start; }
    .hero-grid:has(.upload-drop[data-state="result"]) .result-view .result-box { grid-area: summary; width: 100%; }
    .hero-grid:has(.upload-drop[data-state="result"]) .why-guess { grid-area: why; }
    .hero-grid:has(.upload-drop[data-state="result"]) .result-controls { grid-area: controls; }
    .hero-grid:has(.upload-drop[data-state="result"]) .result-controls .actions { display: flex; }
    .result-box { text-align: left; }
    .result-age { animation: ageReveal .38s ease-out both; }
    .result-boundary { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
    .insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 14px; }
    .insight-grid div { padding: 8px 10px; border: 1px solid #c8e6d5; border-radius: 6px; background: rgba(255,255,255,.64); }
    .insight-grid span { display: block; color: var(--soft); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
    .insight-grid strong { display: block; margin-top: 4px; color: var(--fg); font-family: var(--mono); font-size: 16px; line-height: 1; }
    .result-panel { border: 1px solid #c8e6d5; border-radius: 6px; background: rgba(255,255,255,.54); }
    .why-guess { margin-top: 0; padding: 12px; text-align: left; }
    .why-guess p { margin: 0 0 8px; color: var(--fg); font-size: 14px; font-weight: 800; }
    .why-guess ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
    .why-guess li { position: relative; padding-left: 16px; color: var(--muted); font-size: 13px; line-height: 1.35; text-align: left; }
    .why-guess li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
    .result-controls { padding: 12px; }
    .result-actions { margin-top: 0; gap: 8px; }
    .result-actions .btn { min-height: 44px; }
    .comparison-summary { margin: 14px 0 0; padding: 10px 0; border-top: 1px solid #c8e6d5; border-bottom: 1px solid #c8e6d5; color: var(--fg); font-size: 14px; line-height: 1.45; }
    .actual-age-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid #c8e6d5; }
    .actual-age-form label { display: block; font-weight: 700; font-size: 14px; }.actual-age-form label span { color: var(--soft); font-weight: 400; }
    .actual-age-form > div { display: flex; gap: 8px; margin-top: 8px; }.actual-age-form input { width: 92px; min-height: 40px; padding: 0 10px; border: 1px solid #cfd7cf; border-radius: 6px; background: #fff; color: var(--fg); }
    .actual-age-form p { margin: 7px 0 0; color: var(--soft); font-size: 12px; }.actual-age-form .actual-age-message { color: var(--fg); font-size: 13px; }
    .share-sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(24,32,28,.52); }.share-sheet.hidden { display: none; }
    .share-sheet__panel { width: min(720px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 20px; border-radius: 8px; background: #fff; box-shadow: 0 20px 55px rgba(24,32,28,.2); }
    .share-sheet__header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }.share-sheet__header h2 { font-size: 22px; }.share-sheet__header p { margin: 5px 0 16px; color: var(--muted); font-size: 14px; }
    .icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--fg); cursor: pointer; }
    #shareCanvas { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 6px; background: #f7f8f6; }
    .share-option { display: block; margin-top: 12px; color: var(--fg); font-size: 14px; }.share-option:has(input:disabled) { color: var(--soft); }.share-option input { margin-right: 8px; accent-color: var(--accent); }
    .share-status { min-height: 18px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }.share-sheet__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
    .back-to-tool {
      position: fixed;
      right: 22px;
      bottom: 22px;
      z-index: 30;
      width: 58px;
      height: 58px;
      display: grid;
      place-items: center;
      border: 0;
      border-radius: 50%;
      background: var(--accent);
      color: #fff;
      box-shadow: 0 14px 30px rgba(24,32,28,.18);
      transform: translateY(18px);
      opacity: 0;
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease, background .18s ease;
    }
    .back-to-tool.is-visible {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
    .back-to-tool:hover { background: var(--accent); }
    .back-to-tool .icon { width: 24px; height: 24px; stroke-width: 2.4; }
    @keyframes ageReveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
    @media (prefers-reduced-motion: reduce) { .result-age { animation: none; } }
    @media (max-width: 920px) {
      .hero-grid:has(.upload-drop[data-state="result"]) .result-view {
        grid-template-columns: 1fr;
        grid-template-areas: "photo" "summary" "why" "controls";
        width: min(100%, 720px);
      }
    }
    @media (max-width: 560px) { .result-view { grid-template-columns: 1fr; width: min(100%, 360px); }.result-view .face-viz { aspect-ratio: 4/3; }.result-actions { flex-direction: column; align-items: stretch; }.result-actions .btn { width: 100%; }.share-sheet { align-items: end; padding: 0; }.share-sheet__panel { width: 100%; max-height: 90vh; border-radius: 8px 8px 0 0; padding: 18px; }.share-sheet__actions { display: grid; grid-template-columns: 1fr 1fr; }.share-sheet__actions .btn:first-child { grid-column: 1 / -1; } }
    /* Homepage composition: keep the tool primary and make long-form content easier to scan. */
    .navlinks a[aria-current="page"] { color: var(--fg); font-weight: 700; }
    .hero-grid { grid-template-rows: auto auto; align-items: start; }
    .hero-copy { grid-column: 1; grid-row: 1; align-self: end; }
    .hero-support { grid-column: 1; grid-row: 2; align-self: start; }
    .hero-support .hero-subhead { margin-top: 0; }
    .hero-product { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
    .hero-grid:has(.upload-drop[data-state="result"]) .hero-support { display: none; }
    .editorial {
      max-width: 1120px;
      display: grid;
      grid-template-columns: minmax(220px, .7fr) minmax(0, 1.6fr);
      gap: 64px;
      align-items: start;
    }
    .editorial-head { position: sticky; top: 112px; }
    .editorial-head h2 { margin: 0; }
    .editorial-body { min-width: 0; max-width: 68ch; }
    .editorial-body > p { font-size: 17px; line-height: 1.75; }
    .editorial-body > p:first-child { margin-top: 0; color: var(--fg); font-size: 18px; }
    .content-columns > div { padding-top: 24px; border-top: 1px solid var(--border); }
    .related-card {
      min-height: 0;
      padding: 0 20px 24px;
      overflow: hidden;
    }
    .related-image {
      flex: none;
      width: calc(100% + 40px);
      max-width: none;
      height: clamp(200px, 19vw, 244px);
      aspect-ratio: 16 / 10;
      display: block;
      margin: 0 -20px 22px;
      border-bottom: 1px solid var(--border);
      object-fit: cover;
    }
    .cta {
      padding: 44px 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      border-radius: 0;
      background: transparent;
    }
    .cta h2 { color: var(--fg); }
    .cta p { color: var(--muted); opacity: 1; }
    .cta .btn { border-color: var(--accent); background: var(--accent); color: #fff; }
    @media (max-width: 920px) {
      .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
      .hero-copy, .hero-support, .hero-product { grid-column: auto; grid-row: auto; }
      .editorial { grid-template-columns: 1fr; gap: 28px; }
      .editorial-head { position: static; }
    }
    @media (max-width: 560px) {
      .hero-grid { row-gap: 24px; }
      .hero-support { padding-top: 4px; }
      .chips { display: flex; flex-wrap: wrap; gap: 8px 14px; }
      .feature-grid .card {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        column-gap: 12px;
        align-items: start;
        padding: 20px 0;
      }
      .feature-grid .feature-icon { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
      .feature-grid h3, .feature-grid p { grid-column: 2; }
      .feature-grid .card p { margin-top: 6px; }
      .related-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 8px 16px;
        padding: 18px 0;
      }
      .related-image {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 112px;
        height: 96px;
        margin: 0;
        border: 0;
        border-radius: 6px;
        aspect-ratio: auto;
      }
      .related-card > div, .related-card > a { grid-column: 2; }
      .what-is-section { padding: 48px 0; }
      .editorial-body > p { font-size: 16px; line-height: 1.7; }
      .cta { padding: 34px 0; }
    }
