/* Line Aesthetics landing pages, v4 "line" direction.
   One idea carries the page: the clinic is called Line, a thread is a line, so everything is drawn in a single fine line.
   Brand bronze kept from lineaestheticsclinic.com; display face Italiana (hairline, echoes the line art), body Hanken Grotesk. */
:root {
  --porcelain: #f3edea;
  --shell: #fbf8f7;
  --mist: #e4d9d3;
  --ink: #1f1a17;
  --muted: #6e6460;
  --bronze: #a6886a;
  --bronze-deep: #85694f;
  --wa: #1f8f4e;
  --line: rgba(31, 26, 23, 0.12);
  --display: "Italiana", "Didot", Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --r: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--porcelain); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--bronze-deep); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.label { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; color: var(--bronze-deep); margin: 0 0 14px; }
h1, h2, .display { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 12vw, 5.4rem); }
h1 span { color: var(--bronze-deep); }
h2 { font-size: clamp(2.3rem, 8vw, 3.6rem); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--ink); color: var(--shell); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.btn:hover { background: #000; transform: translateY(-1px); }
.btn .arrow { width: 22px; height: 1px; background: currentColor; position: relative; transition: width 0.2s; }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arrow { width: 30px; }
.btn-wa { background: var(--wa); width: 100%; padding: 0 16px; gap: 10px; white-space: nowrap; }
.btn-wa:hover { background: #17733e; }
.btn-wa svg { width: 22px; height: 22px; }

/* Header */
.top .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }
.top img { height: 28px; width: auto; filter: brightness(0); opacity: 0.85; }
.top span { font-size: 0.72rem; color: var(--muted); text-align: right; line-height: 1.4; }

/* Hero */
.hero { padding-block: 0 48px; overflow: hidden; }
.hero-grid { display: grid; align-items: center; }
.art { position: relative; margin: 0 auto -6px; width: min(100%, 420px); }
.art::before { content: ""; position: absolute; inset: 8% 4% 10% 14%; border-radius: 50%; background: radial-gradient(circle at 55% 45%, #fff 0, var(--shell) 35%, var(--mist) 100%); opacity: 0.85; }
.art svg { position: relative; width: 100%; height: auto; max-height: 44vh; margin-inline: auto; -webkit-mask-image: linear-gradient(#000 var(--fade, 78%), transparent 98%); mask-image: linear-gradient(#000 var(--fade, 78%), transparent 98%); }
.art .face path, .art .threads path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.art .face path { stroke: var(--ink); stroke-width: 1.35; }
.art .threads path { stroke: var(--bronze); stroke-width: 1.5; }
.art .tags { font-family: var(--body); font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; fill: var(--bronze-deep); }
.art .tags path { stroke: var(--bronze); stroke-width: 0.8; fill: none; }
.art .tags text { paint-order: stroke; stroke: var(--porcelain); stroke-width: 4px; stroke-linejoin: round; }
.art .tags circle { fill: var(--bronze); }
.art .tag { opacity: 0; transition: opacity 0.6s; }
.art.done .tag { opacity: 1; }
.art.done .tag + .tag { transition-delay: 0.25s; }
.draw { stroke-dasharray: 1 1.1; stroke-dashoffset: 1.05; }
.art.go .draw { animation: draw var(--d, 1.6s) cubic-bezier(.6,.1,.3,1) var(--t, 0s) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.art figcaption { position: absolute; right: 0; bottom: 8px; font-size: 0.66rem; color: var(--muted); letter-spacing: 0.04em; }
.hero-copy { position: relative; }
.sub { font-size: 1.08rem; color: var(--muted); margin: 18px 0 20px; max-width: 26em; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 0.9rem; font-weight: 500; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 14px; height: 1px; background: var(--bronze); }
@media (max-width: 899px) { .hero .btn { width: 100%; } }
@media (min-width: 900px) {
  .hero { padding-block: 24px 96px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .art { order: 2; width: 100%; margin: 0; }
  .art svg { max-height: 640px; }
}

/* Doctor */
.doctor { background: var(--shell); padding-block: 64px; }
.doc-grid { display: grid; gap: 34px; align-items: center; }
.portrait { position: relative; margin: 0 14px 0 0; max-width: 300px; }
@media (min-width: 900px) { .portrait { max-width: none; } }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 999px 999px var(--r) var(--r); position: relative; }
.portrait::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--bronze); border-radius: 999px 999px var(--r) var(--r); pointer-events: none; }
.role { color: var(--muted); margin: 10px 0 26px; }
.skills { list-style: none; margin: 0; padding: 0; }
.skills li { padding: 15px 0; border-top: 1px solid var(--line); font-weight: 500; }
.skills li:last-child { border-bottom: 1px solid var(--line); }
.philo { margin: 34px 0 0; }
.philo p { font-family: var(--display); font-size: clamp(1.7rem, 6.4vw, 2.3rem); line-height: 1.18; margin: 0; }
.philo p::before { content: ""; display: block; width: 44px; height: 1px; background: var(--bronze); margin-bottom: 18px; }
.philo span { display: block; color: var(--muted); margin-top: 12px; font-size: 0.95rem; }
.fine { font-size: 0.7rem; color: var(--muted); opacity: 0.85; margin: 26px 0 0; }
@media (min-width: 900px) { .doctor { padding-block: 104px; } .doc-grid { grid-template-columns: 0.8fr 1.2fr; gap: 88px; } }

/* Questionnaire */
.check { padding-block: 64px 48px; scroll-margin-top: 8px; }
.check-head { text-align: center; max-width: 34em; margin: 0 auto 26px; }
.check-head p:last-child { color: var(--muted); margin: 14px 0 0; }
.quiz { max-width: 560px; margin: 0 auto; background: var(--shell); border-radius: 24px; box-shadow: 0 30px 60px -40px rgba(31, 26, 23, 0.45); overflow: hidden; }
.qz-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px 22px 0; }
.qz-back { border: 0; background: none; padding: 6px 0; cursor: pointer; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.qz-back[hidden] { display: inline; visibility: hidden; }
.prog { height: 1px; background: var(--mist); position: relative; }
.prog i { position: absolute; left: 0; top: -0.5px; height: 2px; background: var(--bronze-deep); transition: width 0.5s cubic-bezier(.6,.1,.3,1); }
.count { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.qz-stage { padding: 18px 22px 26px; overflow: hidden; }
.panel.next { animation: inR 0.4s cubic-bezier(.2,.7,.2,1) both; }
.panel.prev { animation: inL 0.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes inR { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes inL { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
.q { font-family: var(--display); font-size: clamp(2rem, 7.5vw, 2.5rem); line-height: 1.05; margin: 0 0 18px; text-wrap: balance; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card { border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 0; cursor: pointer; text-align: left; color: var(--ink); overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: var(--bronze); transform: translateY(-2px); }
.card .ph { display: block; aspect-ratio: 1 / 0.9; background: var(--porcelain); }
.card .ph svg { width: 100%; height: 100%; }
.card .ph path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.card .lbl { display: block; padding: 11px 13px 13px; font-weight: 600; font-size: 0.93rem; }
.card[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.rows { display: grid; gap: 10px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 18px; cursor: pointer; color: var(--ink); font-weight: 600; text-align: left; transition: border-color 0.2s; }
.row:hover { border-color: var(--bronze); }
.row .dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--muted); transition: all 0.2s; }
.row[aria-pressed="true"] { border-color: var(--ink); }
.row[aria-pressed="true"] .dot { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 0 4px, transparent 5px); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.82rem; font-weight: 600; }
.field input { font: inherit; font-size: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); width: 100%; }
.field input:focus { outline: none; border-color: var(--ink); }
.err { color: #9a3328; font-size: 0.8rem; }
.err:empty { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--muted); margin: 6px 0 18px; line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.with-dr { display: flex; align-items: center; gap: 12px; margin: -4px 0 20px; font-size: 0.9rem; color: var(--muted); }
.with-dr img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; flex: none; }
.qz-fine { font-size: 0.78rem; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

footer { padding-block: 34px; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { display: grid; gap: 10px; }
footer img { height: 24px; width: auto; filter: brightness(0); opacity: 0.6; }
footer p { margin: 0; }
footer a { color: var(--ink); }

.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(243, 237, 234, 0.92); backdrop-filter: blur(10px); transition: transform 0.35s; }
.sticky.hide { transform: translateY(120%); }
.sticky .btn { width: 100%; }
@media (min-width: 900px) { .sticky { display: none; } body { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .draw { stroke-dashoffset: 0; }
  .art .tag, .reveal { opacity: 1; transform: none; }
}
