@import url("./asset-config.css");

*{box-sizing:border-box;margin:0;padding:0}
:root{
  color-scheme:light;
  --page:#f5f7fb;--surface:#fff;--surface-soft:#f4f6fb;--text:#14213d;--muted:#65718b;
  --brand:#1456c8;--brand-strong:#0f3f99;--accent:#ed1c24;--line:rgba(20,33,61,.10);
  --hero:#1456c8;--hero-text:#fff;--portrait:#8db7ff;--portrait-deep:#4f86e6;
  --radius:22px;--card-radius:18px;--shadow:0 10px 24px rgba(23,43,83,.10);
  --display:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --body:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --dock-height:104px;
}
html{background:var(--page);font-family:var(--body);color:var(--text);-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-height:100vh;min-height:-webkit-fill-available;background:var(--page);overflow-x:hidden;padding-bottom:calc(var(--dock-height) + 18px);padding-bottom:calc(var(--dock-height) + 18px + constant(safe-area-inset-bottom));padding-bottom:calc(var(--dock-height) + 18px + env(safe-area-inset-bottom))}
html,body{scrollbar-width:none}
html::-webkit-scrollbar,body::-webkit-scrollbar{display:none;width:0;height:0}
button,input,select{font:inherit}
button{border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #f15c61;outline-offset:3px}
[hidden]{display:none!important}
.main-shell{width:100%;max-width:430px;min-height:100vh;margin:0 auto;background:var(--page);overflow:hidden}
.page{min-height:100vh}
.hero{position:relative;height:clamp(390px,61vh,540px);min-height:390px;overflow:hidden;background:var(--hero);color:var(--hero-text);border-radius:0 0 var(--radius) var(--radius)}
.hero::before,.hero::after{content:"";position:absolute;pointer-events:none}
.hero-copy{position:relative;z-index:3;width:59%;padding:clamp(28px,7vw,48px) 0 24px clamp(18px,5vw,28px);display:flex;flex-direction:column;align-items:flex-start;height:100%}
.hero-badge{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:7px 12px;border:1px solid rgba(255,255,255,.28);border-radius:999px;font-size:12px;line-height:1.2;font-weight:750;background:rgba(0,0,0,.10)}
.badge-pin{width:9px;height:9px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px rgba(255,255,255,.14)}
.hero-title{font-family:var(--display);font-size:clamp(30px,8.4vw,42px);line-height:1.04;letter-spacing:-.035em;margin-top:22px;font-weight:850;text-wrap:balance}
.hero-sub{font-size:clamp(15px,4vw,17px);line-height:1.5;margin-top:16px;color:rgba(255,255,255,.86)}
.hero-count{display:flex;gap:9px;align-items:center;margin-top:auto;margin-bottom:28px;font-size:15px;font-weight:760;min-height:28px}
.count-icon{font-size:11px}
.hero-portrait{position:absolute;z-index:2;right:-6%;bottom:-4%;width:54%;height:86%;color:var(--portrait);filter:saturate(.9)}
.portrait-halo{position:absolute;width:112%;height:60%;border-radius:50%;right:-18%;top:3%;background:var(--portrait);opacity:.28}
.portrait-head{position:absolute;width:54%;height:39%;right:24%;top:12%;border-radius:48% 52% 46% 44%;background:var(--portrait)}
.portrait-head::after{content:"";position:absolute;width:30%;height:42%;left:-8%;bottom:1%;background:var(--portrait);clip-path:polygon(100% 0,72% 38%,100% 52%,62% 72%,90% 100%,0 83%,12% 8%)}
.portrait-neck{position:absolute;width:27%;height:24%;right:33%;top:43%;background:var(--portrait);border-radius:0 0 42% 42%}
.portrait-body{position:absolute;width:108%;height:49%;right:-7%;bottom:-7%;border-radius:54% 46% 0 0;background:linear-gradient(140deg,var(--portrait),var(--portrait-deep))}
.profile-tone-rose{--portrait:#d7a5a6;--portrait-deep:#a8636c}
.profile-tone-clay{--portrait:#d5966f;--portrait-deep:#ad5e3a}
.profile-tone-sage{--portrait:#a9b9ad;--portrait-deep:#6d877c}
.profile-tone-stone{--portrait:#b8b0a4;--portrait-deep:#827b70}
.thumb-strip{position:relative;z-index:5;margin-top:-18px;padding:0 14px}
.thumb-track{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.thumb-card{position:relative;min-width:0;aspect-ratio:4/5;border-radius:15px;border:3px solid var(--surface);background:var(--surface-soft);box-shadow:0 8px 16px rgba(14,35,72,.13);overflow:hidden;color:var(--muted)}
.thumb-card::before{content:"";position:absolute;width:34%;aspect-ratio:1;border-radius:50%;left:33%;top:17%;background:currentColor;opacity:.42}
.thumb-card::after{content:"";position:absolute;width:70%;height:45%;border-radius:50% 50% 14% 14%;left:15%;bottom:-3%;background:currentColor;opacity:.42}
.thumb-card.active{border-color:var(--accent);transform:translateY(-3px)}
.thumb-card[data-tone="rose"]{color:#b77f82}.thumb-card[data-tone="clay"]{color:#bd7853}.thumb-card[data-tone="sage"]{color:#80978a}.thumb-card[data-tone="stone"]{color:#8e887e}
.content-stack{display:grid;gap:12px;padding:18px 14px 0}
.story-card,.mini-stats,.trust-card,.timer-card,.faq-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--card-radius);box-shadow:var(--shadow)}
.story-card{display:grid;grid-template-columns:82px 1fr;gap:16px;align-items:center;padding:18px}
.story-mark{width:72px;aspect-ratio:1;border-radius:22px;display:grid;place-items:center;background:var(--surface-soft);color:var(--brand);font-size:34px}
.story-eyebrow{font-size:12px;line-height:1.2;font-weight:780;color:var(--accent)}
.story-title{font-family:var(--display);font-size:23px;line-height:1.12;margin-top:7px;letter-spacing:-.025em}
.story-text{font-size:15px;line-height:1.5;color:var(--muted);margin-top:8px}
.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);padding:14px 4px}
.stat{display:flex;min-width:0;flex-direction:column;align-items:center;text-align:center;padding:5px 7px;border-right:1px solid var(--line)}
.stat:last-child{border-right:0}
.stat-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--surface-soft);color:var(--brand);font-size:22px}
.stat strong{font-family:var(--display);font-size:25px;line-height:1;margin-top:9px}
.stat small{font-size:12px;line-height:1.3;color:var(--muted);margin-top:6px}
.trust-card{padding:18px 14px}
.block-title{font-family:var(--display);font-size:25px;text-align:center;line-height:1.15}
.trust-grid{display:grid;grid-template-columns:repeat(3,1fr);margin-top:16px}
.trust-item{display:flex;min-width:0;flex-direction:column;align-items:center;text-align:center;padding:2px 8px;border-right:1px solid var(--line)}
.trust-item:last-child{border-right:0}
.trust-item>span{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--surface-soft);color:var(--accent);font-size:21px}
.trust-item strong{font-size:13px;line-height:1.25;margin-top:9px}
.trust-item small{font-size:11px;line-height:1.35;color:var(--muted);margin-top:5px}
.privacy{padding:18px 16px 12px;text-align:center;font-size:12px;line-height:1.5;color:var(--muted)}
.sticky-dock{position:fixed;z-index:500;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,430px);min-height:var(--dock-height);padding:12px 14px 8px;background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -10px 30px rgba(14,31,64,.14);padding-bottom:calc(8px + constant(safe-area-inset-bottom));padding-bottom:calc(8px + env(safe-area-inset-bottom))}
.primary-cta{width:100%;min-height:52px;border-radius:15px;background:var(--accent);color:#fff;font-size:17px;line-height:1.2;font-weight:850;padding:13px 18px;box-shadow:0 8px 20px rgba(31,43,72,.18)}
.primary-cta:disabled{background:#aeb5c2;color:#f7f8fa;box-shadow:none;cursor:default}
.dock-note{min-height:28px;display:flex;justify-content:center;align-items:center;gap:8px;color:var(--brand);font-size:13px;font-weight:650;padding-top:7px}
.safari-stack{padding-bottom:4px}
.timer-card{padding:18px}
.timer-top,.timer-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px;color:var(--brand);font-weight:750}
.timer-top span{background:var(--surface-soft);border-radius:999px;padding:7px 10px}
.timer-card h2{font-family:var(--display);font-size:25px;line-height:1.14;margin-top:17px}
.timer-card>p{font-size:15px;line-height:1.55;color:var(--muted);margin-top:9px}
.progress-shell{height:8px;border-radius:999px;background:var(--surface-soft);overflow:hidden;margin-top:18px}
.progress-bar{height:100%;width:0;background:var(--accent);transition:width 1s linear}
.timer-meta{margin-top:9px;color:var(--muted)}
.proof-list{display:grid;gap:9px;margin-top:17px}
.proof-list article{display:flex;gap:11px;align-items:flex-start;padding:11px;border-radius:14px;background:var(--surface-soft)}
.proof-list b{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:9px;background:var(--brand);color:#fff}
.proof-list strong,.proof-list span{display:block}.proof-list strong{font-size:13px}.proof-list span{font-size:12px;line-height:1.45;color:var(--muted);margin-top:3px}
.timer-lock{margin-top:15px;border-radius:14px;background:var(--text);color:#fff;padding:13px}
.timer-lock strong,.timer-lock span{display:block}.timer-lock strong{font-size:13px}.timer-lock span{font-size:12px;line-height:1.45;margin-top:4px;color:rgba(255,255,255,.76)}
.faq-card{padding:18px}.faq-card .block-title{text-align:left;font-size:22px}.faq-card article{padding:12px 0;border-bottom:1px solid var(--line)}.faq-card article:last-child{border:0}.faq-card strong,.faq-card span{display:block}.faq-card strong{font-size:14px}.faq-card span{font-size:13px;line-height:1.5;color:var(--muted);margin-top:5px}
.sheet{display:none;position:fixed;z-index:700;inset:0;background:rgba(7,14,29,.62);align-items:flex-end;justify-content:center}
.sheet.is-open{display:flex}
.sheet-inner{width:100%;max-width:500px;max-height:min(92vh,760px);overflow:auto;background:var(--surface);border-radius:24px 24px 0 0;padding:14px 16px 22px;padding-bottom:calc(22px + constant(safe-area-inset-bottom));padding-bottom:calc(22px + env(safe-area-inset-bottom))}
.sheet-handle{width:42px;height:4px;border-radius:999px;background:var(--line);margin:0 auto 16px}
.sheet h2{font-family:var(--display);font-size:23px;line-height:1.2}.sheet p{font-size:14px;line-height:1.5;color:var(--muted);margin-top:7px}
.guide-image{display:block;width:100%;max-height:230px;object-fit:contain;margin-top:12px;border-radius:16px;background:var(--surface-soft)}
.guide-steps{display:grid;gap:8px;margin-top:13px}.guide-steps article{display:flex;gap:10px;align-items:flex-start;background:var(--surface-soft);padding:11px;border-radius:13px;font-size:13px;line-height:1.45}.guide-steps b{display:grid;place-items:center;flex:0 0 26px;height:26px;border-radius:8px;background:var(--brand);color:#fff}
.sheet-button{width:100%;min-height:50px;border-radius:14px;background:var(--accent);color:#fff;font-size:16px;font-weight:850;margin-top:13px;padding:12px}
.sheet-note{text-align:center;font-size:12px!important}.copy-status,.form-status{display:none;border-radius:12px;padding:10px;margin-top:10px;text-align:center;font-size:12px;font-weight:750;background:#eaf6ed;color:#26753a}.form-status{background:#fff1df;color:#8b5100}
.form-row{display:grid;grid-template-columns:96px 1fr;gap:8px;margin-top:15px}.sheet input,.sheet select{width:100%;height:50px;border:1.5px solid var(--line);border-radius:12px;background:#fff;padding:0 12px;font-size:16px;color:var(--text)}.sheet input+input{margin-top:9px}
body.sheet-open{overflow:hidden}.sheet-open .sticky-dock{visibility:hidden}

/* A — editorial */
html[data-theme="a"]{--page:#f4efe5;--surface:#fffaf0;--surface-soft:#efe5d3;--text:#241715;--muted:#6f5b53;--brand:#681916;--brand-strong:#42100e;--accent:#6f1714;--line:rgba(111,23,20,.25);--hero:#651b18;--hero-text:#fff9ed;--portrait:#2f1c1a;--portrait-deep:#150d0c;--radius:34px;--card-radius:4px;--shadow:none;--display:Georgia,"Times New Roman",serif}
html[data-theme="a"] body{background-color:var(--page);background-image:radial-gradient(rgba(76,47,35,.05) .8px,transparent .8px);background-size:5px 5px}
html[data-theme="a"] .hero{border-radius:0 0 38px 38px;background:linear-gradient(135deg,#4d1210,#7b2520)}
html[data-theme="a"] .hero::before{inset:18px;border:1px solid rgba(205,168,91,.38);border-bottom:0;border-radius:18px 18px 0 0}
html[data-theme="a"] .hero-badge{border-color:#bd9854;background:transparent;color:#fff5df}
html[data-theme="a"] .hero-title{font-weight:600;letter-spacing:-.025em}
html[data-theme="a"] .thumb-card{border-width:2px;border-radius:3px;box-shadow:none}
html[data-theme="a"] .thumb-card.active{border-color:#b28b43;outline:2px solid var(--brand);outline-offset:2px}
html[data-theme="a"] .story-card,html[data-theme="a"] .mini-stats,html[data-theme="a"] .trust-card,html[data-theme="a"] .timer-card,html[data-theme="a"] .faq-card{border-color:#b99250;background:rgba(255,250,240,.94)}
html[data-theme="a"] .story-mark{border-radius:0;border:1px solid #b99250;background:transparent;color:var(--brand)}
html[data-theme="a"] .stat strong{color:var(--brand);font-weight:500}
html[data-theme="a"] .trust-item>span{border-radius:0;background:transparent;border:1px solid #b99250}
html[data-theme="a"] .sticky-dock{background:#5c1512;border-color:#b99250;color:#fff}
html[data-theme="a"] .primary-cta{border:1px solid #c8a158;background:#6b1714;border-radius:3px;box-shadow:inset 0 0 0 3px #6b1714,inset 0 0 0 4px #c8a158;font-family:var(--display);font-size:20px}
html[data-theme="a"] #safariDock .primary-cta{height:48px;min-height:48px;padding:0 10px;font-size:16px;white-space:nowrap}
html[data-theme="a"] .dock-note{color:#fff4dc}

/* B — native iOS */
html[data-theme="b"] .hero{background:linear-gradient(135deg,#08399d,#1e6de0)}
html[data-theme="b"] .hero::after{width:300px;height:300px;border-radius:50%;right:-120px;top:-100px;background:rgba(255,255,255,.10)}
html[data-theme="b"] .thumb-strip{margin-top:-30px}
html[data-theme="b"] .story-card,html[data-theme="b"] .mini-stats,html[data-theme="b"] .trust-card{box-shadow:0 8px 22px rgba(23,43,83,.10)}
html[data-theme="b"] .story-title,html[data-theme="b"] .block-title{font-weight:850}

/* C — contemporary Anatolian */
html[data-theme="c"]{--page:#f5ecdd;--surface:#fff8ed;--surface-soft:#eee1cf;--text:#173f3c;--muted:#685f55;--brand:#0f4c49;--brand-strong:#0a3533;--accent:#c94d17;--line:rgba(32,78,72,.17);--hero:#f3dfbd;--hero-text:#123f3c;--portrait:#dbc7a4;--portrait-deep:#759087;--radius:36px;--card-radius:20px;--shadow:0 8px 18px rgba(71,55,35,.08);--display:Georgia,"Times New Roman",serif}
html[data-theme="c"] body{background:var(--page)}
html[data-theme="c"] .hero{background:linear-gradient(135deg,#f5e5c9 0 62%,#0f4c49 62% 100%);border-radius:0 0 42px 42px}
html[data-theme="c"] .hero::before{width:190px;height:190px;border-radius:50%;right:-18px;top:52px;background:#c85a29}
html[data-theme="c"] .hero-badge{background:var(--brand);border:0;color:#fff}
html[data-theme="c"] .hero-title{font-weight:600;letter-spacing:-.02em}
html[data-theme="c"] .hero-sub{color:#2d4540}
html[data-theme="c"] .hero-portrait{--portrait:#d7c5a4;--portrait-deep:#7b958d}
html[data-theme="c"] .thumb-card{border-radius:14px;border-color:#fff8ed}
html[data-theme="c"] .thumb-card.active{border-color:var(--accent)}
html[data-theme="c"] .story-card{position:relative;overflow:hidden}
html[data-theme="c"] .story-card::before,html[data-theme="c"] .trust-card::before{content:"";position:absolute;inset:0 0 auto;height:6px;background:repeating-linear-gradient(90deg,var(--accent) 0 8px,transparent 8px 14px,var(--brand) 14px 19px,transparent 19px 26px);opacity:.35}
html[data-theme="c"] .trust-card{position:relative;overflow:hidden}
html[data-theme="c"] .story-mark{border-radius:50%;background:#efe0c9;color:var(--brand)}
html[data-theme="c"] .stat:nth-child(2) strong{color:var(--accent)}
html[data-theme="c"] .primary-cta{background:var(--accent)}

@media (max-width:374px){
  :root{--dock-height:98px}
  .hero{height:390px}.hero-copy{width:61%;padding-left:16px;padding-top:24px}.hero-title{font-size:29px;margin-top:16px}.hero-sub{font-size:14px;line-height:1.42;margin-top:12px}.hero-badge{font-size:11px;padding:6px 9px}.hero-portrait{right:-11%;width:58%;height:82%}
  .thumb-strip{padding:0 8px}.thumb-track{gap:4px}.thumb-card{border-width:2px;border-radius:11px}
  .content-stack{padding-left:9px;padding-right:9px;gap:9px}.story-card{grid-template-columns:62px 1fr;gap:11px;padding:13px}.story-mark{width:58px;border-radius:17px}.story-title{font-size:20px}.story-text{font-size:14px}
  .stat{padding-left:3px;padding-right:3px}.stat strong{font-size:22px}.stat small{font-size:10px}.trust-card{padding-left:8px;padding-right:8px}.trust-item{padding-left:4px;padding-right:4px}.trust-item strong{font-size:11px}.trust-item small{font-size:10px}
  .sticky-dock{padding-left:9px;padding-right:9px}.primary-cta{min-height:48px;font-size:16px}.dock-note{font-size:12px;padding-top:4px}
}
@media (max-height:700px){
  :root{--dock-height:92px}
  .hero{height:410px;min-height:390px}.hero-copy{padding-top:24px;padding-bottom:14px}.hero-title{font-size:clamp(29px,8vw,34px);margin-top:16px}.hero-sub{margin-top:11px;font-size:14px}.hero-count{font-size:13px;margin-bottom:25px}.thumb-card{aspect-ratio:1/1.16}
  .sticky-dock{padding-top:7px;padding-bottom:3px}.primary-cta{min-height:48px}.dock-note{min-height:24px;padding-top:3px}
}
@media (min-width:431px){body{background:#e7e9ed}.main-shell{box-shadow:0 0 40px rgba(18,31,58,.10)}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* 2026-08-23 Figma-approved A/B/C UI implementation.
   CSS-only: DOM, copy, tracking and Safari handoff remain frozen. */
:root{
  --dock-height:108px;
  --cta-height:56px;
  --tap-min:44px;
}

body{
  padding-bottom:calc(var(--dock-height) + 18px);
  padding-bottom:calc(var(--dock-height) + 18px + constant(safe-area-inset-bottom));
  padding-bottom:calc(var(--dock-height) + 18px + env(safe-area-inset-bottom));
}

/* Preserve the existing DOM while matching the approved first-view hierarchy. */
#gatePage:not([hidden]){display:flex;flex-direction:column;position:relative;min-height:100vh}
#gatePage .hero{order:1}
#gatePage .content-stack{display:contents}
#gatePage .story-card{order:2;position:relative;z-index:7;display:block;overflow:hidden}
#gatePage .thumb-strip{order:3;z-index:9}
#gatePage .mini-stats{order:4;margin:66px 14px 0}
#gatePage .trust-card{order:5;margin:12px 14px 0}
#gatePage>.privacy{position:absolute;z-index:10;left:24px;top:679px;width:calc(100% - 48px);padding:0;text-align:left}

/* Shared gate geometry: 375×812 is the primary reference. */
#gatePage .hero{height:448px;min-height:448px;border-radius:0 0 36px 36px}
#gatePage .hero-copy{position:absolute;inset:0;z-index:4;width:100%;height:100%;padding:0;display:block}
#gatePage .hero-badge{position:absolute;left:20px;top:24px;width:224px;min-height:34px;padding:7px 12px;gap:8px;font-size:11px;line-height:17px;white-space:nowrap}
#gatePage .badge-pin{flex:0 0 8px;width:8px;height:8px;box-shadow:none}
#gatePage .hero-title{position:absolute;left:20px;top:82px;width:198px;margin:0;font-size:27px;line-height:29px;letter-spacing:-.02em;text-wrap:wrap;overflow-wrap:normal;word-break:normal}
#gatePage .hero-sub{position:absolute;left:20px;top:238px;width:192px;margin:0;font-size:12px;line-height:17px;color:rgba(255,255,255,.84)}
#gatePage .hero-count{position:absolute;left:20px;top:322px;min-width:126px;min-height:32px;margin:0;padding:7px 12px;gap:8px;border-radius:16px;font-size:12px;line-height:18px;background:rgba(255,255,255,.14)}
#gatePage .count-icon{font-size:10px}

#gatePage .hero-portrait{position:absolute;z-index:3;left:auto;right:5px;top:145px;bottom:auto;width:142px;height:266px;filter:none;color:var(--portrait);overflow:hidden;border-radius:72px 72px 0 0}
#gatePage .hero-portrait{background-repeat:no-repeat;background-size:cover}
#gatePage .portrait-halo{display:none}
#gatePage .portrait-head{width:68px;height:78px;right:37px;top:22px;border-radius:50%;background:var(--portrait-deep)}
#gatePage .portrait-head::after{display:none}
#gatePage .portrait-neck{display:none}
#gatePage .portrait-body{width:158px;height:214px;right:-8px;bottom:-38px;border-radius:50% 50% 0 0;background:var(--portrait-deep)}

#gatePage .story-card{height:300px;margin:-38px 14px 0;padding:18px 18px 116px;border:0;border-radius:28px;box-shadow:0 10px 24px rgba(23,43,84,.10)}
#gatePage .story-mark{display:none}
#gatePage .story-card>div:last-child{display:block}
#gatePage .story-eyebrow{display:inline-flex;align-items:center;min-height:28px;padding:5px 13px;border-radius:14px;background:var(--surface-soft);font-size:11px;line-height:17px;color:var(--text)}
#gatePage .story-title{margin-top:12px;font-size:21px;line-height:25px;letter-spacing:-.02em}
#gatePage .story-text{margin-top:8px;font-size:13px;line-height:18px}

#gatePage .thumb-strip{margin-top:-123px;padding:0 32px}
#gatePage .thumb-track{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
#gatePage .thumb-card{height:72px;aspect-ratio:auto;border-width:1px;border-radius:50%;box-shadow:none;background:var(--surface-soft);transform:none}
#gatePage .thumb-card::before{width:44%;left:28%;top:14%;opacity:1;background:var(--portrait-deep)}
#gatePage .thumb-card::after{width:76%;height:42%;left:12%;bottom:-1%;border-radius:50% 50% 30% 30%;opacity:1;background:var(--portrait-deep)}
#gatePage .thumb-card.active{border-width:3px;border-color:var(--accent);transform:none;outline:0}

/* Variant A — Anatolian editorial. */
html[data-theme="a"]{
  --page:#fff9f0;--surface:#fff;--surface-soft:#f3e6d2;--text:#4b1024;--muted:#7d6b68;
  --brand:#7a1738;--brand-strong:#4b1024;--accent:#b52a45;--line:rgba(214,180,107,.55);
  --hero:#4b1024;--hero-text:#fff;--portrait:#7a1738;--portrait-deep:#260b18;
  --radius:32px;--card-radius:18px;--shadow:0 6px 18px rgba(41,10,20,.08);
  --display:Georgia,"Times New Roman",serif;
}
html[data-theme="a"] body{background:var(--page);background-image:none}
html[data-theme="a"] #gatePage .hero{height:452px;min-height:452px;border-radius:0 0 32px 32px;background:var(--hero)}
html[data-theme="a"] #gatePage .hero::before{inset:26px 20px auto;height:1px;border:0;border-radius:0;background:#d6b46b;opacity:1}
html[data-theme="a"] #gatePage .hero-badge{top:43px;width:252px;border-color:#d6b46b;border-radius:4px;background:transparent}
html[data-theme="a"] #gatePage .hero-title{top:94px;width:195px;font-size:27px;line-height:29px;font-weight:700;letter-spacing:-.015em}
html[data-theme="a"] #gatePage .hero-sub{top:250px;width:192px;color:#fff}
html[data-theme="a"] #gatePage .hero-count{top:332px;min-width:132px;min-height:30px;padding:6px 11px;border:1px solid #d6b46b;border-radius:4px;background:transparent}
html[data-theme="a"] #gatePage .hero-portrait{right:20px;top:112px;width:130px;height:302px;border:2px solid #d6b46b;border-radius:67px 67px 8px 8px;background:rgba(122,23,56,.55)}
html[data-theme="a"] #gatePage .hero-portrait{background-image:var(--hero-image-a);background-position:var(--hero-image-position-a);background-size:var(--hero-image-size-a);background-repeat:no-repeat}
html[data-theme="a"] #gatePage .hero-portrait>span{opacity:var(--hero-placeholder-a)}
html[data-theme="a"] .hero-portrait.has-profile-image{background-position:50% 22%;background-size:cover;background-repeat:no-repeat}
html[data-theme="a"] .hero-portrait.has-profile-image>span{opacity:0!important}
html[data-theme="a"] .thumb-card.has-profile-image{background-position:center 22%;background-size:cover;background-repeat:no-repeat}
html[data-theme="a"] .thumb-card.has-profile-image::before,
html[data-theme="a"] .thumb-card.has-profile-image::after{display:none}
html[data-theme="a"] #gatePage .portrait-head{width:62px;height:74px;right:32px;top:56px;background:#260b18}
html[data-theme="a"] #gatePage .portrait-body{width:146px;height:210px;right:-9px;bottom:-30px;background:#260b18}
html[data-theme="a"] #gatePage .story-card{height:286px;margin-top:-32px;padding:18px 18px 108px;border:1px solid #d6b46b;border-radius:18px;background:#fff;box-shadow:0 6px 18px rgba(41,10,20,.08)}
html[data-theme="a"] #gatePage .story-eyebrow{padding:0;background:transparent;border-radius:0;color:#d6b46b;text-transform:uppercase}
html[data-theme="a"] #gatePage .story-title{font-size:22px;line-height:26px;font-weight:700}
html[data-theme="a"] #gatePage .thumb-strip{margin-top:-118px;padding:0 34px}
html[data-theme="a"] #gatePage .thumb-track{gap:10px}
html[data-theme="a"] #gatePage .thumb-card{height:72px;border:1px solid #d6b46b;border-radius:6px;background:#f3e6d2}
html[data-theme="a"] #gatePage .thumb-card.active{border-color:#d6b46b;outline:0}
html[data-theme="a"] #gatePage .sticky-dock{background:var(--page)}
html[data-theme="a"] .sticky-dock{background:var(--page);border-color:#d6b46b;color:var(--text)}
html[data-theme="a"] .primary-cta{border:0;border-radius:12px;background:var(--accent);box-shadow:0 8px 18px -2px rgba(77,8,20,.22);font-family:var(--body);font-size:17px}
html[data-theme="a"] .dock-note{color:var(--muted)}

/* Variant B — Istanbul performance app. */
html[data-theme="b"]{
  --page:#f4f7ff;--surface:#fff;--surface-soft:#f4f7ff;--text:#14213d;--muted:#65718b;
  --brand:#1456c8;--brand-strong:#0f3f99;--accent:#ed1c24;--line:rgba(169,204,255,.72);
  --hero:#1456c8;--hero-text:#fff;--portrait:#a9ccff;--portrait-deep:#0f3f99;
  --radius:36px;--card-radius:28px;--shadow:0 10px 24px rgba(23,43,84,.10);
  --display:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
html[data-theme="b"] #gatePage .hero{background:var(--hero)}
html[data-theme="b"] #gatePage .hero::before{width:230px;height:230px;right:-45px;top:101px;border:2px solid rgba(255,255,255,.42);border-radius:50%;background:transparent}
html[data-theme="b"] #gatePage .hero::after{width:190px;height:190px;right:-25px;top:120px;border-radius:50%;background:#a9ccff;opacity:.9}
html[data-theme="b"] #gatePage .hero-badge{background:rgba(255,255,255,.14);border:0}
html[data-theme="b"] #gatePage .hero-title{font-weight:850}
html[data-theme="b"] #gatePage .hero-portrait{background:transparent}
html[data-theme="b"] #gatePage .hero-portrait{background-image:var(--hero-image-b);background-position:var(--hero-image-position-b);background-size:var(--hero-image-size-b);background-repeat:no-repeat}
html[data-theme="b"] #gatePage .hero-portrait>span{opacity:var(--hero-placeholder-b)}
html[data-theme="b"] #gatePage .story-title{font-weight:850}
html[data-theme="b"] #gatePage .thumb-card{border-color:#a9ccff}
html[data-theme="b"] #gatePage .thumb-card.active{border-color:var(--accent)}

/* Variant C — Aegean lifestyle. */
html[data-theme="c"]{
  --page:#fff9f0;--surface:#f3e6d2;--surface-soft:#fff9f0;--text:#0f4f4a;--muted:#7d6b68;
  --brand:#177a70;--brand-strong:#0f4f4a;--accent:#c65d3a;--line:rgba(42,157,143,.9);
  --hero:#fff9f0;--hero-text:#0f4f4a;--portrait:#2a9d8f;--portrait-deep:#0f4f4a;
  --radius:0;--card-radius:32px;--shadow:0 10px 24px rgba(23,43,84,.10);
  --display:Georgia,"Times New Roman",serif;
}
html[data-theme="c"] body{background:var(--page)}
html[data-theme="c"] #gatePage .hero{background:var(--hero);border-radius:0}
html[data-theme="c"] #gatePage .hero::before{left:0;right:0;top:0;width:auto;height:10px;border-radius:0;background:repeating-linear-gradient(90deg,#2a9d8f 0 30px,transparent 30px 36px,#c65d3a 36px 62px,transparent 62px 80px);opacity:1}
html[data-theme="c"] #gatePage .hero::after{width:174px;height:174px;right:-21px;top:220px;border-radius:50%;background:#c65d3a;opacity:.92}
html[data-theme="c"] #gatePage .hero-badge{top:30px;width:242px;border:1px solid #2a9d8f;border-radius:6px;background:transparent;color:var(--text)}
html[data-theme="c"] #gatePage .hero-title{top:86px;width:calc(100% - 40px);font-size:29px;line-height:33px;font-weight:700;color:var(--text);text-wrap:balance}
html[data-theme="c"] #gatePage .hero-sub{top:202px;width:196px;font-size:12.5px;line-height:18px;color:var(--muted)}
html[data-theme="c"] #gatePage .hero-count{top:296px;min-width:132px;border:1px solid #2a9d8f;background:var(--surface);color:var(--text)}
html[data-theme="c"] #gatePage .hero-portrait{right:15px;top:188px;width:122px;height:250px;border-radius:61px 61px 18px 18px;background:#2a9d8f}
html[data-theme="c"] #gatePage .hero-portrait{background-image:var(--hero-image-c);background-position:var(--hero-image-position-c);background-size:var(--hero-image-size-c);background-repeat:no-repeat}
html[data-theme="c"] #gatePage .hero-portrait>span{opacity:var(--hero-placeholder-c)}
html[data-theme="c"] #gatePage .portrait-head{width:62px;height:72px;right:30px;top:38px;background:#0f4f4a}
html[data-theme="c"] #gatePage .portrait-body{width:148px;height:184px;right:-13px;bottom:-34px;background:#0f4f4a}
html[data-theme="c"] #gatePage .story-card{margin-top:-36px;border:1px solid #2a9d8f;border-radius:32px 8px 32px 8px;background:var(--surface)}
html[data-theme="c"] #gatePage .story-card::before{left:18px;top:19px;width:34px;height:4px;border-radius:2px;background:var(--accent);opacity:1}
html[data-theme="c"] #gatePage .story-eyebrow{margin-top:14px;padding:0;background:transparent;border-radius:0;color:var(--accent);text-transform:uppercase}
html[data-theme="c"] #gatePage .story-title{font-family:var(--display);font-size:19.5px;line-height:24px;font-weight:700;text-wrap:balance}
html[data-theme="c"] #gatePage .thumb-strip{margin-top:-120px}
html[data-theme="c"] #gatePage .thumb-card{height:70px;border-color:#2a9d8f;border-radius:8px;background:var(--page)}
html[data-theme="c"] #gatePage .thumb-card:nth-child(even){transform:translateY(5px);border-radius:20px}
html[data-theme="c"] #gatePage .thumb-card.active{border-color:#2a9d8f}

/* Fixed CTA: safe-area aware and identical trigger semantics. */
.sticky-dock{min-height:calc(var(--dock-height) + constant(safe-area-inset-bottom));min-height:calc(var(--dock-height) + env(safe-area-inset-bottom));padding:12px 16px 8px;background:var(--surface);border-top:1px solid var(--line);box-shadow:none}
.primary-cta{min-height:var(--cta-height);padding:13px 18px;border-radius:18px;background:var(--accent);font-size:17px;line-height:22px;box-shadow:0 8px 18px -2px rgba(77,8,20,.22)}
html[data-theme="b"] .primary-cta{border-radius:999px}
.dock-note{min-height:28px;padding-top:7px;color:var(--muted);font-size:11px;line-height:15px;font-weight:650}

@media (max-height:700px){
  #gatePage .hero{height:404px;min-height:404px}
  #gatePage .story-card{margin-top:-26px}
  #gatePage>.privacy{top:624px}
  html[data-theme="a"] #gatePage .hero{height:404px;min-height:404px}
  html[data-theme="a"] #gatePage .story-card{margin-top:-26px}
  html[data-theme="b"] #gatePage .story-card{margin-top:-26px}
  html[data-theme="c"] #gatePage .story-card{margin-top:-26px}
}

@media (max-width:374px){
  :root{--dock-height:100px;--cta-height:52px}
  #gatePage .hero,html[data-theme="a"] #gatePage .hero{height:386px;min-height:386px}
  #gatePage .hero-badge{left:17px;top:21px;width:224px;min-height:29px;padding:6px 10px;font-size:9.5px;line-height:15px}
  #gatePage .hero-title{left:17px;top:70px;width:174px;font-size:23px;line-height:25px}
  #gatePage .hero-sub{left:17px;top:203px;width:164px;font-size:10.5px;line-height:14.5px}
  #gatePage .hero-count{left:17px;top:276px;min-width:108px;min-height:28px;padding:5px 9px;font-size:10.5px}
  #gatePage .hero-portrait{right:-8px;top:124px;width:121px;height:227px}
  #gatePage .portrait-head{width:58px;height:66px;right:31px;top:19px}
  #gatePage .portrait-body{width:135px;height:182px;right:-7px;bottom:-31px}
  #gatePage .story-card,html[data-theme="a"] #gatePage .story-card,html[data-theme="b"] #gatePage .story-card,html[data-theme="c"] #gatePage .story-card{height:260px;margin:-34px 12px 0;padding:15px 15px 96px;border-radius:24px}
  #gatePage .story-eyebrow{min-height:24px;padding:4px 11px;font-size:9.5px;line-height:15px}
  #gatePage .story-title{margin-top:10px;font-size:18px;line-height:22px}
  #gatePage .story-text{margin-top:6px;font-size:11px;line-height:15px}
  #gatePage .thumb-strip,html[data-theme="a"] #gatePage .thumb-strip,html[data-theme="b"] #gatePage .thumb-strip,html[data-theme="c"] #gatePage .thumb-strip{margin-top:-102px;padding:0 27px}
  #gatePage .thumb-track{gap:7px}
  #gatePage .thumb-card,html[data-theme="a"] #gatePage .thumb-card,html[data-theme="c"] #gatePage .thumb-card{height:60px}
  #gatePage>.privacy{top:572px;left:20px;width:calc(100% - 40px);font-size:10px}
  html[data-theme="a"] #gatePage .hero::before{inset:22px 17px auto}
  html[data-theme="a"] #gatePage .hero-badge{top:37px;width:215px}
  html[data-theme="a"] #gatePage .hero-title{top:72px;width:166px}
  html[data-theme="a"] #gatePage .hero-sub{top:225px;width:166px}
  html[data-theme="a"] #gatePage .hero-count{top:290px}
  html[data-theme="a"] #gatePage .hero-portrait{right:8px;top:96px;width:111px;height:257px}
  html[data-theme="c"] #gatePage .hero-badge{top:22px;width:208px}
  html[data-theme="c"] #gatePage .hero-title{top:68px;width:calc(100% - 34px);font-size:22px;line-height:26px}
  html[data-theme="c"] #gatePage .hero-sub{top:162px;width:168px}
  html[data-theme="c"] #gatePage .hero-count{top:246px}
  html[data-theme="c"] #gatePage .hero-portrait{right:11px;top:150px;width:104px;height:232px}
  .sticky-dock{padding:10px 14px 7px}
  .primary-cta{font-size:15px;line-height:20px}
  .dock-note{min-height:24px;padding-top:4px;font-size:10px}
}

/* 2026-08-23 A editorial full-state implementation.
   Visual-only layer: existing copy, analytics, profile selection and Safari handoff stay intact. */
html[data-theme="a"].safari-view body{padding-bottom:0}
html[data-theme="a"] #safariDock,
html[data-theme="a"] #leadForm{display:none!important}

html[data-theme="a"] #safariPage:not([hidden]){display:block;min-height:100vh;background:var(--page)}
html[data-theme="a"] #safariPage .safari-hero{height:326px;min-height:326px;border-radius:0 0 28px 28px;background:var(--hero)}
html[data-theme="a"] #safariPage .safari-hero::before{inset:12px;height:auto;border:1px solid #d6b46b;border-radius:24px;background:none;opacity:1}
html[data-theme="a"] #safariPage .safari-hero::after{display:none}
html[data-theme="a"] #safariPage .hero-copy{position:absolute;inset:0;z-index:4;width:100%;height:100%;padding:0;display:block}
html[data-theme="a"] #safariPage .hero-badge{position:absolute;left:18px;top:26px;width:178px;height:36px;min-height:36px;padding:8px 12px;border:1px solid #d6b46b;border-radius:18px;background:rgba(107,20,46,.9);gap:7px;font-size:13px;line-height:18px;font-weight:800;white-space:nowrap}
html[data-theme="a"] #safariPage .badge-pin{flex:0 0 10px;width:10px;height:10px;background:#fff;box-shadow:none}
html[data-theme="a"] #safariPage .hero-title{position:absolute;left:18px;top:72px;width:196px;margin:0;font-family:var(--display);font-size:26px;line-height:28px;font-weight:700;letter-spacing:0;text-wrap:wrap}
html[data-theme="a"] #safariPage .hero-sub{position:absolute;left:18px;top:199px;width:201px;margin:0;font-size:14px;line-height:20px;color:#fffaf0}
html[data-theme="a"] #safariPage .hero-count{position:absolute;left:18px;top:262px;width:210px;min-height:40px;margin:0;padding:0;display:block;background:transparent;border:0;border-radius:0;font-size:13px;line-height:18px;font-weight:800;color:#fffaf0}
html[data-theme="a"] #safariPage .hero-count::before{content:"◷";display:inline-block;margin-right:7px;color:#d6b46b}

html[data-theme="a"] #safariPage .hero-portrait{position:absolute;z-index:3;left:auto;right:18px;top:68px;bottom:auto;width:141px;height:243px;overflow:hidden;border:1.5px solid #d6b46b;border-radius:71px 71px 0 0;background:rgba(122,23,56,.48);filter:none;color:var(--portrait-deep)}
html[data-theme="a"] #safariPage .portrait-halo,
html[data-theme="a"] #safariPage .portrait-neck{display:none}
html[data-theme="a"] #safariPage .portrait-head{width:67px;height:77px;right:37px;top:42px;border-radius:50%;background:var(--portrait-deep)}
html[data-theme="a"] #safariPage .portrait-head::after{display:none}
html[data-theme="a"] #safariPage .portrait-body{width:158px;height:190px;right:-9px;bottom:-52px;border-radius:50% 50% 0 0;background:var(--portrait-deep)}

html[data-theme="a"] #safariPage>.thumb-strip{z-index:6;margin-top:-9px;padding:0 14px;background:var(--page)}
html[data-theme="a"] #safariPage .thumb-track{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
html[data-theme="a"] #safariPage .thumb-card{height:72px;aspect-ratio:auto;border:1px solid #fff;border-radius:7px;background:#f5eee3;box-shadow:none;transform:none}
html[data-theme="a"] #safariPage .thumb-card::before{width:38%;left:31%;top:16%;opacity:.42;background:currentColor}
html[data-theme="a"] #safariPage .thumb-card::after{width:72%;height:46%;left:14%;bottom:-1%;border-radius:50% 50% 12% 12%;opacity:.42;background:currentColor}
html[data-theme="a"] #safariPage .thumb-card.active{border:2px solid var(--accent);outline:0;transform:none}

html[data-theme="a"] #safariPage .safari-stack{display:grid;gap:12px;padding:28px 14px 30px}
html[data-theme="a"] #safariPage .timer-card{position:relative;height:500px;padding:0;border:1px solid #d6b46b;border-radius:18px;background:#fff;box-shadow:0 6px 18px rgba(41,10,20,.08)}
html[data-theme="a"] #safariPage .timer-top{position:absolute;left:18px;right:18px;top:18px;height:28px;display:flex;align-items:center;justify-content:space-between;color:#7a1738}
html[data-theme="a"] #safariPage .timer-top span{height:28px;padding:5px 10px;border-radius:14px;background:var(--surface-soft);font-size:11px;line-height:18px;font-weight:800}
html[data-theme="a"] #safariPage .timer-card h2{position:absolute;left:18px;top:62px;width:294px;margin:0;font-family:var(--display);font-size:27px;line-height:30px;color:var(--text)}
html[data-theme="a"] #safariPage .timer-card>p{position:absolute;left:18px;top:160px;width:304px;margin:0;font-size:13px;line-height:19px;color:#4f332e}
html[data-theme="a"] #safariPage .timer-meta{position:absolute;left:18px;right:18px;top:218px;margin:0;display:flex;justify-content:space-between;font-size:12px;line-height:18px;font-weight:800;color:#7a1738}
html[data-theme="a"] #safariPage .progress-shell{position:absolute;left:18px;right:18px;top:246px;height:12px;margin:0;border-radius:6px;background:var(--surface-soft)}
html[data-theme="a"] #safariPage .progress-bar{height:12px;border-radius:6px;background:#d6b46b;transition:width 1s linear}
html[data-theme="a"] #safariPage .proof-list{position:absolute;left:18px;right:18px;top:278px;display:grid;gap:0;margin:0}
html[data-theme="a"] #safariPage .proof-list article{min-height:72px;padding:7px 0;display:flex;gap:12px;align-items:flex-start;border-bottom:1px solid rgba(214,180,107,.3);border-radius:0;background:transparent}
html[data-theme="a"] #safariPage .proof-list article:last-child{border-bottom:0}
html[data-theme="a"] #safariPage .proof-list b{display:grid;place-items:center;flex:0 0 42px;height:42px;border:1px solid #d6b46b;border-radius:50%;background:var(--page);font-family:var(--display);font-size:18px;color:#7a1738}
html[data-theme="a"] #safariPage .proof-list strong{font-size:13px;line-height:18px;color:#402121}
html[data-theme="a"] #safariPage .proof-list span{font-size:12px;line-height:17px;color:#4f332e;margin-top:2px}
html[data-theme="a"] #safariPage .timer-lock{display:none}
html[data-theme="a"] #safariPage .faq-card{padding:0 18px 14px;border:0;border-radius:0;background:transparent;box-shadow:none}
html[data-theme="a"] #safariPage .faq-card .block-title{margin:0 0 8px;font-family:var(--display);font-size:20px;line-height:24px;color:var(--text)}
html[data-theme="a"] #safariPage .faq-card article{margin-top:7px;padding:11px 14px;border:1px solid rgba(214,180,107,.55);border-radius:14px;background:#fff;box-shadow:0 4px 12px rgba(41,10,20,.05)}
html[data-theme="a"] #safariPage .faq-card strong{font-size:13px;line-height:18px;color:var(--text)}
html[data-theme="a"] #safariPage .faq-card span{font-size:11px;line-height:16px;color:#4f332e;margin-top:2px}
html[data-theme="a"] #safariPage>.privacy{padding:8px 24px 24px;font-size:11px;line-height:16px}

html[data-theme="a"] #safariPage.is-ready .safari-hero{height:302px;min-height:302px}
html[data-theme="a"] #safariPage.is-ready .safari-hero::before{height:280px}
html[data-theme="a"] #safariPage.is-ready .hero-badge{top:24px;height:34px;min-height:34px;padding-top:7px;padding-bottom:7px}
html[data-theme="a"] #safariPage.is-ready .hero-sub{top:194px}
html[data-theme="a"] #safariPage.is-ready .hero-count{top:246px}
html[data-theme="a"] #safariPage.is-ready .hero-count::before{content:"✓";color:#fff}
html[data-theme="a"] #safariPage.is-ready .hero-portrait{right:18px;top:46px;width:137px;height:239px}
html[data-theme="a"] #safariPage.is-ready>.thumb-strip{margin-top:-8px}
html[data-theme="a"] #safariPage.is-ready .thumb-card{height:68px}
html[data-theme="a"] #safariPage.is-ready .timer-card{height:356px}
html[data-theme="a"] #safariPage.is-ready .timer-top{top:16px}
html[data-theme="a"] #safariPage.is-ready .timer-card h2{top:58px;width:311px;font-size:22px;line-height:25px;letter-spacing:-.2px}
html[data-theme="a"] #safariPage.is-ready .timer-card>p{top:118px;font-size:12px;line-height:18px}
html[data-theme="a"] #safariPage.is-ready .timer-meta{top:164px}
html[data-theme="a"] #safariPage.is-ready .progress-shell{top:190px}
html[data-theme="a"] #safariPage.is-ready .proof-list{top:218px}
html[data-theme="a"] #safariPage.is-ready .proof-list article{min-height:42px;padding:2px 0;gap:12px;align-items:center}
html[data-theme="a"] #safariPage.is-ready .proof-list b{flex-basis:30px;height:30px;border:0;font-family:var(--body);font-size:0}
html[data-theme="a"] #safariPage.is-ready .proof-list b::before{content:"✓";font-size:14px;color:#7a1738}
html[data-theme="a"] #safariPage.is-ready .proof-list strong{font-size:11.5px;line-height:16px}
html[data-theme="a"] #safariPage.is-ready .proof-list span{display:none}

html[data-theme="a"] #safariGuide{background:rgba(20,4,9,.72)}
html[data-theme="a"] #safariGuide .sheet-inner{width:min(100%,430px);max-width:430px;height:min(740px,calc(100vh - 72px));max-height:none;padding:15px 26px 18px;overflow:auto;border-radius:30px 30px 0 0;background:var(--page);box-shadow:0 6px 18px rgba(41,10,20,.08)}
html[data-theme="a"] #safariGuide .sheet-handle{width:42px;height:4px;margin:0 auto 12px;border-radius:2px;background:#d6b46b}
html[data-theme="a"] #safariGuide h2{font-family:var(--display);font-size:28px;line-height:33px;color:var(--text)}
html[data-theme="a"] #safariGuide .guide-image{width:100%;height:215px;max-height:none;margin-top:12px;border:1px solid #d6b46b;border-radius:18px;background:#fff;object-fit:cover;object-position:center top}
html[data-theme="a"] #safariGuide>section>p#guideSub{margin-top:11px;font-size:14px;line-height:20px;color:#40302e}
html[data-theme="a"] #safariGuide .guide-steps{display:grid;gap:6px;margin-top:12px}
html[data-theme="a"] #safariGuide .guide-steps article{min-height:66px;padding:10px 12px;display:flex;gap:12px;align-items:center;border:1px solid #d6b46b;border-radius:14px;background:#fff;font-size:13px;line-height:19px;color:#382121}
html[data-theme="a"] #safariGuide .guide-steps b{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:50%;background:#d6b46b;font-family:var(--display);font-size:17px;color:#fff}
html[data-theme="a"] #safariGuide .guide-steps article span b{display:inline;flex:initial;width:auto;height:auto;border:0;border-radius:0;background:transparent;font-family:inherit;font-size:inherit;line-height:inherit;color:inherit}
html[data-theme="a"] #safariGuide .sheet-button{min-height:58px;margin-top:12px;padding:12px;border:2px solid #d6b46b;border-radius:13px;background:var(--hero);box-shadow:0 6px 18px rgba(41,10,20,.08);font-size:16px;line-height:22px}
html[data-theme="a"] #safariGuide .sheet-note{margin-top:10px;font-size:12px!important;line-height:17px;color:var(--muted)}

@media (max-width:374px){
  html[data-theme="a"] #safariPage .safari-hero{height:300px;min-height:300px}
  html[data-theme="a"] #safariPage .hero-badge{left:14px;top:20px;width:168px;height:34px;min-height:34px;font-size:12px}
  html[data-theme="a"] #safariPage .hero-title{left:14px;top:64px;width:174px;font-size:23px;line-height:25px}
  html[data-theme="a"] #safariPage .hero-sub{left:14px;top:172px;width:178px;font-size:12px;line-height:17px}
  html[data-theme="a"] #safariPage .hero-count{left:14px;top:236px;width:190px;font-size:11px;line-height:16px}
  html[data-theme="a"] #safariPage .hero-portrait{right:10px;top:58px;width:118px;height:226px}
  html[data-theme="a"] #safariPage>.thumb-strip{margin-top:-8px;padding:0 10px}
  html[data-theme="a"] #safariPage .thumb-track{gap:7px}
  html[data-theme="a"] #safariPage .thumb-card{height:62px}
  html[data-theme="a"] #safariPage .safari-stack{padding:22px 10px 24px}
  html[data-theme="a"] #safariPage .timer-card{height:490px}
  html[data-theme="a"] #safariPage.is-ready .safari-hero{height:286px;min-height:286px}
  html[data-theme="a"] #safariPage.is-ready .hero-sub{top:172px}
  html[data-theme="a"] #safariPage.is-ready .hero-count{top:226px}
  html[data-theme="a"] #safariPage.is-ready .hero-portrait{top:44px;height:224px}
  html[data-theme="a"] #safariPage.is-ready .thumb-card{height:60px}
  html[data-theme="a"] #safariGuide .sheet-inner{height:calc(100vh - 56px);padding-left:18px;padding-right:18px}
  html[data-theme="a"] #safariGuide h2{font-size:25px;line-height:29px}
  html[data-theme="a"] #safariGuide .guide-image{height:185px}
  html[data-theme="a"] #safariGuide .guide-steps article{min-height:60px;font-size:12px;line-height:17px}
}

/* A 版临时真人素材预览：置于全部主题规则之后，避免 background 简写重置裁切。 */
html[data-theme="a"] .hero-portrait.has-profile-image,
html[data-theme="a"] #gatePage .thumb-card.has-profile-image,
html[data-theme="a"] #safariPage .thumb-card.has-profile-image{
  background-position:center 22%!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
}
html[data-theme="a"] .hero-portrait.has-profile-image>span,
html[data-theme="a"] #gatePage .thumb-card.has-profile-image::before,
html[data-theme="a"] #gatePage .thumb-card.has-profile-image::after,
html[data-theme="a"] #safariPage .thumb-card.has-profile-image::before,
html[data-theme="a"] #safariPage .thumb-card.has-profile-image::after{
  display:none!important;
}

/* A 版 Hero：参考原版整图铺满，人物为主体，Hook 文案叠在底部渐变上。 */
html[data-theme="a"] #gatePage .hero{
  height:470px;
  min-height:470px;
  isolation:isolate;
  background:#2b0b16;
}
html[data-theme="a"] #gatePage .hero::before{
  z-index:5;
  inset:20px 20px auto;
  height:1px;
  background:rgba(214,180,107,.9);
}
html[data-theme="a"] #gatePage .hero::after{
  content:"";
  display:block;
  position:absolute;
  z-index:2;
  inset:auto 0 0;
  width:auto;
  height:36%;
  border-radius:0;
  background:linear-gradient(to top,rgba(35,7,16,.96) 0%,rgba(55,10,25,.74) 45%,rgba(55,10,25,.18) 82%,transparent 100%);
  opacity:1;
  pointer-events:none;
}
html[data-theme="a"] #gatePage .hero-portrait{
  z-index:1;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  border-radius:0;
  background-color:#2b0b16;
  background-position:center top!important;
}
html[data-theme="a"] #gatePage .hero-copy{z-index:4}
html[data-theme="a"] #gatePage .hero-badge{
  left:20px;
  top:34px;
  width:auto;
  max-width:calc(100% - 40px);
  border-radius:999px;
  background:rgba(53,9,23,.58);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
html[data-theme="a"] #gatePage .hero-title{
  left:20px;
  top:auto;
  bottom:136px;
  width:335px;
  max-width:calc(100% - 40px);
  font-size:30px;
  line-height:31px;
  color:#fff;
  text-shadow:0 2px 16px rgba(0,0,0,.55);
}
html[data-theme="a"] #gatePage .hero-sub{
  left:20px;
  top:auto;
  bottom:72px;
  width:320px;
  max-width:calc(100% - 40px);
  font-size:12px;
  line-height:17px;
  color:rgba(255,255,255,.9);
  text-shadow:0 1px 8px rgba(0,0,0,.72);
}
html[data-theme="a"] #gatePage .hero-count{
  left:20px;
  top:auto;
  bottom:22px;
  min-width:0;
  width:auto;
  border-radius:999px;
  background:rgba(53,9,23,.58);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}

/* Safari 状态页沿用同一张大图构图，避免人物重新缩回装饰位。 */
html[data-theme="a"] #safariPage .safari-hero,
html[data-theme="a"] #safariPage.is-ready .safari-hero{
  height:390px;
  min-height:390px;
  isolation:isolate;
  background:#2b0b16;
}
html[data-theme="a"] #safariPage .safari-hero::before,
html[data-theme="a"] #safariPage.is-ready .safari-hero::before{
  display:none;
}
html[data-theme="a"] #safariPage .safari-hero::after{
  content:"";
  display:block;
  position:absolute;
  z-index:2;
  inset:auto 0 0;
  width:auto;
  height:36%;
  border-radius:0;
  background:linear-gradient(to top,rgba(35,7,16,.96) 0%,rgba(55,10,25,.72) 48%,rgba(55,10,25,.12) 88%,transparent 100%);
  opacity:1;
}
html[data-theme="a"] #safariPage .hero-portrait,
html[data-theme="a"] #safariPage.is-ready .hero-portrait{
  z-index:1;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  border-radius:0;
  background-position:center top!important;
}
html[data-theme="a"] #safariPage .hero-copy{z-index:4}
html[data-theme="a"] #safariPage .hero-badge,
html[data-theme="a"] #safariPage.is-ready .hero-badge{
  left:18px;
  top:20px;
  width:auto;
  max-width:calc(100% - 36px);
  border-radius:999px;
  background:rgba(53,9,23,.58);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
html[data-theme="a"] #safariPage .hero-title{
  left:18px;
  top:auto;
  bottom:124px;
  width:335px;
  max-width:calc(100% - 36px);
  font-size:27px;
  line-height:29px;
  color:#fff;
  text-shadow:0 2px 16px rgba(0,0,0,.58);
}
html[data-theme="a"] #safariPage .hero-sub,
html[data-theme="a"] #safariPage.is-ready .hero-sub{
  left:18px;
  top:auto;
  bottom:66px;
  width:330px;
  max-width:calc(100% - 36px);
  font-size:12px;
  line-height:17px;
  color:rgba(255,255,255,.9);
  text-shadow:0 1px 8px rgba(0,0,0,.72);
}
html[data-theme="a"] #safariPage .hero-count,
html[data-theme="a"] #safariPage.is-ready .hero-count{
  left:18px;
  top:auto;
  bottom:22px;
  width:auto;
  min-height:28px;
  padding:5px 10px;
  border:1px solid rgba(214,180,107,.75);
  border-radius:999px;
  background:rgba(53,9,23,.58);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
html[data-theme="a"] #safariPage>.thumb-strip,
html[data-theme="a"] #safariPage.is-ready>.thumb-strip{margin-top:-14px}

/* Sheet 引导图完整显示：沿用原版自适应比例，不做固定高度裁切。 */
html[data-theme="a"] #safariGuide .guide-image{
  width:100%;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center!important;
}

@media (max-width:374px){
  html[data-theme="a"] #gatePage .hero{height:430px;min-height:430px}
  html[data-theme="a"] #gatePage .hero-title{left:17px;bottom:130px;width:286px;font-size:26px;line-height:28px}
  html[data-theme="a"] #gatePage .hero-sub{left:17px;bottom:67px;width:286px;font-size:11px;line-height:16px}
  html[data-theme="a"] #gatePage .hero-count{left:17px;bottom:19px}
  html[data-theme="a"] #safariPage .safari-hero,
  html[data-theme="a"] #safariPage.is-ready .safari-hero{height:360px;min-height:360px}
  html[data-theme="a"] #safariPage .hero-title{left:14px;bottom:118px;width:292px;font-size:24px;line-height:26px}
  html[data-theme="a"] #safariPage .hero-sub,
  html[data-theme="a"] #safariPage.is-ready .hero-sub{left:14px;bottom:62px;width:292px;font-size:11px;line-height:16px}
  html[data-theme="a"] #safariPage .hero-count,
  html[data-theme="a"] #safariPage.is-ready .hero-count{left:14px;bottom:18px}
}

/* ========================================================================== 
   V6 / A 版 Skill 优化层
   只增强视觉反馈、旧 iPhone 适配与 Sheet 可用性；不改变业务节点。
   ========================================================================== */
html[data-theme="a"] #gatePage .hero-portrait.has-profile-image,
html[data-theme="a"] #safariPage .hero-portrait.has-profile-image,
html[data-theme="a"] #gatePage .thumb-card.has-profile-image,
html[data-theme="a"] #safariPage .thumb-card.has-profile-image{
  background-position:var(--profile-position,50% 6%)!important;
}
html[data-theme="a"] .hero-portrait.has-profile-image{
  opacity:1;
  filter:brightness(.98) saturate(.94);
  transition:opacity .18s ease,filter .18s ease;
  will-change:opacity;
}
html[data-theme="a"] .hero-portrait.has-profile-image.is-switching{
  opacity:.62;
  filter:brightness(.92) saturate(.88);
}

html[data-theme="a"] #gatePage .thumb-card,
html[data-theme="a"] #safariPage .thumb-card{
  min-height:60px;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
html[data-theme="a"] #gatePage .thumb-card.active,
html[data-theme="a"] #safariPage .thumb-card.active{
  transform:translateY(-3px);
  border-color:#fff8eb;
  box-shadow:0 0 0 2px #7a1738,0 0 0 4px #d6b46b,0 8px 18px rgba(41,10,20,.16);
}
html[data-theme="a"] #gatePage .thumb-card.has-profile-image.active::after,
html[data-theme="a"] #safariPage .thumb-card.has-profile-image.active::after{
  content:"";
  display:block!important;
  position:absolute;
  right:4px;
  bottom:4px;
  left:auto;
  width:10px;
  height:10px;
  border:2px solid #fffaf0;
  border-radius:50%;
  background:#d6b46b;
  opacity:1;
}
html[data-theme="a"] .thumb-card:focus-visible,
html[data-theme="a"] .primary-cta:focus-visible,
html[data-theme="a"] .sheet-button:focus-visible{
  outline:3px solid #fffaf0;
  outline-offset:3px;
}

html[data-theme="a"] #gateDock{
  padding:11px 14px 7px;
  padding-bottom:calc(7px + env(safe-area-inset-bottom));
  background:linear-gradient(to top,#fffaf0 72%,rgba(255,250,240,.96));
  border-color:rgba(214,180,107,.72);
  box-shadow:0 -12px 28px rgba(41,10,20,.12);
}
html[data-theme="a"] #gateDock .primary-cta{
  min-height:56px;
  border:1px solid rgba(255,255,255,.24);
  box-shadow:0 10px 22px rgba(77,8,20,.25),inset 0 1px 0 rgba(255,255,255,.18);
}

html[data-theme="a"] #safariGuide .sheet-inner{
  overscroll-behavior:contain;
  scroll-padding-bottom:88px;
  padding-bottom:calc(18px + env(safe-area-inset-bottom));
}
html[data-theme="a"] #safariGuide .sheet-inner:focus{outline:none}
html[data-theme="a"] #safariGuide .guide-image{
  display:block;
  aspect-ratio:auto;
  box-shadow:0 8px 22px rgba(41,10,20,.08);
}
html[data-theme="a"] #safariGuide .sheet-button{
  position:sticky;
  z-index:3;
  bottom:-1px;
  margin-left:-6px;
  margin-right:-6px;
  width:calc(100% + 12px);
  box-shadow:0 -10px 18px var(--page),0 8px 18px rgba(41,10,20,.16);
}

html[data-theme="a"] #gatePage .story-card,
html[data-theme="a"] #gatePage .mini-stats,
html[data-theme="a"] #gatePage .trust-card,
html[data-theme="a"] #safariPage .timer-card,
html[data-theme="a"] #safariPage .faq-card{
  content-visibility:auto;
  contain-intrinsic-size:auto 240px;
}

@media (max-height:700px){
  html[data-theme="a"] #gatePage .hero{height:420px;min-height:420px}
  html[data-theme="a"] #safariPage .safari-hero,
  html[data-theme="a"] #safariPage.is-ready .safari-hero{height:350px;min-height:350px}
  html[data-theme="a"] #safariGuide .sheet-inner{height:calc(100dvh - 24px);padding-top:10px}
  html[data-theme="a"] #safariGuide .sheet-handle{margin-bottom:8px}
  html[data-theme="a"] #safariGuide h2{font-size:24px;line-height:27px}
}
@media (max-width:374px) and (max-height:640px){
  html[data-theme="a"] #gatePage .hero{height:390px;min-height:390px}
  html[data-theme="a"] #gatePage .hero-title{bottom:122px;font-size:24px;line-height:26px}
  html[data-theme="a"] #gatePage .hero-sub{bottom:62px}
  html[data-theme="a"] #gatePage .hero-count{bottom:16px}
  html[data-theme="a"] #safariPage .safari-hero,
  html[data-theme="a"] #safariPage.is-ready .safari-hero{height:330px;min-height:330px}
  html[data-theme="a"] #safariPage .hero-title{bottom:110px;font-size:22px;line-height:24px}
  html[data-theme="a"] #safariPage .hero-sub,
  html[data-theme="a"] #safariPage.is-ready .hero-sub{bottom:56px}
  html[data-theme="a"] #safariPage .hero-count,
  html[data-theme="a"] #safariPage.is-ready .hero-count{bottom:14px}
}

@media (prefers-reduced-motion:reduce){
  html[data-theme="a"] .hero-portrait.has-profile-image,
  html[data-theme="a"] #gatePage .thumb-card,
  html[data-theme="a"] #safariPage .thumb-card,
  html[data-theme="a"] #safariPage .progress-bar{
    transition:none!important;
  }
}

/* V6 B — Istanbul native iOS, complete Gate / Guide / Safari states. */
html[data-theme="b"] .hero-portrait.has-profile-image,
html[data-theme="b"] #gatePage .thumb-card.has-profile-image,
html[data-theme="b"] #safariPage .thumb-card.has-profile-image{
  background-position:var(--profile-position,50% 7%)!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
}
html[data-theme="b"] .hero-portrait.has-profile-image>span,
html[data-theme="b"] #gatePage .thumb-card.has-profile-image::before,
html[data-theme="b"] #gatePage .thumb-card.has-profile-image::after,
html[data-theme="b"] #safariPage .thumb-card.has-profile-image::before,
html[data-theme="b"] #safariPage .thumb-card.has-profile-image::after{
  display:none!important;
}
html[data-theme="b"] .hero-portrait.has-profile-image{
  transition:opacity .18s ease,transform .18s ease;
}
html[data-theme="b"] .hero-portrait.has-profile-image.is-switching{
  opacity:.72;
  transform:scale(1.018);
}

html[data-theme="b"] #gatePage .hero{
  height:486px;
  min-height:486px;
  isolation:isolate;
  border-radius:0 0 34px 34px;
  background:#0f3f99;
  box-shadow:0 16px 34px rgba(15,63,153,.2);
}
html[data-theme="b"] #gatePage .hero::before{
  z-index:2;
  inset:auto 0 0;
  width:auto;
  height:130px;
  border:0;
  border-radius:0;
  background:linear-gradient(to bottom,rgba(20,86,200,0) 0%,rgba(20,86,200,.84) 26%,#1456c8 58%,#0f4cae 100%);
  opacity:1;
}
html[data-theme="b"] #gatePage .hero::after{
  z-index:3;
  top:auto;
  right:-82px;
  bottom:-92px;
  width:230px;
  height:230px;
  border-radius:50%;
  background:rgba(255,255,255,.07);
  opacity:1;
}
html[data-theme="b"] #gatePage .hero-portrait{
  z-index:1;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  border-radius:0;
  background-color:#9cc0f4;
  filter:saturate(.96) contrast(1.03);
}
html[data-theme="b"] #gatePage .hero-copy{
  position:absolute;
  z-index:4;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  display:block;
}
html[data-theme="b"] #gatePage .hero-badge{
  position:absolute;
  left:18px;
  top:20px;
  max-width:calc(100% - 36px);
  min-height:36px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.42);
  border-radius:18px;
  background:rgba(15,63,153,.64);
  box-shadow:0 6px 16px rgba(4,24,69,.16);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  font-size:11px;
  line-height:18px;
  color:#fff;
}
html[data-theme="b"] #gatePage .badge-pin{
  background:#fff;
  box-shadow:0 0 0 4px rgba(255,255,255,.18);
}
html[data-theme="b"] #gatePage .hero-title{
  position:absolute;
  left:20px;
  right:20px;
  top:auto;
  bottom:129px;
  width:auto;
  margin:0;
  font-family:var(--body);
  font-size:29px;
  line-height:31px;
  letter-spacing:-.85px;
  font-weight:860;
  color:#fff;
  text-wrap:balance;
  text-shadow:0 2px 12px rgba(4,24,69,.62);
}
html[data-theme="b"] #gatePage .hero-sub{
  position:absolute;
  left:20px;
  right:30px;
  top:auto;
  bottom:68px;
  width:auto;
  margin:0;
  font-size:12px;
  line-height:17px;
  color:rgba(255,255,255,.88);
  text-shadow:0 1px 8px rgba(4,24,69,.68);
}
html[data-theme="b"] #gatePage .hero-count{
  position:absolute;
  left:20px;
  top:auto;
  bottom:30px;
  min-height:30px;
  margin:0;
  padding:6px 11px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:15px;
  background:rgba(5,38,102,.28);
  font-size:11px;
  line-height:16px;
  color:#fff;
}
html[data-theme="b"] #gatePage .hero-count .count-icon{color:#ff5b61}

