.entry-page { background: #151519; min-height: 100svh; }
.entry-wrap { margin: 0 auto; padding:env(safe-area-inset-top) var(--page-gutter) env(safe-area-inset-bottom); }
.entry-header { display: flex; align-items: center; justify-content: space-between; min-height:65px; gap:8px; }
.entry-header nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 36px); }
.entry-nav-link, .entry-back { color: var(--soft); font-size: 14px; }
.entry-header .button { gap: 14px; padding: 0 15px; min-height:44px; }
.entry-nav-link:hover, .entry-back:hover { color: var(--coral); }
.entry-hero { isolation:isolate; position: relative; overflow: hidden; display:flex; border:1px solid #494337; background:#2a291e; min-height:356px; align-items:flex-end; border-radius:16px; }
.entry-hero img { position:absolute; z-index:-2; right:0; top:0; height:100%; object-fit:cover; width:100%; object-position:66% 9%; }
.entry-hero::after { content:''; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,#26241cdf,#26241c8a 52%,transparent 90%),linear-gradient(0deg,#26241c 0%,#26241cbe 27%,transparent 78%); }
.entry-hero-copy { padding:23px 18px; }
.entry-hero h1, .login-copy h1 { font-size:46px; line-height:.98; letter-spacing:-.046em; }
.entry-hero em, .login-copy em, .comparison-copy em { color:#efab94; font-weight:400; }
.entry-hero-copy p { color:#e2dbd2; line-height:1.55; font-size:14px; max-width:254px; margin:13px 0 17px; }
.entry-hero-copy .primary, .login-copy .primary { min-height:46px; padding:0 17px; gap:17px; }
.entry-routes { margin-top:28px; scroll-margin-top:16px; }
.entry-routes h2, .comparison-copy h2 { font-size:32px; letter-spacing:-.035em; }
.entry-route-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:12px; }
.entry-route { display:grid; border-radius:15px; border:1px solid var(--border); background:var(--panel); transition:background .16s, border-color .16s; --tint:#3b2c2e; --ink:var(--coral); min-height:103px; grid-template-areas:'symbol arrow' 'copy copy'; grid-template-columns:1fr auto; padding:13px; gap:10px; align-items:start; }
.route-nutrition { --tint:#2a3931; --ink:var(--sage); }
.route-progress { --tint:#393041; --ink:var(--lavender); }
.route-health { --tint:#3a342b; --ink:var(--gold); }
.entry-route:hover { background:#26262c; border-color:var(--ink); }
.route-symbol { grid-area:symbol; display:grid; place-content:center; color:var(--ink); background:var(--tint); width:33px; height:33px; border-radius:9px; }
.route-symbol .icon { width:18px;height:18px; }
.route-arrow { grid-area:arrow; color:var(--muted); }
.route-arrow .icon { width:17px; height:17px; transform:rotate(-35deg); }
.route-copy { grid-area:copy; display:grid; gap:5px; }
.route-copy strong { color:var(--text); font-family:var(--serif); font-weight:400; letter-spacing:-.4px; line-height:1.1; font-size:23px; }
.route-copy span, .comparison-copy p, .login-copy p { color:var(--muted); line-height:1.5; }
.entry-comparison { display:grid; align-items:center; border-top:1px solid var(--border); grid-template-columns:1fr; gap:17px; margin:29px 0 25px; padding-top:24px; }
.entry-comparison figure { position:relative; overflow:hidden; margin:0; border-radius:17px; background:#292820; border:1px solid #454136; }
.entry-comparison img { display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:contain; }
.entry-comparison figcaption { position:absolute; inset:auto 0 0; display:grid; grid-template-columns:1fr 1fr; padding:26px 0 13px; background:linear-gradient(transparent,#151418b0); }
.entry-comparison figcaption span { justify-self:start; margin-left:14px; padding:4px 11px; border:1px solid #fff3; color:#fff5e9; background:#26261fe8; border-radius:99px; font-size:12px; }
.comparison-copy p { max-width:340px; font-size:16px; margin:8px 0 12px; }
.comparison-copy small { color:var(--muted); display:block; font-size:12px; margin-top:10px; }
.entry-footer { display:flex; justify-content:space-between; gap:16px; align-items:center; padding:22px 0 30px; border-top:1px solid var(--border); }
.entry-footer .brand-mark { width:33px; height:33px; font-size:22px; border-radius:10px; }
.entry-footer .brand-name { font-size:24px; }
.entry-footer > a:last-child, .entry-back { display:inline-flex; align-items:center; gap:7px; font-size:14px; color:var(--soft); }
.entry-footer .icon { width:15px; }
.login-panel { display:grid; border:1px solid #3d3b40; overflow:hidden; border-radius:21px; margin:15px auto 40px; background:var(--panel); grid-template-columns:minmax(0,1fr); }
.login-image { background:#28271d; position:relative; min-height:205px; }
.login-image img { width:100%; height:100%; position:absolute; object-fit:cover; object-position:60% 23%; }
.login-copy { align-self:center; padding:25px; }
.login-copy h1 { font-size:clamp(42px,10vw,48px); }
.login-route { display:inline-flex; align-items:center; gap:7px; font-size:13px; color:var(--sage); margin-bottom:13px; }
.login-route .icon { width:15px; height:15px; }
.login-copy p { margin:15px 0 21px; }
.login-change { display:block; width:fit-content; color:var(--soft); font-size:14px; margin-top:15px; text-decoration:underline; text-underline-offset:3px; }
.entry-header .brand-mark { width:35px;height:35px;font-size:23px;border-radius:11px; }
.entry-header .brand-name { font-size:25px; }
.entry-nav-link { display:none; }
.entry-hero h1 { font-size:clamp(40px,10.6vw,51px); }
.entry-routes h2 { font-size:clamp(28px,6.5vw,32px); }
.route-copy span { font-size:13px; }

.login-note { display:block; max-width:32ch; margin-top:15px; color:var(--muted); font-size:13px; line-height:1.5; }
.hero-actions, .setup-actions { display:flex; gap:17px; align-items:center; flex-wrap:wrap; }
.hero-text-link { display:inline-flex; align-items:center; min-height:44px; font-size:14px; color:#f4e9da; text-decoration:underline; text-underline-offset:4px; }
.setup-panel { display:grid; width:100%; margin:8px auto 42px; overflow:hidden; border:1px solid #403c40; background:var(--panel); grid-template-columns:minmax(0,1fr); border-radius:16px; }
.setup-intro { position:relative; isolation:isolate; display:flex; align-items:flex-end; padding:21px 21px 17px; background:#292820; border-bottom:1px solid #403e37; }
.setup-intro h1 { letter-spacing:-.045em; line-height:.99; font-size:clamp(34px,8.5vw,41px); }
.setup-intro h1 em { color:#efab94; font-weight:400; display:inline; }
.setup-intro p { color:#e1d9cc; margin-top:6px; font-size:14px; max-width:32ch; }
.setup-form { display:grid; align-content:center; padding:22px 16px; gap:24px; }
.setup-form [hidden] { display:none !important; }
.setup-group { min-width:0; display:block; }
.setup-question, .setup-group legend { display:block; margin-bottom:10px; color:var(--text); font:400 23px/1.15 var(--serif); letter-spacing:-.025em; }
#setup-gear { min-height:175px; }
.personal-group { border-top:1px solid var(--border); }
.personal-group legend { padding-right:10px; }
.optional-label { display:inline; margin-left:4px; font:400 13px/1.5 var(--sans); letter-spacing:normal; color:var(--muted); }
.gear-loading, .gear-scope { color:var(--muted); font-size:14px; }
.gear-scope { margin-bottom:6px; }
#setup-goal::placeholder { color:#aca9b2; opacity:1; }
#setup-goal { display:block; width:100%; min-height:60px; resize:vertical; }
.focus-presets { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.focus-presets button { min-height:44px; padding:0 13px; color:var(--soft); border:1px solid #56515b; border-radius:99px; background:var(--raised); font-size:14px; }
.focus-presets button:hover, .focus-presets button[aria-pressed=true] { color:#ffcfb9; border-color:#d49a84; background:#392d2c; }
.setup-choice { position:relative; display:block; cursor:pointer; }
.setup-choice input { position:absolute; opacity:0; top:50%; left:50%; width:1px; height:1px; }
.setup-choice span { display:flex; align-items:center; justify-content:center; min-height:41px; padding:7px 10px; border:1px solid #45434a; border-radius:9px; background:#24242a; color:var(--soft); font-size:14px; font-weight:500; transition:background .14s,border-color .14s; }
.setup-choice:hover span { border-color:#8e776b; }
.setup-choice input:checked + span { border-color:#d49a84; color:#ffcfb9; background:#392d2c; }
.setup-choice input:focus-visible + span { outline:2px solid var(--text); outline-offset:2px; }
.setup-days .setup-choice span { min-height:44px; padding:6px 1px; font-size:13px; }
.setup-timing { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; margin-top:18px; }
.setup-timing label { display:grid; grid-template-columns:minmax(0,1fr); gap:7px; min-width:0; color:var(--soft); font-size:14px; }
.setup-timing :is(select,input), #setup-goal { min-width:0; width:100%; max-width:100%; min-height:48px; border:1px solid #5d5760; border-radius:8px; color:var(--text); background:#24242a; padding:8px 10px; font-size:16px; }
.preferences-saved { padding:12px 0; }
.setup-actions { gap:18px; }
.setup-actions .primary { min-height:44px; padding:0 17px; gap:14px; flex:1; }
.setup-secondary { display:inline-flex; align-items:center; min-height:44px; padding:6px 0; border:0; background:transparent; color:var(--soft); font-size:14px; text-decoration:underline; text-underline-offset:4px; }
.setup-secondary:hover { color:var(--text); }
.setup-hint { margin-bottom:-9px; color:var(--muted); font-size:13px; }
.setup-form .form-message { margin:0; }
@media(max-width:355px) {
  .setup-form { padding:17px 13px; }
  .setup-choice span { font-size:13px; }
  .focus-presets button { padding:0 10px; }
}

.entry-back { min-height:44px; }
