/* 2026-10-09 HeyMay 官网统一视觉：雾蓝 + HeyMay 粉。
   首页、注册 / 登录、资料流程、个人中心、介绍与见面页共用同一块画布、表面和控件。
   此文件提供既有页面结构；新版首页与共享组件在独立模块中定义。data-action、id、表单字段名等交互钩子保持不变。 */

:root{
  --hm-rose:var(--hm-pink-ink);
  --hm-paper:var(--hm-light);
  --hm-glass:#d2e7ff0d;
  --hm-glass-2:#d2e7ff17;
  --hm-line-strong:#d8eaff4d;
  --hm-shadow:0 18px 50px #04121c55;
  --hm-serif:'Noto Serif SC','Songti SC',SimSun,Georgia,serif;
}

/* ---------- One canvas for every page, home included ---------- */
body{--bg:var(--journey-bg);--panel:var(--journey-panel);--text:var(--journey-text);--muted:var(--journey-muted);--line:var(--journey-line);--accent:var(--journey-accent);background:var(--journey-bg);color:var(--journey-text);isolation:isolate}
body::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:var(--journey-backdrop)}
::selection{background:var(--hm-pink);color:#24121c}
.preview-bar{background:#0f2433;color:#d9e6f1;border-bottom:1px solid var(--journey-line)}
#toast{background:#fbe6f1;color:#3a1f2e;box-shadow:0 12px 32px #04121c55}

/* Home header floats over the hero on the same blue canvas. */
body[data-page="home"] .header{border-bottom-color:#d8eaff14}
body[data-page="home"] .nav{color:#d6e4ef;margin:0 auto 0 0}
body[data-page="home"] .nav button:hover{color:#fff}
body[data-page="home"] .login-link{color:#eef4f9}
body[data-page="home"] .btn:not(.secondary):not(.dark){background:var(--journey-primary-bg);color:var(--journey-primary-text);border-color:var(--journey-primary-bg)}
body[data-page="home"] .btn:not(.secondary):not(.dark):hover{background:#ffe7f6;border-color:#ffe7f6;transform:none}
body[data-page="home"] .btn.secondary{border-color:var(--journey-line);color:var(--journey-text)}
body[data-page="home"] .footer{border-color:var(--journey-line)}
body[data-page="home"] .footer-small,body[data-page="home"] .footer-links{color:var(--journey-muted)}

/* ---------- Home: hero ---------- */
.hm-hero{position:relative;min-height:min(880px,100svh);display:flex;align-items:center;justify-content:center;isolation:isolate;padding:150px 0 92px;overflow:hidden;text-align:left}
.hm-hero .hm-hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 60%;z-index:-3;filter:saturate(.78) contrast(1.02)}
.hm-hero-shade{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#132b3ce6 0%,#132b3cb0 48%,#132b3c3d 100%),linear-gradient(180deg,#132b3cd6 0%,#132b3c85 38%,#17324799 66%,#132b3c 100%)}
.hm-hero .hm-hero-copy{max-width:1232px;margin:0 auto;text-align:left}
.hm-hero .hero-kicker{display:inline-block;font-size:11px;letter-spacing:2.6px;color:#d8e6f1;padding:6px 12px;border:1px solid #d8eaff33;border-radius:999px;background:#0b1d2b4d}
.hm-hero h1{max-width:800px;font:500 clamp(40px,5.6vw,76px)/1.22 var(--hm-serif);letter-spacing:-2px;margin:24px 0 20px;color:#fff;text-shadow:0 3px 30px #0b1d2b66}
.hm-hero h1 em{font-style:normal;color:#f7c6dc}
.hm-hero .hm-hero-lede{max-width:640px;margin:0;font-size:16px;line-height:1.95;color:#eef4f9;text-shadow:0 1px 12px #0b1d2b8c}
.hm-facts{list-style:none;padding:0;margin:26px 0 0;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:10px;max-width:700px}
.hm-facts li{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid #d8eaff3d;border-radius:999px;background:#0b1d2b66;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);font-size:13px;line-height:1.4;color:#f3f7fb}
.hm-facts .icon{width:16px;height:16px;color:var(--hm-pink)}
.hm-signup{display:flex;align-items:center;gap:8px;max-width:540px;margin:30px 0 10px;padding:8px;border:1px solid #d8eaff4d;border-radius:999px;background:#0b1d2b8c;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:var(--hm-shadow)}
.hm-signup input{flex:1;min-width:0;background:transparent;border:0;outline:none;color:#fff;font:16px/1.4 var(--sans);padding:0 18px;min-height:52px}
.hm-signup input::placeholder{color:#c9d8e4}
.hm-signup:focus-within{border-color:var(--journey-focus);box-shadow:0 0 0 3px #f33ea52e,var(--hm-shadow)}
.hm-signup .btn{flex:none;white-space:nowrap;min-height:52px;padding:0 22px;font-size:15px;gap:10px}
.hm-hero .email-assist{max-width:540px;margin:0 0 8px;justify-content:flex-start}
.hm-hero .home-account{max-width:420px;margin:30px 0 12px;padding:18px;border:1px solid var(--journey-line);border-radius:24px;background:#0b1d2b8c;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.hm-hero .home-account p{margin-bottom:12px;color:#eef4f9;font-size:14px}
.hm-hero .hero-content>p.signup-note{font-size:12px;color:#d4e1ec;margin:6px 0 0}
.hm-hero .hero-photo-note{color:#b9cad8}

/* ---------- Home: shared section headings ---------- */
body[data-page="home"] .reference-heading{margin:0 0 46px;text-align:left;max-width:720px}
body[data-page="home"] .reference-heading>span{background:#d2e7ff14;border:1px solid var(--journey-line);border-radius:6px;color:var(--journey-text)}
body[data-page="home"] .reference-heading h2{font-weight:500}
body[data-page="home"] .reference-heading p{margin-top:12px;color:var(--journey-muted);font-size:15px;line-height:1.8}

/* ---------- Home: how it works with example screens ---------- */
.hm-how{padding-top:80px}
.hm-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.hm-step{display:grid;grid-template-rows:auto 1fr;gap:20px;min-width:0;padding:26px;border:1px solid var(--journey-line);border-radius:var(--journey-radius);background:var(--journey-surface);box-shadow:var(--journey-shadow)}
.hm-step-no{display:inline-grid;place-items:center;width:30px;height:30px;margin-bottom:12px;border:1px solid #f2b8d466;border-radius:50%;color:var(--hm-pink);font:13px Georgia,serif}
.hm-step h3{font-size:20px;font-weight:550;letter-spacing:-.3px;line-height:1.45}
.hm-step p{margin-top:8px;color:var(--journey-muted);font-size:14px;line-height:1.85}
.hm-demo-note{margin-top:18px;text-align:left;color:#a9bccb;font-size:12px}
.hm-demo{align-self:end;min-width:0;border-radius:20px;padding:16px;background:#0b1d2b99;border:1px solid #d8eaff26;box-shadow:inset 0 1px 0 #ffffff0d;font-size:13px;line-height:1.6;color:var(--journey-text);user-select:none}
.hm-demo .icon{width:15px;height:15px}
/* 01 question */
.demo-progress{display:flex;align-items:center;gap:10px;color:var(--journey-muted);font-size:11px}
.demo-progress i{flex:1;height:5px;border-radius:9px;background:linear-gradient(90deg,var(--hm-pink) 0 80%,#d8eaff26 80%)}
.demo-q{margin:12px 0 10px;font-size:17px;font-weight:550}
.demo-chips{display:flex;flex-wrap:wrap;gap:7px}
.demo-chips span{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border:1px solid var(--journey-line);border-radius:999px;background:var(--journey-input);color:var(--journey-muted)}
.demo-chips span .icon{color:var(--hm-pink)}
.demo-chips span.on{background:var(--journey-selected-bg);border-color:var(--journey-selected-bg);color:var(--journey-selected-text);font-weight:600}
.demo-chips span.on .icon{color:inherit}
.demo-hint{display:flex;align-items:center;gap:6px;margin-top:10px;color:#c8f3e1;font-size:12px}
/* 02 WhatsApp introduction */
.demo-wa{background:#0e2230;padding:0;overflow:hidden}
.demo-wa-head{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#163246;border-bottom:1px solid #d8eaff1a}
.demo-wa-head strong{display:block;font-size:13px}
.demo-wa-head small{display:block;color:var(--journey-muted);font-size:11px}
.demo-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--hm-pink);color:#3a1f2e;font-weight:700}
.demo-bubble{position:relative;margin:14px 14px 8px;padding:12px 14px 22px;border-radius:4px 16px 16px 16px;background:#1d3b52;color:#f3f7fb}
.demo-bubble p{margin:0}
.demo-person{display:flex;gap:10px;align-items:center;margin:10px 0}
.demo-photo{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:12px;background:linear-gradient(140deg,#f7c6dc,#9fc2df);color:#2a1d27;font-weight:700;font-size:18px}
.demo-person strong{display:block;font-size:14px}
.demo-person small{display:block;color:#c9d8e4;font-size:12px}
.demo-reason{color:#f7c6dc;font-size:12px}
.demo-bubble time{position:absolute;right:10px;bottom:6px;color:#9fb5c6;font-size:10px}
.demo-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:0 14px 14px}
.demo-actions span{padding:8px;text-align:center;border-radius:10px;background:#1d3b52;color:#9ed8ff;font-weight:600;font-size:13px}
/* 03 time list */
.demo-list-title{display:flex;align-items:center;gap:7px;margin-bottom:8px;font-weight:600}
.demo-list-title .icon{color:var(--hm-pink)}
.demo-list ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.demo-list li{display:flex;justify-content:space-between;gap:10px;padding:9px 12px;border:1px solid #d8eaff1f;border-radius:12px;background:var(--journey-input)}
.demo-list li small{color:var(--journey-muted)}
.demo-list li.on{border-color:var(--hm-pink);background:#f2b8d41f}
.demo-list li.other{border-style:dashed}
/* 04 venue */
.demo-map{position:relative;height:118px;border-radius:14px;overflow:hidden;background:radial-gradient(circle at 20% 30%,#ffffff0d 0 2px,transparent 3px) 0 0/22px 22px,linear-gradient(135deg,#1b3a51,#122a3b)}
.demo-map .demo-lines{position:absolute;inset:0;width:100%;height:100%}
.demo-map .demo-lines path{fill:none;stroke:#f2b8d4aa;stroke-width:.9;stroke-dasharray:2.4 2;vector-effect:non-scaling-stroke}
.demo-map span{position:absolute;display:grid;place-items:center;transform:translate(-50%,-50%);font-size:11px;font-weight:600}
.demo-map .pin-me{left:16%;top:73%;padding:3px 8px;border-radius:999px;background:#d8eaff;color:#132b3c}
.demo-map .pin-peer{left:86%;top:67%;padding:3px 8px;border-radius:999px;background:#d8eaff;color:#132b3c}
.demo-map .pin-venue{left:52%;top:43%;width:34px;height:34px;border-radius:50%;background:var(--journey-primary-bg);color:var(--hm-rose);box-shadow:0 0 0 6px #f2b8d433}
.demo-map .pin-venue .icon{width:18px;height:18px}
.demo-venue-info{display:grid;gap:2px;margin-top:10px}
.demo-venue-info strong{font-size:14px}
.demo-venue-info small{color:var(--journey-muted)}

/* ---------- Home: photos, reasons, FAQ, closing ---------- */
body[data-page="home"] .real-moments{background:radial-gradient(ellipse at center,#f2b8d40f,transparent 65%)}
body[data-page="home"] .moments-gallery figure{background:var(--hm-paper);box-shadow:0 14px 30px #04121c66}
body[data-page="home"] .photo-disclosure{color:#a9bccb;text-align:left}
.hm-why{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.hm-why article{min-width:0;padding:24px 22px;border:1px solid var(--journey-line);border-radius:22px;background:var(--hm-glass)}
.hm-why .icon{width:26px;height:26px;color:var(--hm-pink)}
.hm-why h3{margin:14px 0 8px;font-size:17px;font-weight:550;line-height:1.5}
.hm-why p{color:var(--journey-muted);font-size:14px;line-height:1.85}
body[data-page="home"] .faq-wrap details{border-color:var(--journey-line)}
body[data-page="home"] .faq-wrap summary{font-size:15px;line-height:1.6;padding-right:24px}
body[data-page="home"] .faq-wrap details p{font-size:14px;line-height:1.9;color:var(--journey-muted)}
body[data-page="home"] .join-banner{border:1px solid var(--journey-line);background:radial-gradient(ellipse at 50% 160%,#f2b8d438 0%,transparent 60%),var(--journey-surface);border-radius:var(--journey-radius);box-shadow:var(--journey-shadow);text-align:left}
body[data-page="home"] .join-banner h2{font:500 clamp(28px,3.6vw,40px)/1.45 var(--hm-serif);letter-spacing:-1px}

@media(max-width:1050px){.hm-why{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .hm-hero{padding:128px 0 64px;min-height:0}
  .hm-hero h1{font-size:40px;letter-spacing:-1.4px;line-height:1.32;margin:20px 0 16px}
  .hm-hero .hm-hero-lede{font-size:14px;line-height:1.9}
  .hm-hero .hero-kicker{font-size:9px;letter-spacing:1.6px}
  .hm-facts{gap:8px;margin-top:20px}
  .hm-facts li{font-size:12px;padding:7px 11px}
  .hm-signup{flex-direction:column;align-items:stretch;border-radius:26px;padding:10px;margin-top:24px}
  .hm-signup input{text-align:left;padding:0 12px;border-bottom:1px solid #d8eaff26}
  .hm-signup .btn{width:100%}
  .hm-steps{grid-template-columns:minmax(0,1fr);gap:16px}
  .hm-step{padding:20px 18px;border-radius:24px}
  .hm-how{padding-top:56px}
}
@media(max-width:560px){.hm-why{grid-template-columns:minmax(0,1fr)}.hm-why article{padding:20px 18px}}

/* ---------- Email and code autopilot (register, login, home) ---------- */
.email-assist{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px;font-size:12px;color:var(--journey-muted)}
.email-assist:empty{display:none}
.email-chip{min-height:36px;padding:6px 12px;border:1px solid var(--journey-line);border-radius:999px;background:var(--hm-glass-2);color:var(--journey-text);font-size:13px;line-height:1.3;cursor:pointer;overflow-wrap:anywhere}
.email-chip:hover{border-color:var(--hm-pink)}
.email-rule{margin-top:8px}
.otp-progress{display:flex;justify-content:center;gap:8px;margin:10px 0 2px}
.otp-progress i{width:9px;height:9px;border-radius:50%;background:#d8eaff33;transition:background .15s,transform .15s}
.otp-progress i.on{background:var(--hm-pink);transform:scale(1.15)}
.form-description strong{color:var(--journey-text);font-weight:600;overflow-wrap:anywhere}
.onboarding .signup-top{display:block;margin:4px 0 30px}
.signup-stepper{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;padding:0;font-size:12px;line-height:1.35;color:var(--journey-muted)}
.signup-stepper li{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:9px 7px;min-width:0}
.signup-stepper li::before{content:'';grid-column:1/-1;height:4px;border-radius:9px;background:#d8eaff26}
.signup-stepper span{display:inline-grid;place-items:center;width:20px;height:20px;border:1px solid var(--journey-line);border-radius:50%;font-size:11px}
.signup-stepper li[aria-current="step"]{color:var(--journey-text);font-weight:600}
.signup-stepper li[aria-current="step"]::before{background:var(--hm-pink)}
.signup-stepper li[aria-current="step"] span{border-color:var(--hm-pink);background:var(--hm-pink);color:#3a1f2e}

/* ---------- Profile flow: progress, question copy, one-tap answers ---------- */
.r3-topbar{display:grid;gap:12px;margin:0 0 26px}
.r3-topbar .r3-field-menu{margin:0}
.r3-progress{display:grid;gap:8px}
.r3-progress-text{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:13px;color:var(--journey-muted)}
.r3-progress-text strong{color:var(--journey-text);font-weight:600}
.r3-progress-count{font-variant-numeric:tabular-nums}
.r3-progress-bar{list-style:none;display:flex;gap:4px;margin:0;padding:0}
.r3-progress-bar li{flex:1;height:5px;border-radius:9px;background:#d8eaff26}
.r3-progress-bar li[data-status="done"]{background:var(--hm-pink)}
.r3-progress-bar li[data-status="current"]{background:#fff}
.r3-flow .r3-heading{gap:8px}
.r3-eyebrow{margin:0;color:var(--hm-pink);font-size:12px;letter-spacing:.3px}
.r3-flow .r3-heading h1{font-size:clamp(24px,4.4vw,32px);line-height:1.4;letter-spacing:-.6px}
.r3-flow .r3-heading .lede{font-size:14px;line-height:1.8;color:var(--journey-muted)}
/* The question already asks it; keep the control's label for assistive technology only. */
.r3-flow #r3-field-form:not([data-field="preferred_time"]):not([data-field="@photo"])>.field>.field-label:first-child{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.r3-flow .choice.suggested{border-color:#f2b8d499;border-style:dashed;color:var(--journey-text)}
.choice-tag{margin-left:auto;padding:2px 8px;border-radius:999px;background:#f2b8d42e;color:#f7c6dc;font-size:11px;font-weight:600;line-height:1.5;white-space:nowrap}
.r3-flow .choice.suggested::after{margin-left:0}
.r3-flow .choice[aria-busy="true"]::after{content:'';width:16px;height:16px;border:2px solid #bd006f40;border-top-color:var(--journey-selected-text);border-radius:50%;background:none;animation:journey-spin .8s linear infinite}
.smart-suggest{display:grid;gap:10px}
.smart-suggest-label{margin:0;color:var(--journey-muted);font-size:13px;line-height:1.6}
.suggest-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr));gap:10px}
.suggest-chip{display:grid;gap:2px;justify-items:start;min-height:64px;padding:12px 14px;border:1px solid #f2b8d466;border-radius:18px;background:#f2b8d414;color:var(--journey-text);text-align:left;font:inherit;cursor:pointer;transition:background .15s,border-color .15s}
.suggest-chip strong{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
.suggest-chip small{color:var(--journey-muted);font-size:12px}
.suggest-chip:hover{background:#f2b8d42b;border-color:var(--hm-pink)}
.suggest-chip.selected{background:var(--journey-selected-bg);border-color:var(--journey-selected-bg);color:var(--journey-selected-text)}
.suggest-chip.selected small{color:#8a3a68}
.suggest-chip[aria-busy="true"]{opacity:.6;cursor:wait}

/* Availability: the question and its explanation sit in the heading, so the editor drops its duplicate title;
   the timezone (almost always Hong Kong) moves below the day choices. */
.r3-flow .date-demand>h2,.r3-flow .date-demand>h2+.hint{display:none}
.r3-flow .date-demand>.field:has(#demand-timezone){order:8}
.r3-flow .date-demand>.hint:last-child{order:9}

/* Photos: three slots, the add tile is the file input's label. */
.photo-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.r3-flow .photo-grid.photo-slots{margin:0}
.photo-slot{position:relative;display:grid;aspect-ratio:3/4;min-width:0;margin:0;border-radius:18px;overflow:hidden;border:1px solid var(--journey-line);background:var(--journey-input)}
.photo-slot img{width:100%;height:100%;object-fit:cover}
.photo-slot figcaption{position:absolute;left:6px;bottom:6px;padding:2px 8px;border-radius:999px;background:#0b1d2bcc;color:#eef4f9;font-size:11px}
.photo-remove{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:32px;height:32px;padding:0;border-radius:50%;border:0;background:#0b1d2bcc;color:#fff;cursor:pointer}
.photo-remove .icon{width:16px;height:16px}
.photo-add{place-items:center;align-content:center;gap:6px;padding:10px;text-align:center;border-style:dashed;border-color:#f2b8d480;color:var(--journey-text);cursor:pointer}
.photo-add .icon{width:26px;height:26px;color:var(--hm-pink)}
.photo-add strong{font-size:14px}
.photo-add small{color:var(--journey-muted);font-size:11px;line-height:1.4}
.photo-add:focus-within{outline:2px solid var(--journey-focus);outline-offset:3px}
.r3-flow .consent-row{padding:14px;border:1px solid var(--journey-line);border-radius:16px;background:var(--hm-glass)}
.consent-row span{display:grid;gap:4px}
.consent-row strong{font-weight:600;color:var(--journey-text)}
.consent-row small{color:var(--journey-muted);font-size:12px;line-height:1.7}

/* Desktop: the question and a live introduction-card preview side by side. */
.r3-aside{display:none}
@media(min-width:1080px){
  .r3-page.container.r3-page-split{max-width:1080px;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}
  .r3-page-split .r3-aside{display:block;position:sticky;top:24px}
}

/* Introduction card preview (also shown inline after basics and while searching). */
.profile-preview{display:grid;gap:12px;min-width:0;padding:20px;border:1px solid var(--journey-line);border-radius:var(--journey-radius);background:var(--journey-surface);box-shadow:var(--journey-shadow)}
.r3-flow-body .profile-preview{box-shadow:none;background:var(--hm-glass)}
.profile-preview-kicker{margin:0;color:var(--journey-muted);font-size:12px;letter-spacing:.3px}
.profile-preview-card{display:grid;grid-template-columns:88px minmax(0,1fr);gap:14px;align-items:start;padding:14px;border-radius:20px;background:#f7f2f5;color:#2b2229}
.profile-preview-photo{display:grid;place-items:center;aspect-ratio:3/4;border-radius:14px;overflow:hidden;background:linear-gradient(140deg,#f7c6dc,#a9c7e3);color:#3a1f2e;font-size:30px;font-weight:700}
.profile-preview-photo img{width:100%;height:100%;object-fit:cover}
.profile-preview-photo .icon{width:30px;height:30px}
.profile-preview-body{display:grid;gap:6px;min-width:0}
.profile-preview-body h2{margin:0;font-size:20px;line-height:1.35;font-weight:650;color:#2b2229;overflow-wrap:anywhere}
.profile-preview-body h2 small{font-size:14px;font-weight:500;color:#6d5a67}
.profile-preview .profile-preview-line{margin:0;color:#5a4a55;font-size:13px;overflow-wrap:anywhere}
.profile-preview-tags{display:flex;flex-wrap:wrap;gap:5px}
.profile-preview-tags span{padding:2px 9px;border:1px solid #bd006f2e;border-radius:999px;color:#7a2d5a;font-size:12px}
.profile-preview-body blockquote{margin:2px 0 0;font:15px/1.7 var(--hm-serif);color:#3d2f39;overflow-wrap:anywhere}
.profile-preview-meter{display:grid;gap:6px;font-size:12px;color:var(--journey-muted)}
.profile-preview-meter i{display:block;height:5px;border-radius:9px;background:linear-gradient(90deg,var(--hm-pink) var(--fill,0%),#d8eaff26 var(--fill,0%))}
.profile-preview-missing{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;color:var(--journey-muted)}
.preview-add{display:inline-flex;align-items:center;min-height:32px;padding:4px 11px;border:1px dashed #f2b8d499;border-radius:999px;background:transparent;color:var(--journey-text);font:inherit;font-size:12px}
button.preview-add{min-height:40px;cursor:pointer}
button.preview-add:hover{background:#f2b8d41f}
.profile-preview-note{margin:0;color:#9fb5c6;font-size:11px;line-height:1.6}

/* Searching: concrete conditions and what happens next. */
.r3-search-conditions{display:grid;gap:0;margin:0;padding:0;border:1px solid var(--journey-line);border-radius:18px;overflow:hidden}
.r3-search-conditions>div{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;padding:12px 16px;border-top:1px solid var(--journey-line)}
.r3-search-conditions>div:first-child{border-top:0}
.r3-search-conditions dt{color:var(--journey-muted);font-size:13px}
.r3-search-conditions dd{margin:0;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.r3-timeline{list-style:none;margin:0;padding:0;display:grid;gap:0;counter-reset:step}
.r3-timeline li{position:relative;display:grid;gap:2px;padding:0 0 18px 38px;counter-increment:step}
.r3-timeline li::before{content:counter(step);position:absolute;left:0;top:0;display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--journey-line);border-radius:50%;background:var(--journey-input);color:var(--journey-muted);font-size:12px}
.r3-timeline li::after{content:'';position:absolute;left:13px;top:28px;bottom:2px;width:1px;background:var(--journey-line)}
.r3-timeline li:last-child{padding-bottom:0}
.r3-timeline li:last-child::after{display:none}
.r3-timeline li[aria-current="step"]::before{border-color:var(--hm-pink);background:var(--hm-pink);color:#3a1f2e;font-weight:700;box-shadow:0 0 0 5px #f2b8d42b}
.r3-timeline strong{font-size:15px;font-weight:600}
.r3-timeline span{color:var(--journey-muted);font-size:13px;line-height:1.75}
.r3-steps{margin:0;padding-left:22px;display:grid;gap:8px;color:var(--journey-muted);font-size:14px;line-height:1.75}
.r3-steps li::marker{color:var(--hm-pink);font-weight:700}

/* Arrangement: time options read as a list; calendar export. */
.r3-flow .btn.time-option{justify-content:flex-start;text-align:left;border-radius:16px;min-height:52px}
.r3-options-label{margin:4px 0 -6px;color:var(--journey-muted);font-size:13px}
.r3-flow .btn.r3-calendar .icon,.plan-actions .btn .icon{width:18px;height:18px}

/* Account: completeness and journey. */
.account-completeness{display:grid;gap:12px;padding:25px}
.account-completeness-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.account-completeness-head h2{margin:0;font-size:17px;font-weight:600}
.account-completeness-head span{color:var(--journey-muted);font-size:13px;font-variant-numeric:tabular-nums}
.account-completeness-bar{display:block;height:6px;border-radius:9px;background:linear-gradient(90deg,var(--hm-pink) var(--fill,0%),#d8eaff26 var(--fill,0%))}
.account-completeness-items{display:flex;flex-wrap:wrap;gap:8px}
.account-completeness-items a{display:inline-flex;align-items:center;min-height:40px;padding:6px 13px;border:1px dashed #f2b8d499;border-radius:999px;color:var(--journey-text);font-size:13px;text-decoration:none}
.account-completeness-items a:hover{background:#f2b8d41f}
.account-completeness p{margin:0;color:var(--journey-muted);font-size:13px;line-height:1.7}
.account-journey{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:4px 0 12px;padding:0}
.account-journey li{display:grid;gap:6px;font-size:12px;color:var(--journey-muted);text-align:center}
.account-journey li::before{content:'';height:5px;border-radius:9px;background:#d8eaff26}
.account-journey li[data-state="done"]::before{background:var(--hm-pink)}
.account-journey li[data-state="current"]{color:var(--journey-text);font-weight:600}
.account-journey li[data-state="current"]::before{background:#fff}

/* Introduction page: explain the choice right where it is made. */
.decision-note{margin:10px 0 0;color:var(--journey-muted);font-size:13px;line-height:1.75}

@media(max-width:540px){
  .photo-slots{gap:8px}
  .r3-search-conditions>div{grid-template-columns:minmax(0,1fr);gap:2px}
  .profile-preview-card{grid-template-columns:72px minmax(0,1fr)}
  .account-journey li{font-size:11px}
  .account-completeness{padding:22px}
}
@media(prefers-reduced-motion:reduce){
  .otp-progress i,.suggest-chip{transition:none}
  .r3-flow .choice[aria-busy="true"]::after{animation:none}
}

/* Responsive layout: share the desktop theme, give smaller screens their own rhythm.
   Keep these overrides together, after the older page-specific breakpoints. */
@media (min-width:761px) and (max-width:1079px){
  .header-inner{gap:20px}
  .header .brand-logo{width:160px}
  .header-actions{gap:10px}
  .login-page{gap:32px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .login-card{padding:28px}
  .hm-hero{min-height:0;padding-top:140px;padding-bottom:80px}
  .hm-hero h1{font-size:clamp(44px,6vw,60px)}
}

@media (max-width:760px){
  body{--mobile-gutter:16px}
  .container{width:calc(100% - var(--mobile-gutter)*2)}
  /* All header controls stay available, with one clear row for navigation. */
  body[data-page] .header{height:auto;min-height:104px;padding:8px 0;border-bottom:1px solid var(--journey-line)}
  body[data-page] .header .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:0 10px;align-items:center}
  body[data-page] .header .brand{grid-column:1;grid-row:1;justify-self:start}
  body[data-page] .header .brand-logo{width:120px}
  body[data-page] .header .header-actions{display:contents}
  body[data-page] .header .locale{grid-column:2 / 4;grid-row:1;justify-self:end;width:98px;max-width:100%;min-height:44px;font-size:13px;padding:6px 2px}
  body[data-page] .header .header-home{display:inline-flex;align-items:center;grid-column:1;grid-row:2;justify-self:start;min-height:44px;padding:6px 0;font-size:13px}
  body[data-page] .header .login-link{display:inline-flex;grid-column:2;grid-row:2;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:13px;white-space:nowrap}
  body[data-page] .header .header-actions>.btn{display:inline-flex;grid-column:3;grid-row:2;min-width:52px;min-height:44px;padding:10px 14px;font-size:13px}
  body[data-page] .header .account-nav{grid-column:2 / 4;grid-row:2;justify-self:end;min-width:0;max-width:100%;min-height:44px;padding:4px 0;gap:6px}
  body[data-page] .header .account-nav-name{max-width:136px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
  body[data-page] .header .account-nav-avatar{flex:none;width:24px;height:24px}
  body[data-page] .header .header-account-loading{grid-column:2 / 4;grid-row:2;font-size:12px}
  body[data-page="home"] .header{margin-bottom:-104px}
  body[data-page="home"] .header .nav{display:flex;grid-column:1;grid-row:2;gap:12px;min-width:0}
  body[data-page="home"] .nav button{min-width:44px;min-height:44px;font-size:12px;line-height:1.4;text-align:left}
  body:not([data-page="home"]) .header .nav{display:none}

  .hm-hero{padding:138px 0 52px;min-height:0}
  .hm-hero .hm-hero-copy{max-width:1232px}
  .hm-hero .hm-hero-photo{object-position:59% center;mask-image:none;-webkit-mask-image:none}
  .hm-hero-shade{background:linear-gradient(180deg,#132b3cd9 0%,#132b3c7d 28%,#132b3cc2 68%,#132b3c 100%)}
  .hm-hero .hero-kicker{max-width:100%;font-size:9px;letter-spacing:1.1px;line-height:1.6;padding:5px 9px}
  .hm-hero h1{font-size:clamp(32px,10.5vw,48px);line-height:1.32;letter-spacing:-1px;margin:18px 0 16px;text-wrap:balance}
  html[lang="en"] .hm-hero h1{font-size:clamp(29px,8.8vw,44px);letter-spacing:-.8px}
  .hm-hero .hm-hero-lede{font-size:14px;line-height:1.8;text-wrap:pretty}
  .hm-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:20px;max-width:440px}
  .hm-facts li{min-width:0;justify-content:flex-start;gap:7px;padding:10px;border-radius:12px;font-size:12px;line-height:1.5;text-align:left;background:#10273699}
  .hm-facts .icon{flex:none;width:16px;height:16px}
  .hm-signup{width:100%;max-width:440px;margin-top:20px;padding:8px;border-radius:22px;gap:8px;background:#102736cc}
  .hm-signup input{min-height:48px;width:100%;text-align:left;padding:10px 14px;border:1px solid #d8eaff26;border-radius:14px;background:#d8eaff08}
  .hm-signup .btn{min-height:50px;font-size:15px}
  .hm-hero .home-account{margin-top:20px}
  .hm-hero .hero-content>p.signup-note{font-size:11px;line-height:1.7}
  .hm-hero .hero-photo-note{font-size:10px;line-height:1.5;left:var(--mobile-gutter);right:var(--mobile-gutter);bottom:16px;width:auto;text-align:left}

  body[data-page="home"] .section{padding:48px 0}
  body[data-page="home"] .reference-heading{margin-bottom:26px}
  body[data-page="home"] .reference-heading>span{font-size:18px}
  body[data-page="home"] .reference-heading h2{font-size:clamp(25px,6.5vw,32px);line-height:1.5;margin-top:16px;text-wrap:balance}
  body[data-page="home"] .reference-heading p{font-size:14px;line-height:1.8}
  .hm-steps{gap:14px}
  .hm-step{padding:20px;gap:18px;border-radius:22px}
  .hm-step h3{font-size:19px}
  .hm-step p{font-size:14px;line-height:1.8}
  .hm-demo{padding:14px;border-radius:16px}
  .hm-demo.demo-wa{padding:0}
  .demo-person>div,.demo-list li>*{min-width:0;overflow-wrap:anywhere}
  .hm-demo-note{font-size:12px;line-height:1.8}
  body[data-page="home"] .moments-gallery{gap:18px 14px;padding:12px 3px 18px;align-items:start}
  body[data-page="home"] .moments-gallery figure{min-width:0;padding:6px 6px 12px;transform:rotate(-2deg);border-radius:3px}
  body[data-page="home"] .moments-gallery figure:nth-child(even){transform:rotate(2deg) translateY(8px)}
  body[data-page="home"] .moments-gallery img{height:auto;aspect-ratio:4/5;object-fit:cover}
  body[data-page="home"] .moments-gallery figcaption{font-size:12px;line-height:1.6;padding-top:10px;overflow-wrap:anywhere}
  body[data-page="home"] .photo-disclosure{font-size:11px;line-height:1.8;margin-top:16px}
  .hm-why{gap:12px}
  .hm-why article{padding:20px;border-radius:20px}
  .hm-why h3{margin-top:10px}
  body[data-page="home"] .faq-wrap{gap:20px}
  body[data-page="home"] .faq-wrap summary{min-height:56px;padding:16px 28px 16px 0}
  body[data-page="home"] .join-banner{padding:32px 20px;margin-bottom:40px;border-radius:24px}
  body[data-page="home"] .join-banner h2{font-size:30px}
  body[data-page="home"] .join-banner p{font-size:14px;line-height:1.8}
  .footer{padding-top:26px;padding-bottom:max(24px,env(safe-area-inset-bottom))}
  .footer-row{gap:18px}
  .footer .brand-logo{width:140px}
  .footer-links{flex-wrap:wrap;gap:8px 20px}
  .footer-links .text-btn{min-height:44px;font-size:13px}
  .footer-small{font-size:11px;line-height:1.8}

  /* Forms use the available width, with consistent readable supporting text. */
  .login-page{max-width:560px;gap:24px;min-height:0;padding-top:24px;padding-bottom:40px}
  .login-story h1{font-size:32px;line-height:1.4;letter-spacing:-.8px}
  .login-story>p{font-size:14px;line-height:1.8}
  html[lang="en"] .login-story h1 br,html[lang="en"] .login-story>p br{display:initial}
  .login-card{padding:24px 20px;border-radius:24px}
  .login-description,.login-card .field-label,.login-card .form-description{font-size:14px;line-height:1.8}
  .login-session-note{font-size:12px}
  .verification-actions,.login-bottom{flex-wrap:wrap;gap:8px 12px;font-size:13px}
  .verification-actions>*{min-width:0;max-width:100%;white-space:normal}
  .login-bottom .text-btn{min-height:44px}
  body[data-page="register"] .app-shell{padding-top:20px;min-height:0}
  body[data-page="register"] .onboarding{max-width:560px;margin:0 auto;padding:0 var(--mobile-gutter) max(32px,env(safe-area-inset-bottom))}
  body[data-page="register"] .onboarding .form-card{min-height:0}
  .onboarding .form-description,.onboarding .field-label{font-size:14px;line-height:1.8}
  .onboarding .form-legal{font-size:12px;line-height:1.8}
  .onboarding .signup-top{margin-bottom:24px}
  .r3-page.container{width:calc(100% - var(--mobile-gutter)*2);max-width:600px;padding-top:20px;padding-bottom:max(36px,env(safe-area-inset-bottom))}
  .r3-flow.panel{padding:22px 18px;border-radius:24px}
  .r3-topbar{margin-bottom:22px;gap:14px}
  .r3-progress-text{flex-wrap:wrap;gap:4px 12px}
  .r3-flow .r3-heading h1{font-size:24px;line-height:1.5;padding:12px 16px}
  .suggest-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .suggest-chip{min-height:64px;padding:12px;text-align:left}
  .photo-remove{width:44px;height:44px;top:2px;right:2px}
  .email-chip{min-height:44px}
  .modal-backdrop{padding:16px}
  .modal{max-height:calc(100dvh - 32px);padding:24px 20px;overscroll-behavior:contain}
  .modal-close{min-width:44px;min-height:44px;align-items:center;justify-content:center;top:10px;right:10px}
  .modal h2{margin-right:34px}
  .modal-actions{flex-wrap:wrap}

  /* Records and introductions read vertically on a phone. */
  .account-page{width:calc(100% - var(--mobile-gutter)*2);padding-top:24px}
  .account-page-heading>p{font-size:14px;line-height:1.8}
  .account-identity{padding:20px;gap:14px}
  .account-email{font-size:13px;overflow-wrap:anywhere}
  .account-status{font-size:12px;white-space:normal}
  .account-identity-actions{flex-wrap:wrap}
  .account-page .account-edit-button{font-size:13px}
  .account-record-links{grid-template-columns:minmax(0,1fr);gap:10px}
  .account-record-link{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px 18px;border-radius:18px}
  .account-record-link>.icon{display:block}
  .account-record-copy strong{font-size:15px}
  .account-record-copy>span{font-size:13px;line-height:1.7}
  .account-completeness,.account-details,.account-progress,.account-connection{padding:22px 20px}
  .account-completeness-head{flex-wrap:wrap;gap:6px 12px}
  .account-completeness-items a{min-height:44px}
  body[data-page="match"] .profile-poster{grid-template-columns:minmax(0,1fr);border-radius:22px;overflow:hidden}
  body[data-page="match"] .poster-image{min-height:0;height:clamp(240px,78vw,380px)}
  body[data-page="match"] .poster-image img{height:100%;width:100%;object-fit:cover}
  body[data-page="match"] .photo-unavailable{min-height:220px}
  body[data-page="match"] .poster-copy{padding:24px;border-radius:0}
  body[data-page="match"] .poster-copy p{font-size:14px;line-height:1.8}
  body[data-page="match"] .poster-copy blockquote{font-size:22px;line-height:1.7;margin-top:18px}
  body[data-page="match"] .poster-copy .tags span{font-size:12px;padding:5px 10px}
  body[data-page="match"] .poster-copy .eyebrow{font-size:11px}
  .sticky-actions>div{flex-wrap:wrap;gap:10px}
  .sticky-actions .btn{min-height:50px;font-size:14px}
}

@media (max-width:359px){
  body{--mobile-gutter:14px}
  body[data-page] .header .header-inner{column-gap:6px}
  body[data-page] .header .brand-logo{width:112px}
  body[data-page] .header .account-nav-name{max-width:110px}
  body[data-page="home"] .header .nav{gap:8px}
  body[data-page="home"] .nav button{font-size:11px}
  body[data-page] .header .header-actions>.btn{padding:10px 12px;font-size:12px}
  .hm-hero{padding-top:130px}
  .hm-hero .hero-kicker{font-size:8px;letter-spacing:.8px}
  .hm-facts li{font-size:11px;padding:9px 8px;gap:5px}
  .hm-step{padding:18px 16px}
  .r3-flow.panel{padding:20px 14px}
  .r3-flow .r3-heading h1{font-size:22px;padding:11px 14px}
  .r3-flow .activity-grid{grid-template-columns:minmax(0,1fr)}
  .r3-flow .activity-choice{min-height:72px;padding:12px 14px;gap:12px}
  .r3-flow .activity-choice strong{font-size:14px}
  .r3-flow .activity-choice small{font-size:12px}
  .photo-slots{grid-template-columns:repeat(2,minmax(0,1fr))}
  .verification-actions{align-items:stretch;flex-direction:column}
}