html[data-theme="b"] #gatePage .story-card{
  height:280px;
  margin:-29px 13px 0;
  padding:21px 19px 106px;
  display:block;
  border:1px solid rgba(169,204,255,.86);
  border-radius:28px;
  background:rgba(255,255,255,.98);
  box-shadow:0 16px 32px rgba(23,43,84,.13);
}
html[data-theme="b"] #gatePage .story-mark{
  float:right;
  width:42px;
  height:42px;
  margin:0 0 8px 12px;
  border-radius:13px;
  background:#eaf2ff;
  color:#1456c8;
  font-size:20px;
}
html[data-theme="b"] #gatePage .story-eyebrow{
  display:inline-flex;
  min-height:26px;
  align-items:center;
  padding:5px 10px;
  border-radius:13px;
  background:#eaf2ff;
  color:#1456c8;
  font-size:10px;
  line-height:16px;
  font-weight:820;
}
html[data-theme="b"] #gatePage .story-title{
  max-width:280px;
  margin-top:10px;
  font-family:var(--body);
  font-size:21px;
  line-height:24px;
  letter-spacing:-.45px;
}
html[data-theme="b"] #gatePage .story-text{
  max-width:300px;
  margin-top:7px;
  font-size:12px;
  line-height:17px;
}
html[data-theme="b"] #gatePage .thumb-strip{
  z-index:8;
  margin-top:-112px;
  padding:0 29px;
}
html[data-theme="b"] #gatePage .thumb-track,
html[data-theme="b"] #safariPage .thumb-track{
  gap:8px;
}
html[data-theme="b"] #gatePage .thumb-card,
html[data-theme="b"] #safariPage .thumb-card{
  height:72px;
  aspect-ratio:auto;
  border:2px solid #fff;
  border-radius:16px;
  background-color:#d8e8ff;
  box-shadow:0 7px 16px rgba(17,55,118,.16);
  transform:none;
  transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
html[data-theme="b"] #gatePage .thumb-card.active,
html[data-theme="b"] #safariPage .thumb-card.active{
  border-color:#ed1c24;
  outline:0;
  transform:translateY(-4px);
  box-shadow:0 9px 18px rgba(237,28,36,.18);
}
html[data-theme="b"] #gatePage .thumb-card.active::after,
html[data-theme="b"] #safariPage .thumb-card.active::after{
  content:"";
  display:block!important;
  position:absolute;
  right:4px;
  bottom:4px;
  left:auto;
  width:10px;
  height:10px;
  border:2px solid #fff;
  border-radius:50%;
  background:#ed1c24;
  opacity:1;
}
html[data-theme="b"] #gatePage .mini-stats,
html[data-theme="b"] #gatePage .trust-card{
  border-color:rgba(169,204,255,.68);
  box-shadow:0 8px 22px rgba(23,43,84,.09);
}
html[data-theme="b"] #gatePage>.privacy{
  position:static;
  order:6;
  width:auto;
  padding:18px 16px 12px;
  text-align:center;
}
html[data-theme="b"] #gatePage .stat-icon,
html[data-theme="b"] #gatePage .trust-item>span{background:#eaf2ff;color:#1456c8}
html[data-theme="b"] #gatePage .block-title{font-family:var(--body)}
html[data-theme="b"] #gateDock{
  padding:11px 14px 7px;
  padding-bottom:calc(7px + env(safe-area-inset-bottom));
  border-color:rgba(169,204,255,.74);
  background:rgba(255,255,255,.97);
  box-shadow:0 -12px 28px rgba(15,63,153,.13);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
}
html[data-theme="b"] #gateDock .primary-cta{
  min-height:56px;
  background:#ed1c24;
  box-shadow:0 10px 22px rgba(237,28,36,.24),inset 0 1px 0 rgba(255,255,255,.2);
}

html[data-theme="b"].safari-view body{
  padding-bottom:0;
  background:#f4f7ff;
}
html[data-theme="b"] #safariDock,
html[data-theme="b"] #leadForm{
  display:none!important;
}
html[data-theme="b"] #safariPage .safari-hero,
html[data-theme="b"] #safariPage.is-ready .safari-hero{
  height:390px;
  min-height:390px;
  isolation:isolate;
  border-radius:0 0 34px 34px;
  background:#0f3f99;
}
html[data-theme="b"] #safariPage .safari-hero::before{
  z-index:2;
  inset:auto 0 0;
  width:auto;
  height:109px;
  border:0;
  border-radius:0;
  background:linear-gradient(to bottom,rgba(20,86,200,0),rgba(20,86,200,.9) 34%,#0f4cae 100%);
  opacity:1;
}
html[data-theme="b"] #safariPage .safari-hero::after{
  z-index:3;
  top:auto;
  right:-70px;
  bottom:-95px;
  width:210px;
  height:210px;
  border-radius:50%;
  background:rgba(255,255,255,.07);
  opacity:1;
}
html[data-theme="b"] #safariPage .hero-portrait{
  z-index:1;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  border-radius:0;
  background-color:#9cc0f4;
  filter:saturate(.96) contrast(1.03);
}
html[data-theme="b"] #safariPage .hero-copy{
  position:absolute;
  z-index:4;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  display:block;
}
html[data-theme="b"] #safariPage .hero-badge{
  position:absolute;
  left:18px;
  top:20px;
  max-width:calc(100% - 36px);
  min-height:36px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.42);
  border-radius:18px;
  background:rgba(15,63,153,.64);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  font-size:11px;
  line-height:18px;
}
html[data-theme="b"] #safariPage .hero-title{
  position:absolute;
  left:20px;
  right:20px;
  top:auto;
  bottom:114px;
  width:auto;
  margin:0;
  font-family:var(--body);
  font-size:27px;
  line-height:29px;
  letter-spacing:-.75px;
  color:#fff;
  text-shadow:0 2px 12px rgba(4,24,69,.62);
}
html[data-theme="b"] #safariPage .hero-sub{
  position:absolute;
  left:20px;
  right:30px;
  top:auto;
  bottom:60px;
  width:auto;
  margin:0;
  font-size:12px;
  line-height:17px;
  color:rgba(255,255,255,.88);
  text-shadow:0 1px 8px rgba(4,24,69,.68);
}
html[data-theme="b"] #safariPage .hero-count{
  position:absolute;
  left:20px;
  top:auto;
  bottom:16px;
  min-height:30px;
  margin:0;
  padding:6px 11px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:15px;
  background:rgba(5,38,102,.28);
  font-size:11px;
  line-height:16px;
  color:#fff;
}
html[data-theme="b"] #safariPage>.thumb-strip{
  z-index:7;
  margin-top:-10px;
  padding:0 14px;
}
html[data-theme="b"] #safariPage .thumb-card{height:68px}
html[data-theme="b"] #safariPage .safari-stack{
  display:grid;
  gap:12px;
  padding:26px 14px 30px;
}
html[data-theme="b"] #safariPage .timer-card{
  padding:20px;
  border:1px solid rgba(169,204,255,.8);
  border-radius:26px;
  background:#fff;
  box-shadow:0 13px 28px rgba(23,43,84,.11);
}
html[data-theme="b"] #safariPage .timer-top span{
  background:#eaf2ff;
  color:#1456c8;
}
html[data-theme="b"] #safariPage .timer-card h2,
html[data-theme="b"] #safariPage .faq-card .block-title{font-family:var(--body)}
html[data-theme="b"] #safariPage .progress-shell{height:10px;background:#eaf2ff}
html[data-theme="b"] #safariPage .progress-bar{background:linear-gradient(90deg,#1456c8,#4e8cf0)}
html[data-theme="b"] #safariPage .proof-list article{background:#f4f7ff;border:1px solid rgba(169,204,255,.48)}
html[data-theme="b"] #safariPage .proof-list b{background:#1456c8;border-radius:10px}
html[data-theme="b"] #safariPage .timer-lock{background:#0f3f99}
html[data-theme="b"] #safariPage .faq-card{
  border-color:rgba(169,204,255,.72);
  border-radius:24px;
  box-shadow:0 8px 22px rgba(23,43,84,.08);
}
html[data-theme="b"] #safariPage.is-ready .hero-count::before{
  content:"✓";
  display:grid;
  place-items:center;
  width:17px;
  height:17px;
  border-radius:50%;
  background:#fff;
  color:#1456c8;
  font-size:10px;
}
html[data-theme="b"] #safariPage.is-ready .timer-lock{background:#0f6f46}

html[data-theme="b"] #safariGuide{background:rgba(5,22,54,.72)}
html[data-theme="b"] #safariGuide .sheet-inner{
  width:min(100%,430px);
  max-width:430px;
  height:min(742px,calc(100dvh - 44px));
  max-height:none;
  padding:13px 18px calc(18px + env(safe-area-inset-bottom));
  overflow:auto;
  overscroll-behavior:contain;
  scroll-padding-bottom:92px;
  border-radius:30px 30px 0 0;
  background:#f4f7ff;
  box-shadow:0 -10px 36px rgba(4,24,69,.22);
}
html[data-theme="b"] #safariGuide .sheet-inner:focus{outline:none}
html[data-theme="b"] #safariGuide .sheet-handle{margin-bottom:12px;background:#a9ccff}
html[data-theme="b"] #safariGuide h2{
  font-family:var(--body);
  font-size:26px;
  line-height:30px;
  letter-spacing:-.55px;
  color:#14213d;
}
html[data-theme="b"] #safariGuide .guide-image{
  display:block;
  width:100%;
  height:auto!important;
  max-height:none!important;
  margin-top:12px;
  border:1px solid rgba(169,204,255,.86);
  border-radius:18px;
  background:#fff;
  object-fit:contain!important;
  box-shadow:0 10px 22px rgba(23,43,84,.09);
}
html[data-theme="b"] #safariGuide>section>p#guideSub{margin-top:11px;font-size:13px;line-height:19px}
html[data-theme="b"] #safariGuide .guide-steps{display:grid;gap:7px;margin-top:12px}
html[data-theme="b"] #safariGuide .guide-steps article{
  min-height:58px;
  padding:9px 11px;
  display:flex;
  gap:11px;
  align-items:center;
  border:1px solid rgba(169,204,255,.68);
  border-radius:16px;
  background:#fff;
  font-size:12px;
  line-height:17px;
  color:#324260;
}
html[data-theme="b"] #safariGuide .guide-steps article>b{
  display:grid;
  place-items:center;
  flex:0 0 34px;
  height:34px;
  border-radius:11px;
  background:#1456c8;
  color:#fff;
  font-size:14px;
}
html[data-theme="b"] #safariGuide .guide-steps article span b{
  display:inline;
  flex:initial;
  width:auto;
  height:auto;
  border:0;
  border-radius:0;
  background:transparent;
  color:inherit;
  font:inherit;
}
html[data-theme="b"] #safariGuide .sheet-button{
  position:sticky;
  z-index:3;
  bottom:-1px;
  width:calc(100% + 12px);
  min-height:56px;
  margin:12px -6px 0;
  border-radius:18px;
  background:#ed1c24;
  box-shadow:0 -10px 18px #f4f7ff,0 10px 22px rgba(237,28,36,.2);
  font-size:16px;
}
html[data-theme="b"] #safariGuide .sheet-note{margin-top:10px;font-size:11px!important;line-height:16px}

html[data-theme="b"] #gatePage .story-card,
html[data-theme="b"] #gatePage .mini-stats,
html[data-theme="b"] #gatePage .trust-card,
html[data-theme="b"] #safariPage .timer-card,
html[data-theme="b"] #safariPage .faq-card{
  content-visibility:auto;
  contain-intrinsic-size:auto 240px;
}
html[data-theme="b"] .thumb-card:focus-visible,
html[data-theme="b"] .primary-cta:focus-visible,
html[data-theme="b"] .sheet-button:focus-visible{
  outline:3px solid #a9ccff;
  outline-offset:3px;
}

@media (max-height:700px){
  html[data-theme="b"] #gatePage .hero{height:430px;min-height:430px}
  html[data-theme="b"] #gatePage .hero-title{bottom:116px;font-size:26px;line-height:28px}
  html[data-theme="b"] #gatePage .hero-sub{bottom:61px}
  html[data-theme="b"] #gatePage .hero-count{bottom:27px}
  html[data-theme="b"] #safariPage .safari-hero,
  html[data-theme="b"] #safariPage.is-ready .safari-hero{height:346px;min-height:346px}
  html[data-theme="b"] #safariPage .hero-title{bottom:105px;font-size:24px;line-height:26px}
  html[data-theme="b"] #safariPage .hero-sub{bottom:54px}
  html[data-theme="b"] #safariPage .hero-count{bottom:12px}
  html[data-theme="b"] #safariGuide .sheet-inner{height:calc(100dvh - 20px);padding-top:9px}
  html[data-theme="b"] #safariGuide h2{font-size:23px;line-height:27px}
}
@media (max-width:374px){
  html[data-theme="b"] #gatePage .hero{height:438px;min-height:438px}
  html[data-theme="b"] #gatePage .hero-badge{left:14px;top:16px;max-width:calc(100% - 28px)}
  html[data-theme="b"] #gatePage .hero-title{left:16px;right:16px;bottom:119px;font-size:25px;line-height:27px;letter-spacing:-.6px}
  html[data-theme="b"] #gatePage .hero-sub{left:16px;right:18px;bottom:61px;font-size:11px;line-height:16px}
  html[data-theme="b"] #gatePage .hero-count{left:16px;bottom:27px}
  html[data-theme="b"] #gatePage .story-card{height:270px;margin-top:-27px;padding:17px 15px 98px}
  html[data-theme="b"] #gatePage .story-title{font-size:19px;line-height:22px}
  html[data-theme="b"] #gatePage .story-text{font-size:11px;line-height:16px}
  html[data-theme="b"] #gatePage .thumb-strip{margin-top:-102px;padding:0 19px}
  html[data-theme="b"] #gatePage .thumb-track,
  html[data-theme="b"] #safariPage .thumb-track{gap:6px}
  html[data-theme="b"] #gatePage .thumb-card{height:65px;border-radius:14px}
  html[data-theme="b"] #safariPage .safari-hero,
  html[data-theme="b"] #safariPage.is-ready .safari-hero{height:352px;min-height:352px}
  html[data-theme="b"] #safariPage .hero-title{left:16px;right:16px;bottom:105px;font-size:23px;line-height:25px}
  html[data-theme="b"] #safariPage .hero-sub{left:16px;right:18px;bottom:53px;font-size:11px;line-height:16px}
  html[data-theme="b"] #safariPage .hero-count{left:16px;bottom:11px}
  html[data-theme="b"] #safariPage>.thumb-strip{padding:0 9px}
  html[data-theme="b"] #safariPage .thumb-card{height:61px;border-radius:13px}
  html[data-theme="b"] #safariPage .safari-stack{padding:22px 9px 25px}
  html[data-theme="b"] #safariPage .timer-card{padding:15px}
  html[data-theme="b"] #safariGuide .sheet-inner{padding-left:14px;padding-right:14px}
  html[data-theme="b"] #safariGuide h2{font-size:23px;line-height:27px}
  html[data-theme="b"] #safariGuide .guide-steps article{font-size:11px;line-height:16px}
}
@media (max-width:374px) and (max-height:640px){
  html[data-theme="b"] #gatePage .hero{height:394px;min-height:394px}
  html[data-theme="b"] #gatePage .hero-title{bottom:108px;font-size:23px;line-height:25px}
  html[data-theme="b"] #gatePage .hero-sub{bottom:55px}
  html[data-theme="b"] #gatePage .hero-count{bottom:29px}
  html[data-theme="b"] #safariPage .safari-hero,
  html[data-theme="b"] #safariPage.is-ready .safari-hero{height:322px;min-height:322px}
  html[data-theme="b"] #safariPage .hero-title{bottom:96px;font-size:21px;line-height:23px}
  html[data-theme="b"] #safariPage .hero-sub{bottom:47px}
  html[data-theme="b"] #safariPage .hero-count{bottom:8px}
  html[data-theme="b"] #safariGuide .guide-image{margin-top:9px}
  html[data-theme="b"] #safariGuide .guide-steps{gap:5px;margin-top:9px}
  html[data-theme="b"] #safariGuide .guide-steps article{min-height:52px;padding:7px 9px}
}
@media (prefers-reduced-motion:reduce){
  html[data-theme="b"] .hero-portrait.has-profile-image,
  html[data-theme="b"] #gatePage .thumb-card,
  html[data-theme="b"] #safariPage .thumb-card,
  html[data-theme="b"] #safariPage .progress-bar{
    transition:none!important;
  }
}

/* V6 C — Aegean arch lifestyle, complete Gate / Guide / Safari states. */
html[data-theme="c"]{
  --page:#fff8e9;
  --surface:#fffdf7;
  --surface-soft:#f4ead5;
  --text:#153f3b;
  --muted:#74675d;
  --brand:#0f5c55;
  --brand-strong:#0a403b;
  --accent:#c8663f;
  --line:rgba(15,92,85,.34);
  --hero:#fff8e9;
  --hero-text:#153f3b;
  --shadow:0 10px 24px rgba(52,72,60,.09);
}
html[data-theme="c"] body{
  background:#fff8e9;
  background-image:radial-gradient(rgba(15,92,85,.055) .7px,transparent .7px);
  background-size:7px 7px;
}
html[data-theme="c"] .hero-portrait.has-profile-image,
html[data-theme="c"] #gatePage .thumb-card.has-profile-image,
html[data-theme="c"] #safariPage .thumb-card.has-profile-image{
  background-position:var(--profile-position,50% 7%)!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
}
html[data-theme="c"] .hero-portrait.has-profile-image>span,
html[data-theme="c"] #gatePage .thumb-card.has-profile-image::before,
html[data-theme="c"] #gatePage .thumb-card.has-profile-image::after,
html[data-theme="c"] #safariPage .thumb-card.has-profile-image::before,
html[data-theme="c"] #safariPage .thumb-card.has-profile-image::after{
  display:none!important;
}
html[data-theme="c"] .hero-portrait.has-profile-image{
  transition:opacity .2s ease,transform .2s ease;
}
html[data-theme="c"] .hero-portrait.has-profile-image.is-switching{
  opacity:.7;
  transform:translateY(3px) scale(1.012);
}

html[data-theme="c"] #gatePage .hero{
  height:480px;
  min-height:480px;
  isolation:isolate;
  overflow:hidden;
  border-radius:0;
  background:#fff8e9;
  color:#153f3b;
}
html[data-theme="c"] #gatePage .hero::before{
  z-index:5;
  inset:0 0 auto;
  width:auto;
  height:9px;
  border:0;
  border-radius:0;
  background:repeating-linear-gradient(90deg,#0f5c55 0 30px,transparent 30px 37px,#c8663f 37px 62px,transparent 62px 80px);
  opacity:.82;
}
html[data-theme="c"] #gatePage .hero::after{
  z-index:1;
  top:207px;
  right:-2px;
  bottom:auto;
  width:119px;
  height:119px;
  border-radius:50%;
  background:#c8663f;
  opacity:.9;
}
html[data-theme="c"] #gatePage .hero-copy{
  position:absolute;
  z-index:4;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  display:block;
}
html[data-theme="c"] #gatePage .hero-badge{
  position:absolute;
  left:20px;
  top:29px;
  width:auto;
  max-width:calc(100% - 40px);
  min-height:34px;
  padding:7px 11px;
  border:1px solid #0f5c55;
  border-radius:7px;
  background:rgba(255,253,247,.88);
  color:#0f5c55;
  font-size:10.5px;
  line-height:18px;
  box-shadow:3px 3px 0 rgba(15,92,85,.09);
}
html[data-theme="c"] #gatePage .badge-pin{
  background:#c8663f;
  box-shadow:none;
}
html[data-theme="c"] #gatePage .hero-title{
  position:absolute;
  left:20px;
  top:82px;
  right:20px;
  width:auto;
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:28px;
  line-height:30px;
  letter-spacing:-.5px;
  font-weight:700;
  color:#153f3b;
  text-wrap:balance;
}
html[data-theme="c"] #gatePage .hero-sub{
  position:absolute;
  left:20px;
  top:220px;
  width:142px;
  margin:0;
  font-size:11.5px;
  line-height:17px;
  color:#74675d;
}
html[data-theme="c"] #gatePage .hero-count{
  position:absolute;
  left:20px;
  top:auto;
  bottom:48px;
  min-width:126px;
  min-height:32px;
  margin:0;
  padding:7px 11px;
  border:1px solid #0f5c55;
  border-radius:17px;
  background:rgba(255,253,247,.9);
  color:#153f3b;
  font-size:11px;
  line-height:16px;
  box-shadow:3px 3px 0 rgba(15,92,85,.09);
}
html[data-theme="c"] #gatePage .count-icon{color:#c8663f}
html[data-theme="c"] #gatePage .hero-portrait{
  z-index:3;
  left:auto;
  right:12px;
  top:178px;
  bottom:auto;
  width:210px;
  height:292px;
  overflow:hidden;
  border:2px solid #0f5c55;
  border-radius:106px 106px 18px 18px;
  background-color:#88b5aa;
  box-shadow:0 13px 24px rgba(15,92,85,.16);
  filter:saturate(.9) contrast(1.02);
}

html[data-theme="c"] #gatePage .story-card{
  height:292px;
  margin:-32px 14px 0;
  padding:20px 18px 108px;
  border:1px solid #0f5c55;
  border-radius:30px 8px 30px 8px;
  background:#f4ead5;
  box-shadow:0 10px 24px rgba(52,72,60,.09);
}
html[data-theme="c"] #gatePage .story-card::before{
  content:"";
  position:absolute;
  left:18px;
  top:18px;
  width:34px;
  height:4px;
  border-radius:2px;
  background:#c8663f;
  opacity:1;
}
html[data-theme="c"] #gatePage .story-eyebrow{
  display:block;
  min-height:0;
  margin-top:15px;
  padding:0;
  border-radius:0;
  background:transparent;
  color:#c8663f;
  font-size:10px;
  line-height:16px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.25px;
}
html[data-theme="c"] #gatePage .story-title{
  max-width:290px;
  margin-top:8px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:21px;
  line-height:24px;
  letter-spacing:-.3px;
  color:#153f3b;
}
html[data-theme="c"] #gatePage .story-text{
  max-width:305px;
  margin-top:7px;
  font-size:12px;
  line-height:17px;
  color:#74675d;
}
html[data-theme="c"] #gatePage .thumb-strip{
  z-index:9;
  margin-top:-116px;
  padding:0 28px;
}
html[data-theme="c"] #gatePage .thumb-track,
html[data-theme="c"] #safariPage .thumb-track{gap:8px}
html[data-theme="c"] #gatePage .thumb-card,
html[data-theme="c"] #safariPage .thumb-card{
  height:72px;
  aspect-ratio:auto;
  border:2px solid #0f5c55;
  border-radius:18px 18px 7px 7px;
  background-color:#f4ead5;
  box-shadow:3px 4px 0 rgba(15,92,85,.1);
  transform:none;
  transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
html[data-theme="c"] #gatePage .thumb-card:nth-child(even),
html[data-theme="c"] #safariPage .thumb-card:nth-child(even){
  border-radius:7px 7px 18px 18px;
  transform:translateY(5px);
}
html[data-theme="c"] #gatePage .thumb-card.active,
html[data-theme="c"] #safariPage .thumb-card.active{
  border-color:#c8663f;
  outline:2px solid #fff8e9;
  outline-offset:-5px;
  box-shadow:3px 5px 0 rgba(200,102,63,.18);
}
html[data-theme="c"] #gatePage .thumb-card.active::after,
html[data-theme="c"] #safariPage .thumb-card.active::after{
  content:"";
  display:block!important;
  position:absolute;
  right:4px;
  bottom:4px;
  left:auto;
  width:10px;
  height:10px;
  border:2px solid #fff8e9;
  border-radius:50%;
  background:#c8663f;
  opacity:1;
}
html[data-theme="c"] #gatePage .mini-stats,
html[data-theme="c"] #gatePage .trust-card{
  border-color:rgba(15,92,85,.42);
  background:#fffdf7;
  box-shadow:0 8px 20px rgba(52,72,60,.07);
}
html[data-theme="c"] #gatePage .stat-icon,
html[data-theme="c"] #gatePage .trust-item>span{
  border:1px solid rgba(15,92,85,.3);
  border-radius:50%;
  background:#f4ead5;
  color:#0f5c55;
}
html[data-theme="c"] #gatePage>.privacy{
  position:static;
  order:6;
  width:auto;
  padding:18px 16px 12px;
  text-align:center;
}
html[data-theme="c"] #gateDock{
  padding:11px 14px 7px;
  padding-bottom:calc(7px + env(safe-area-inset-bottom));
  border-color:rgba(15,92,85,.42);
  background:rgba(255,248,233,.97);
  box-shadow:0 -12px 28px rgba(52,72,60,.12);
  -webkit-backdrop-filter:blur(15px);
  backdrop-filter:blur(15px);
}
html[data-theme="c"] #gateDock .primary-cta{
  min-height:56px;
  border:1px solid rgba(15,92,85,.16);
  border-radius:18px 6px 18px 6px;
  background:#c8663f;
  box-shadow:0 9px 19px rgba(112,58,37,.22);
}

html[data-theme="c"].safari-view body{padding-bottom:0}
html[data-theme="c"] #safariDock,
html[data-theme="c"] #leadForm{display:none!important}
html[data-theme="c"] #safariPage:not([hidden]){display:block;min-height:100vh;background:#fff8e9}
html[data-theme="c"] #safariPage .safari-hero,
html[data-theme="c"] #safariPage.is-ready .safari-hero{
  height:390px;
  min-height:390px;
  isolation:isolate;
  overflow:hidden;
  border-radius:0;
  background:#fff8e9;
  color:#153f3b;
}
html[data-theme="c"] #safariPage .safari-hero::before{
  z-index:5;
  inset:0 0 auto;
  width:auto;
  height:9px;
  border:0;
  border-radius:0;
  background:repeating-linear-gradient(90deg,#0f5c55 0 30px,transparent 30px 37px,#c8663f 37px 62px,transparent 62px 80px);
  opacity:.82;
}
html[data-theme="c"] #safariPage .safari-hero::after{
  z-index:1;
  top:144px;
  right:-10px;
  width:112px;
  height:112px;
  border-radius:50%;
  background:#c8663f;
  opacity:.9;
}
html[data-theme="c"] #safariPage .hero-copy{
  position:absolute;
  z-index:4;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  display:block;
}
html[data-theme="c"] #safariPage .hero-badge{
  position:absolute;
  left:18px;
  top:27px;
  width:auto;
  max-width:calc(100% - 36px);
  min-height:34px;
  padding:7px 11px;
  border:1px solid #0f5c55;
  border-radius:7px;
  background:rgba(255,253,247,.9);
  color:#0f5c55;
  font-size:10.5px;
  line-height:18px;
  box-shadow:3px 3px 0 rgba(15,92,85,.09);
}
html[data-theme="c"] #safariPage .badge-pin{background:#c8663f;box-shadow:none}
html[data-theme="c"] #safariPage .hero-title{
  position:absolute;
  left:18px;
  top:77px;
  width:140px;
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:24px;
  line-height:26px;
  letter-spacing:-.45px;
  color:#153f3b;
  text-wrap:balance;
}
html[data-theme="c"] #safariPage .hero-sub{
  position:absolute;
  left:18px;
  top:230px;
  width:145px;
  margin:0;
  font-size:11.5px;
  line-height:17px;
  color:#74675d;
}
html[data-theme="c"] #safariPage .hero-count{
  position:absolute;
  left:18px;
  top:auto;
  bottom:27px;
  width:170px;
  min-height:32px;
  margin:0;
  padding:7px 10px;
  border:1px solid #0f5c55;
  border-radius:17px;
  background:rgba(255,253,247,.9);
  color:#153f3b;
  font-size:10.5px;
  line-height:16px;
  box-shadow:3px 3px 0 rgba(15,92,85,.09);
}
html[data-theme="c"] #safariPage .hero-portrait{
  z-index:3;
  left:auto;
  right:12px;
  top:73px;
  bottom:auto;
  width:204px;
  height:306px;
  overflow:hidden;
  border:2px solid #0f5c55;
  border-radius:103px 103px 18px 18px;
  background-color:#88b5aa;
  box-shadow:0 13px 24px rgba(15,92,85,.16);
  filter:saturate(.9) contrast(1.02);
}
html[data-theme="c"] #safariPage>.thumb-strip{
  z-index:7;
  margin-top:-9px;
  padding:0 14px;
  background:#fff8e9;
}
html[data-theme="c"] #safariPage .thumb-card{height:68px}
html[data-theme="c"] #safariPage .safari-stack{
  display:grid;
  gap:12px;
  padding:28px 14px 30px;
}
html[data-theme="c"] #safariPage .timer-card{
  padding:20px;
  border:1px solid #0f5c55;
  border-radius:30px 8px 30px 8px;
  background:#f4ead5;
  box-shadow:0 10px 24px rgba(52,72,60,.09);
}
html[data-theme="c"] #safariPage .timer-top span{
  border:1px solid rgba(15,92,85,.24);
  border-radius:8px;
  background:#fffdf7;
  color:#0f5c55;
}
html[data-theme="c"] #safariPage .timer-card h2,
html[data-theme="c"] #safariPage .faq-card .block-title{
  font-family:Georgia,"Times New Roman",serif;
  color:#153f3b;
}
html[data-theme="c"] #safariPage .progress-shell{height:10px;background:#fffdf7}
html[data-theme="c"] #safariPage .progress-bar{background:linear-gradient(90deg,#0f5c55,#6ea99f)}
html[data-theme="c"] #safariPage .proof-list article{
  border:1px solid rgba(15,92,85,.25);
  border-radius:18px 6px 18px 6px;
  background:#fffdf7;
}
html[data-theme="c"] #safariPage .proof-list b{
  border-radius:50%;
  background:#0f5c55;
}
html[data-theme="c"] #safariPage .timer-lock{background:#0f5c55}
html[data-theme="c"] #safariPage .faq-card{
  border:1px solid rgba(15,92,85,.4);
  border-radius:8px 30px 8px 30px;
  background:#fffdf7;
  box-shadow:0 8px 20px rgba(52,72,60,.07);
}
html[data-theme="c"] #safariPage.is-ready .hero-count::before{
  content:"✓";
  color:#c8663f;
  font-weight:900;
}
html[data-theme="c"] #safariPage.is-ready .timer-lock{background:#507a52}

html[data-theme="c"] #safariGuide{background:rgba(8,46,43,.68)}
html[data-theme="c"] #safariGuide .sheet-inner{
  width:min(100%,430px);
  max-width:430px;
  height:min(742px,calc(100dvh - 44px));
  max-height:none;
  padding:13px 18px calc(18px + env(safe-area-inset-bottom));
  overflow:auto;
  overscroll-behavior:contain;
  scroll-padding-bottom:92px;
  border:1px solid #0f5c55;
  border-bottom:0;
  border-radius:32px 8px 0 0;
  background:#fff8e9;
  box-shadow:0 -12px 36px rgba(8,46,43,.2);
}
html[data-theme="c"] #safariGuide .sheet-inner:focus{outline:none}
html[data-theme="c"] #safariGuide .sheet-handle{margin-bottom:12px;background:#0f5c55}
html[data-theme="c"] #safariGuide h2{
  font-family:Georgia,"Times New Roman",serif;
  font-size:26px;
  line-height:30px;
  letter-spacing:-.35px;
  color:#153f3b;
}
html[data-theme="c"] #safariGuide .guide-image{
  display:block;
  width:100%;
  height:auto!important;
  max-height:none!important;
  margin-top:12px;
  border:1px solid #0f5c55;
  border-radius:26px 8px 26px 8px;
  background:#fffdf7;
  object-fit:contain!important;
  box-shadow:0 9px 20px rgba(52,72,60,.08);
}
html[data-theme="c"] #safariGuide>section>p#guideSub{margin-top:11px;font-size:13px;line-height:19px;color:#74675d}
html[data-theme="c"] #safariGuide .guide-steps{display:grid;gap:7px;margin-top:12px}
html[data-theme="c"] #safariGuide .guide-steps article{
  min-height:58px;
  padding:9px 11px;
  display:flex;
  gap:11px;
  align-items:center;
  border:1px solid rgba(15,92,85,.38);
  border-radius:18px 6px 18px 6px;
  background:#fffdf7;
  font-size:12px;
  line-height:17px;
  color:#3d554f;
}
html[data-theme="c"] #safariGuide .guide-steps article>b{
  display:grid;
  place-items:center;
  flex:0 0 34px;
  height:34px;
  border-radius:50%;
  background:#0f5c55;
  color:#fff;
  font-size:14px;
}
html[data-theme="c"] #safariGuide .guide-steps article span b{
  display:inline;
  flex:initial;
  width:auto;
  height:auto;
  border:0;
  border-radius:0;
  background:transparent;
  color:inherit;
  font:inherit;
}
html[data-theme="c"] #safariGuide .sheet-button{
  position:sticky;
  z-index:3;
  bottom:-1px;
  width:calc(100% + 12px);
  min-height:56px;
  margin:12px -6px 0;
  border:1px solid rgba(15,92,85,.2);
  border-radius:18px 6px 18px 6px;
  background:#c8663f;
  box-shadow:0 -10px 18px #fff8e9,0 9px 20px rgba(112,58,37,.2);
  font-size:16px;
}
html[data-theme="c"] #safariGuide .sheet-note{margin-top:10px;font-size:11px!important;line-height:16px}

html[data-theme="c"] #gatePage .story-card,
html[data-theme="c"] #gatePage .mini-stats,
html[data-theme="c"] #gatePage .trust-card,
html[data-theme="c"] #safariPage .timer-card,
html[data-theme="c"] #safariPage .faq-card{
  content-visibility:auto;
  contain-intrinsic-size:auto 240px;
}
html[data-theme="c"] .thumb-card:focus-visible,
html[data-theme="c"] .primary-cta:focus-visible,
html[data-theme="c"] .sheet-button:focus-visible{
  outline:3px solid #0f5c55;
  outline-offset:3px;
}

@media (max-height:700px){
  html[data-theme="c"] #gatePage .hero{height:428px;min-height:428px}
  html[data-theme="c"] #gatePage .hero-title{top:70px;font-size:25px;line-height:27px}
  html[data-theme="c"] #gatePage .hero-sub{top:190px}
  html[data-theme="c"] #gatePage .hero-count{bottom:34px}
  html[data-theme="c"] #gatePage .hero-portrait{top:140px;height:278px}
  html[data-theme="c"] #safariPage .safari-hero,
  html[data-theme="c"] #safariPage.is-ready .safari-hero{height:346px;min-height:346px}
  html[data-theme="c"] #safariPage .hero-title{top:69px;font-size:23px;line-height:25px}
  html[data-theme="c"] #safariPage .hero-sub{top:204px}
  html[data-theme="c"] #safariPage .hero-count{bottom:18px}
  html[data-theme="c"] #safariPage .hero-portrait{top:66px;height:270px}
  html[data-theme="c"] #safariGuide .sheet-inner{height:calc(100dvh - 20px);padding-top:9px}
  html[data-theme="c"] #safariGuide h2{font-size:23px;line-height:27px}
}
@media (max-width:374px){
  html[data-theme="c"] #gatePage .hero{height:438px;min-height:438px}
  html[data-theme="c"] #gatePage .hero-badge{left:16px;top:23px;max-width:calc(100% - 32px)}
  html[data-theme="c"] #gatePage .hero-title{left:16px;right:16px;top:70px;font-size:24px;line-height:26px}
  html[data-theme="c"] #gatePage .hero-sub{left:16px;top:190px;width:124px;font-size:10.5px;line-height:15.5px}
  html[data-theme="c"] #gatePage .hero-count{left:16px;bottom:37px;min-width:116px}
  html[data-theme="c"] #gatePage .hero-portrait{right:9px;top:151px;width:181px;height:278px;border-radius:92px 92px 15px 15px}
  html[data-theme="c"] #gatePage .story-card{height:274px;margin-top:-28px;padding:17px 15px 100px}
  html[data-theme="c"] #gatePage .story-title{font-size:19px;line-height:22px}
  html[data-theme="c"] #gatePage .story-text{font-size:11px;line-height:16px}
  html[data-theme="c"] #gatePage .thumb-strip{margin-top:-104px;padding:0 19px}
  html[data-theme="c"] #gatePage .thumb-track,
  html[data-theme="c"] #safariPage .thumb-track{gap:6px}
  html[data-theme="c"] #gatePage .thumb-card{height:65px}
  html[data-theme="c"] #safariPage .safari-hero,
  html[data-theme="c"] #safariPage.is-ready .safari-hero{height:352px;min-height:352px}
  html[data-theme="c"] #safariPage .hero-badge{left:14px;top:22px;max-width:calc(100% - 28px)}
  html[data-theme="c"] #safariPage .hero-title{left:14px;top:61px;width:122px;font-size:20px;line-height:22px}
  html[data-theme="c"] #safariPage .hero-sub{left:14px;top:200px;width:126px;font-size:10.5px;line-height:15.5px}
  html[data-theme="c"] #safariPage .hero-count{left:14px;bottom:17px;width:154px;font-size:9.5px;line-height:14px}
  html[data-theme="c"] #safariPage .hero-portrait{right:8px;top:66px;width:174px;height:276px;border-radius:88px 88px 15px 15px}
  html[data-theme="c"] #safariPage>.thumb-strip{padding:0 9px}
  html[data-theme="c"] #safariPage .thumb-card{height:61px}
  html[data-theme="c"] #safariPage .safari-stack{padding:22px 9px 25px}
  html[data-theme="c"] #safariPage .timer-card{padding:15px}
  html[data-theme="c"] #safariGuide .sheet-inner{padding-left:14px;padding-right:14px}
  html[data-theme="c"] #safariGuide h2{font-size:23px;line-height:27px}
  html[data-theme="c"] #safariGuide .guide-steps article{font-size:11px;line-height:16px}
}
@media (max-width:374px) and (max-height:640px){
  html[data-theme="c"] #gatePage .hero{height:394px;min-height:394px}
  html[data-theme="c"] #gatePage .hero-title{top:61px;font-size:22px;line-height:24px}
  html[data-theme="c"] #gatePage .hero-sub{top:166px}
  html[data-theme="c"] #gatePage .hero-count{bottom:30px}
  html[data-theme="c"] #gatePage .hero-portrait{top:131px;height:254px}
  html[data-theme="c"] #safariPage .safari-hero,
  html[data-theme="c"] #safariPage.is-ready .safari-hero{height:322px;min-height:322px}
  html[data-theme="c"] #safariPage .hero-title{top:57px;font-size:19px;line-height:21px}
  html[data-theme="c"] #safariPage .hero-sub{top:173px}
  html[data-theme="c"] #safariPage .hero-count{bottom:12px}
  html[data-theme="c"] #safariPage .hero-portrait{top:58px;height:254px}
  html[data-theme="c"] #safariGuide .guide-image{margin-top:9px}
  html[data-theme="c"] #safariGuide .guide-steps{gap:5px;margin-top:9px}
  html[data-theme="c"] #safariGuide .guide-steps article{min-height:52px;padding:7px 9px}
}
@media (prefers-reduced-motion:reduce){
  html[data-theme="c"] .hero-portrait.has-profile-image,
  html[data-theme="c"] #gatePage .thumb-card,
  html[data-theme="c"] #safariPage .thumb-card,
  html[data-theme="c"] #safariPage .progress-bar{transition:none!important}
}

/* V8 Safari discovery — immediate content, no countdown or conversion dock. */
html.safari-view #safariDock,
html.safari-view #leadForm{display:none!important}
#safariPage .safari-hero{touch-action:pan-y}
#safariPage .safari-discovery{display:grid;gap:12px;padding:22px 14px 32px}
#safariPage .discovery-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:0 4px}
#safariPage .discovery-eyebrow{display:block;margin-bottom:5px;font-size:11px;line-height:15px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:var(--brand)}
#safariPage .discovery-intro h2,#safariPage .safety-heading h2{font-family:var(--display);font-size:24px;line-height:28px;letter-spacing:-.025em}
#safariPage .profile-position{flex:0 0 auto;display:grid;place-items:center;min-width:48px;height:30px;padding:0 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-size:12px;font-weight:850;color:var(--brand)}
#safariPage .city-track{display:flex;gap:8px;margin:0 -14px;padding:2px 14px 7px;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
#safariPage .city-track::-webkit-scrollbar{display:none}
#safariPage .city-chip{flex:0 0 auto;display:flex;align-items:center;gap:6px;min-height:42px;padding:9px 13px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);font:inherit;font-size:13px;font-weight:750;white-space:nowrap}
#safariPage .city-chip span{font-size:14px;color:var(--brand)}
#safariPage .city-chip.active{border-color:var(--brand);background:var(--brand);color:#fff;box-shadow:0 7px 15px rgba(15,63,153,.13)}
#safariPage .city-chip.active span{color:inherit}
#safariPage .profile-detail-card{position:relative;overflow:hidden;padding:20px;border:1px solid var(--line);border-radius:26px;background:var(--surface);box-shadow:var(--shadow)}
#safariPage .profile-detail-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
#safariPage .profile-city{display:inline-flex;align-items:center;min-height:30px;padding:6px 10px;border-radius:999px;background:var(--surface-soft);font-size:12px;font-weight:850;color:var(--brand)}
#safariPage .profile-demo-badge{font-size:10px;line-height:14px;font-weight:850;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
#safariPage .profile-detail-card>h2{margin-top:15px;font-family:var(--display);font-size:27px;line-height:30px;letter-spacing:-.03em}
#safariPage .profile-bio{margin-top:9px;font-size:14px;line-height:21px;color:var(--muted)}
#safariPage .interest-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:15px}
#safariPage .interest-tags span{display:inline-flex;align-items:center;min-height:30px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface-soft);font-size:11px;line-height:16px;font-weight:750;color:var(--text)}
#safariPage .profile-prompt{position:relative;margin:18px 0 0;padding:16px;border:0;border-radius:18px;background:var(--surface-soft)}
#safariPage .profile-prompt::before{content:'“';position:absolute;right:14px;top:6px;font-family:Georgia,serif;font-size:50px;line-height:50px;color:var(--brand);opacity:.16}
#safariPage .profile-prompt span,#safariPage .profile-prompt strong{display:block;position:relative}
#safariPage .profile-prompt span{font-size:10px;line-height:15px;font-weight:850;letter-spacing:.07em;text-transform:uppercase;color:var(--brand)}
#safariPage .profile-prompt strong{max-width:88%;margin-top:5px;font-size:14px;line-height:20px}
#safariPage .profile-navigation{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
#safariPage .profile-navigation button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);font:inherit;font-size:13px;font-weight:850;color:var(--text)}
#safariPage .profile-navigation button:last-child{border-color:var(--brand);background:var(--brand);color:#fff}
#safariPage .profile-navigation button span[aria-hidden]{font-size:18px;line-height:18px}
#safariPage .discovery-trust{padding:18px;border-radius:24px;background:var(--text);color:#fff}
#safariPage .discovery-trust-heading{display:flex;align-items:center;gap:9px}
#safariPage .discovery-trust-heading>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#fff;color:var(--brand);font-size:13px;font-weight:900}
#safariPage .discovery-trust-heading h2{font-size:20px;line-height:24px}
#safariPage .discovery-trust-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:14px}
#safariPage .discovery-trust-grid article{min-width:0;padding:11px 9px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.07)}
#safariPage .discovery-trust-grid article>span{display:block;font-size:17px;color:#fff}
#safariPage .discovery-trust-grid strong,#safariPage .discovery-trust-grid small{display:block}
#safariPage .discovery-trust-grid strong{margin-top:8px;font-size:11px;line-height:15px}
#safariPage .discovery-trust-grid small{margin-top:4px;font-size:9px;line-height:13px;color:rgba(255,255,255,.7)}
#safariPage .safety-accordion{overflow:hidden;padding:18px;border:1px solid var(--line);border-radius:24px;background:var(--surface)}
#safariPage .safety-heading{margin-bottom:8px}
#safariPage .safety-accordion details{border-top:1px solid var(--line)}
#safariPage .safety-accordion summary{position:relative;display:block;padding:15px 32px 15px 0;cursor:pointer;list-style:none;font-size:13px;line-height:19px;font-weight:850;color:var(--text)}
#safariPage .safety-accordion summary::-webkit-details-marker{display:none}
#safariPage .safety-accordion summary::after{content:'+';position:absolute;right:2px;top:13px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--surface-soft);color:var(--brand);font-size:17px}
#safariPage .safety-accordion details[open] summary::after{content:'−'}
#safariPage .safety-accordion details p{padding:0 30px 15px 0;font-size:12px;line-height:18px;color:var(--muted)}
#safariPage>.privacy{max-width:330px;margin:0 auto;padding:0 18px 28px;text-align:center;font-size:10px;line-height:15px}
#safariPage .city-chip:focus-visible,#safariPage .profile-navigation button:focus-visible,#safariPage .safety-accordion summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* A — editorial discovery: framed, serif-led, archival. */
html[data-theme="a"] #safariPage .safari-discovery{gap:14px;padding-top:25px}
html[data-theme="a"] #safariPage .discovery-intro{padding:0 1px;border-bottom:1px solid #d6b46b;padding-bottom:12px}
html[data-theme="a"] #safariPage .profile-position,html[data-theme="a"] #safariPage .city-chip{border-radius:5px}
html[data-theme="a"] #safariPage .city-chip.active{background:#7a1738;border-color:#7a1738;box-shadow:none}
html[data-theme="a"] #safariPage .profile-detail-card{border-color:#d6b46b;border-radius:8px;padding:22px;background:#fffaf0;box-shadow:none}
html[data-theme="a"] #safariPage .profile-detail-card::before{content:'';display:block;height:3px;margin:-8px 0 18px;background:linear-gradient(90deg,#7a1738 0 56%,#d6b46b 56%)}
html[data-theme="a"] #safariPage .profile-city,html[data-theme="a"] #safariPage .interest-tags span{border-radius:4px;background:#f3e6d2}
html[data-theme="a"] #safariPage .profile-prompt{border-left:3px solid #d6b46b;border-radius:0;background:#f8eedf}
html[data-theme="a"] #safariPage .profile-navigation button{border-radius:5px}
html[data-theme="a"] #safariPage .profile-navigation button:last-child{background:#7a1738;border-color:#7a1738}
html[data-theme="a"] #safariPage .discovery-trust{border:1px solid #d6b46b;border-radius:8px;background:#4b1024}
html[data-theme="a"] #safariPage .discovery-trust-grid article{border-radius:4px}
html[data-theme="a"] #safariPage .safety-accordion{border-color:#d6b46b;border-radius:8px;background:#fffaf0}

/* B — native iOS discovery: clean cards and segmented controls. */
html[data-theme="b"] #safariPage .discovery-intro h2,html[data-theme="b"] #safariPage .safety-heading h2,html[data-theme="b"] #safariPage .profile-detail-card>h2{font-family:var(--body);font-weight:850}
html[data-theme="b"] #safariPage .profile-detail-card{border-color:rgba(169,204,255,.84);border-radius:28px;background:#fff;box-shadow:0 14px 30px rgba(23,43,84,.11)}
html[data-theme="b"] #safariPage .profile-detail-card::after{content:'';position:absolute;right:-48px;top:-54px;width:120px;height:120px;border-radius:50%;background:#eaf2ff}
html[data-theme="b"] #safariPage .profile-detail-card>*{position:relative;z-index:1}
html[data-theme="b"] #safariPage .profile-prompt{background:#eaf2ff}
html[data-theme="b"] #safariPage .profile-navigation button:last-child{background:#1456c8;border-color:#1456c8}
html[data-theme="b"] #safariPage .discovery-trust{background:linear-gradient(145deg,#0f3f99,#1456c8);box-shadow:0 12px 26px rgba(15,63,153,.16)}
html[data-theme="b"] #safariPage .safety-accordion{border-color:rgba(169,204,255,.72);box-shadow:0 8px 22px rgba(23,43,84,.07)}

/* C — Aegean discovery: offset cards, teal and terracotta. */
html[data-theme="c"] #safariPage .discovery-intro{position:relative;padding-top:12px}
html[data-theme="c"] #safariPage .discovery-intro::before{content:'';position:absolute;left:0;right:0;top:0;height:4px;background:repeating-linear-gradient(90deg,#2a9d8f 0 28px,transparent 28px 34px,#c65d3a 34px 58px,transparent 58px 74px)}
html[data-theme="c"] #safariPage .profile-position{border-color:#2a9d8f;border-radius:8px;background:#fff9f0}
html[data-theme="c"] #safariPage .city-chip{border-color:#2a9d8f;border-radius:8px;background:#fff9f0}
html[data-theme="c"] #safariPage .city-chip.active{background:#0f5c55;border-color:#0f5c55;box-shadow:none}
html[data-theme="c"] #safariPage .profile-detail-card{border-color:#2a9d8f;border-radius:30px 8px 30px 8px;background:#fff8e9;box-shadow:none}
html[data-theme="c"] #safariPage .profile-city,html[data-theme="c"] #safariPage .interest-tags span{border-color:rgba(42,157,143,.55);background:#f3e6d2}
html[data-theme="c"] #safariPage .profile-prompt{border-radius:18px 4px 18px 4px;background:#f3e6d2}
html[data-theme="c"] #safariPage .profile-navigation button{border-color:#2a9d8f;border-radius:12px 4px 12px 4px}
html[data-theme="c"] #safariPage .profile-navigation button:last-child{background:#c65d3a;border-color:#c65d3a}
html[data-theme="c"] #safariPage .discovery-trust{border-radius:26px 8px 26px 8px;background:#0f5c55}
html[data-theme="c"] #safariPage .safety-accordion{border-color:#2a9d8f;border-radius:8px 28px 8px 28px;background:#fff8e9}

@media (max-width:374px){
  #safariPage .safari-discovery{gap:10px;padding:18px 9px 26px}
  #safariPage .city-track{margin-left:-9px;margin-right:-9px;padding-left:9px;padding-right:9px}
  #safariPage .discovery-intro h2,#safariPage .safety-heading h2{font-size:21px;line-height:24px}
  #safariPage .profile-detail-card{padding:16px}
  #safariPage .profile-detail-card>h2{font-size:23px;line-height:26px}
  #safariPage .profile-bio{font-size:12px;line-height:18px}
  #safariPage .interest-tags{gap:5px;margin-top:12px}
  #safariPage .interest-tags span{min-height:28px;padding:5px 8px;font-size:10px}
  #safariPage .profile-prompt{margin-top:14px;padding:13px}
  #safariPage .profile-navigation button{min-height:44px}
  #safariPage .discovery-trust{padding:15px}
  #safariPage .discovery-trust-grid{gap:5px}
  #safariPage .discovery-trust-grid article{padding:9px 7px}
  #safariPage .safety-accordion{padding:15px}
}
@media (max-width:340px){
  #safariPage .discovery-trust-grid{grid-template-columns:1fr}
  #safariPage .discovery-trust-grid article{display:grid;grid-template-columns:22px 1fr;column-gap:8px}
  #safariPage .discovery-trust-grid article>span{grid-row:1/3}
  #safariPage .discovery-trust-grid strong{margin-top:0}
}
@media (prefers-reduced-motion:reduce){
  #safariPage .profile-detail-card,#safariPage .city-chip,#safariPage .profile-navigation button{transition:none!important}
}

/* V9 message → WhatsApp lead prototype. No sticky Safari CTA. */
#safariPage .profile-message-button{display:grid;grid-template-columns:38px 1fr 22px;align-items:center;gap:10px;width:100%;min-height:62px;margin-top:14px;padding:10px 12px;border:0;border-radius:17px;background:var(--accent);color:#fff;text-align:left;font:inherit;box-shadow:0 9px 20px rgba(77,8,20,.16)}
#safariPage .message-button-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:rgba(255,255,255,.16);font-size:17px}
#safariPage .profile-message-button strong,#safariPage .profile-message-button small{display:block}
#safariPage .profile-message-button strong{font-size:13px;line-height:18px}
#safariPage .profile-message-button small{margin-top:2px;font-size:10px;line-height:14px;color:rgba(255,255,255,.75)}
#safariPage .message-button-arrow{font-size:21px;text-align:right}
#safariPage .profile-message-button:focus-visible{outline:3px solid var(--text);outline-offset:3px}

.message-flow-sheet{background:rgba(7,14,29,.72)}
.message-flow-sheet .sheet-inner{position:relative;width:min(100%,460px);max-width:460px;max-height:calc(100vh - 14px);max-height:calc(100dvh - 14px);padding:12px 16px calc(20px + env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;scroll-padding-bottom:30px;background:var(--surface)}
.message-flow-sheet .sheet-handle{margin-bottom:8px}
.flow-close{position:absolute;z-index:3;right:13px;top:18px;display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:var(--surface-soft);color:var(--text);font-size:24px;line-height:1}
.flow-progress{display:flex;align-items:center;justify-content:center;width:122px;margin:5px auto 14px}
.flow-progress span{width:10px;height:10px;border:2px solid var(--line);border-radius:50%;background:var(--surface)}
.flow-progress span.active{border-color:var(--brand);background:var(--brand)}
.flow-progress i{flex:1;height:2px;background:var(--line)}
.message-step{display:none}
.message-step.active{display:block}
.flow-eyebrow{display:block;padding-right:42px;font-size:10px;line-height:14px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:var(--brand)}
.message-step h2{padding-right:40px;margin-top:4px;font-family:var(--display);font-size:25px;line-height:29px;letter-spacing:-.025em}
.message-step>p{margin-top:7px;font-size:12px;line-height:18px;color:var(--muted)}
.recipient-fieldset,.template-fieldset{min-width:0;margin:17px 0 0;padding:0;border:0}
.recipient-fieldset legend,.template-fieldset legend{display:flex;align-items:center;justify-content:space-between;width:100%;padding:0;font-size:12px;line-height:17px;font-weight:850;color:var(--text)}
.recipient-fieldset legend small{font-size:10px;color:var(--brand)}
.recipient-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:9px}
.recipient-option{position:relative;display:grid;justify-items:center;min-width:0;padding:7px 3px 8px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);font:inherit}
.recipient-avatar{display:block;width:42px;height:42px;border-radius:50%;background-color:var(--surface-soft);background-position:var(--profile-position,50% 7%);background-size:cover;background-repeat:no-repeat}
.recipient-copy{display:block;width:100%;margin-top:5px;text-align:center}
.recipient-copy strong,.recipient-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recipient-copy strong{font-size:9px;line-height:13px}
.recipient-copy small{font-size:8px;line-height:11px;color:var(--muted)}
.recipient-option>i{position:absolute;right:3px;top:3px;display:none;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--brand);color:#fff;font-size:9px;font-style:normal}
.recipient-option.active{border-color:var(--brand);background:var(--surface-soft);box-shadow:inset 0 0 0 1px var(--brand)}
.recipient-option.active>i{display:grid}
.template-list{display:grid;gap:6px;margin-top:9px}
.message-template{position:relative;display:grid;grid-template-columns:28px 1fr 20px;align-items:center;gap:9px;width:100%;min-height:48px;padding:8px 10px;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--text);text-align:left;font:inherit}
.message-template>b{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--surface-soft);color:var(--brand);font-size:11px}
.message-template>span{font-size:11px;line-height:16px}
.message-template>i{display:none;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--brand);color:#fff;font-size:10px;font-style:normal}
.message-template.active{border-color:var(--brand);background:var(--surface-soft)}
.message-template.active>i{display:grid}
.message-editor{display:block;margin-top:14px}
.message-editor>span{display:flex;justify-content:space-between;align-items:center}
.message-editor b{font-size:12px;line-height:17px}
.message-editor small{font-size:10px;color:var(--muted)}
.message-editor textarea{display:block;width:100%;min-height:82px;margin-top:7px;padding:10px 11px;resize:none;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--text);font:inherit;font-size:12px;line-height:18px}
.flow-error{display:none;margin-top:9px;padding:9px 10px;border-radius:10px;background:#fff0f0;color:#a62828;font-size:11px;line-height:16px;font-weight:750}
.message-flow-sheet .flow-primary{min-height:50px;margin-top:12px}
.message-flow-sheet .sheet-note{margin-top:8px;font-size:9px!important;line-height:14px;color:var(--muted)}
.message-summary{margin-top:16px;padding:13px;border:1px solid var(--line);border-radius:15px;background:var(--surface-soft)}
.message-summary>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
.message-summary span{font-size:10px;font-weight:850;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.message-summary strong{font-size:11px;color:var(--brand)}
.message-summary blockquote{display:-webkit-box;overflow:hidden;margin:9px 0 0;padding:0;border:0;-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:12px;line-height:18px;color:var(--text)}
.wa-phone-label{display:block;margin-top:17px;font-size:12px;line-height:17px;font-weight:850}
.wa-phone-row{display:grid;grid-template-columns:92px 1fr;gap:7px;margin-top:7px}
.wa-country,.wa-phone-row input{height:50px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--text);font:inherit;font-size:15px}
.wa-country{display:grid;place-items:center;font-size:13px;font-weight:850}
.wa-phone-row input{width:100%;padding:0 11px}
.wa-consent{display:grid;grid-template-columns:22px 1fr;align-items:start;gap:8px;margin-top:13px;padding:11px;border:1px solid var(--line);border-radius:13px;background:var(--surface-soft)}
.wa-consent input{width:20px;height:20px;margin:0;accent-color:var(--brand)}
.wa-consent span{font-size:11px;line-height:16px;color:var(--text)}
.flow-back{display:block;width:100%;min-height:42px;margin-top:5px;border:0;background:transparent;color:var(--brand);font:inherit;font-size:12px;font-weight:850}
.policy-placeholder{padding:9px;border:1px dashed var(--line);border-radius:10px;background:var(--surface-soft)}
.flow-success{padding:30px 6px 10px;text-align:center}
.flow-success .success-icon{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 15px;border-radius:50%;background:var(--brand);color:#fff;font-size:28px;font-weight:900;box-shadow:0 12px 24px rgba(15,63,153,.18)}
.flow-success .flow-eyebrow,.flow-success h2{padding-right:0}
.flow-success>p{max-width:310px;margin:9px auto 0}
.demo-warning{margin-top:18px;padding:12px;border-radius:13px;background:#fff4dc;color:#7c5515;font-size:11px;line-height:17px;font-weight:700}
.message-flow-sheet button:focus-visible,.message-flow-sheet input:focus-visible,.message-flow-sheet textarea:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* A — editorial message flow. */
html[data-theme="a"] #safariPage .profile-message-button{border:1px solid #d6b46b;border-radius:5px;background:#7a1738;box-shadow:none}
html[data-theme="a"] #safariPage .message-button-icon{border:1px solid #d6b46b;border-radius:3px;background:transparent}
html[data-theme="a"] .message-flow-sheet .sheet-inner{border:1px solid #d6b46b;border-bottom:0;border-radius:16px 16px 0 0;background:#fffaf0}
html[data-theme="a"] .flow-close,html[data-theme="a"] .recipient-option,html[data-theme="a"] .message-template,html[data-theme="a"] .message-editor textarea,html[data-theme="a"] .wa-country,html[data-theme="a"] .wa-phone-row input{border-radius:4px}
html[data-theme="a"] .recipient-option.active,html[data-theme="a"] .message-template.active{border-color:#7a1738;background:#f3e6d2}
html[data-theme="a"] .message-flow-sheet .flow-primary{border:1px solid #d6b46b;border-radius:5px;background:#7a1738}

/* B — native iOS message flow. */
html[data-theme="b"] #safariPage .profile-message-button{border-radius:18px;background:#1456c8;box-shadow:0 10px 22px rgba(20,86,200,.22)}
html[data-theme="b"] .message-flow-sheet .sheet-inner{border-radius:26px 26px 0 0;background:#fff}
html[data-theme="b"] .message-step h2{font-family:var(--body);font-weight:850}
html[data-theme="b"] .message-flow-sheet .flow-primary{border-radius:999px;background:#1456c8}
html[data-theme="b"] .recipient-option.active,html[data-theme="b"] .message-template.active{border-color:#1456c8;background:#eaf2ff}

/* C — Aegean message flow. */
html[data-theme="c"] #safariPage .profile-message-button{border-radius:16px 4px 16px 4px;background:#c65d3a;box-shadow:none}
html[data-theme="c"] #safariPage .message-button-icon{border-radius:12px 3px 12px 3px}
html[data-theme="c"] .message-flow-sheet .sheet-inner{border:1px solid #2a9d8f;border-bottom:0;border-radius:28px 8px 0 0;background:#fff8e9}
html[data-theme="c"] .recipient-option,html[data-theme="c"] .message-template,html[data-theme="c"] .message-summary,html[data-theme="c"] .wa-consent{border-color:rgba(42,157,143,.75);border-radius:13px 4px 13px 4px}
html[data-theme="c"] .recipient-option.active,html[data-theme="c"] .message-template.active{border-color:#0f5c55;background:#f3e6d2}
html[data-theme="c"] .message-flow-sheet .flow-primary{border-radius:14px 4px 14px 4px;background:#c65d3a}

@media (max-width:374px){
  #safariPage .profile-message-button{grid-template-columns:34px 1fr 18px;min-height:56px;padding:8px 10px}
  #safariPage .message-button-icon{width:34px;height:34px}
  .message-flow-sheet .sheet-inner{padding-left:12px;padding-right:12px}
  .message-step h2{font-size:22px;line-height:26px}
  .recipient-grid{gap:4px}
  .recipient-avatar{width:36px;height:36px}
  .recipient-option{padding-left:2px;padding-right:2px}
  .recipient-copy strong{font-size:8px}
  .recipient-copy small{display:none}
  .message-template{grid-template-columns:25px 1fr 18px;gap:7px;padding:7px 8px}
  .message-template>b{width:25px;height:25px}
  .message-template>span{font-size:10px;line-height:15px}
}
@media (max-height:640px){
  .message-flow-sheet .sheet-inner{max-height:100vh;max-height:100dvh;border-radius:0}
  .flow-progress{margin-bottom:9px}
  .recipient-fieldset,.template-fieldset{margin-top:12px}
  .message-template{min-height:43px}
  .message-editor textarea{min-height:68px}
}
@media (prefers-reduced-motion:reduce){
  .message-flow-sheet .sheet-inner,.message-step{animation:none!important;transition:none!important}
}

/* City selector: discrete horizontal carousel; JS wraps first ↔ last. */
#safariPage .city-track{
  overflow-x:hidden;
  overscroll-behavior-x:none;
  touch-action:pan-y;
  scroll-behavior:smooth;
}
