/* ================================================================ app shell
   Desktop: fixed sidebar + full-width content. Below 1024px: top bar + bottom tab bar. */
.app { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: 236px; padding: 22px 14px; display: flex; flex-direction: column; gap: 22px;
  background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(14px); border-right: 1px solid var(--line); z-index: 30; }
.side .brand { padding: 0 8px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 11px 12px; border-radius: 12px; cursor: pointer; color: var(--ink-2); font-weight: 500; font-size: .95rem; text-align: left; }
.nav-item:hover { background: var(--card-2); color: var(--ink); }
.nav-item.on { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(29, 39, 82, .25); }
@media (prefers-color-scheme: dark) { .nav-item.on { color: #0f1326; } }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 6px; }
.side-foot select, .mtop select { width: auto; max-width: 170px; padding: 7px 10px; font-size: .88rem; }
.mtop { display: none; }
.main { margin-left: 236px; padding: 26px clamp(18px, 3vw, 44px) 60px; max-width: 1760px; }
.bottom-nav { display: none; }

@media (min-width: 1400px) {
  .grid { grid-auto-flow: dense; }
  .xl-3 { grid-column: span 3; } .xl-4 { grid-column: span 4; } .xl-5 { grid-column: span 5; }
  .xl-6 { grid-column: span 6; } .xl-8 { grid-column: span 8; } .xl-12 { grid-column: span 12; }
}
.cal { max-width: 620px; }
.wish-list { display: grid; gap: 8px; }
.wish-list .wish + .wish { margin-top: 0; }
@media (min-width: 1100px) { .wish-list { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; } }

@media (max-width: 1023px) {
  .side { display: none; }
  .mtop { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 25; padding: 10px 16px;
    padding-top: calc(10px + env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .mtop .spacer { flex: 1; }
  .main { margin-left: 0; padding: 14px 16px calc(96px + env(safe-area-inset-bottom)); }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-around;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .bottom-nav .nav-item { flex: 1; flex-direction: column; gap: 3px; padding: 7px 2px; font-size: .7rem; text-align: center; align-items: center; border-radius: 12px; }
  .bottom-nav .nav-item.on { background: none; box-shadow: none; color: var(--navy); }
  .bottom-nav .nav-item.on svg { background: var(--gold-soft); border-radius: 10px; padding: 3px 12px; width: 46px; height: 28px; }
  #toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .card { padding: 16px; border-radius: 16px; }
  .grid { gap: 12px; margin-top: 12px; }
  .hero { padding: 20px 18px; border-radius: 20px; }
  .hero-stats { gap: 6px; margin-top: 14px; }
  .pill { padding: 5px 10px; font-size: .8rem; }
  .ring { width: 104px; height: 104px; } .ring > div { width: 82px; height: 82px; }
  .btn.big { padding: 13px 18px; font-size: 1rem; width: 100%; }
  .status-big .icon { width: 52px; height: 52px; font-size: 1.6rem; }
  .exam .date { width: 50px; }
  .fields { grid-template-columns: 1fr 1fr; }
  .wish { padding: 10px; }
  .brand span { font-size: 1rem; }
  /* 16px inputs stop iOS from zooming in on focus */
  input[type=text], input[type=number], input[type=date], input[type=time], select, textarea { font-size: 16px; }
}
.btn, .nav-item, .seg button, .check { -webkit-tap-highlight-color: transparent; }
.tasks li { min-height: 44px; }

/* ================================================================ landing */
.lp { --lp-pad: clamp(18px, 5vw, 72px); background: var(--bg); }
.lp-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 18px; padding: 18px var(--lp-pad); }
.lp-nav .brand { color: #fff; }
.lp-nav .spacer { flex: 1; }
.lp-link { color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 500; font-size: .95rem; }
.lp-link:hover { color: #fff; }
.lp-hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 60px);
  padding: 110px var(--lp-pad) 60px; color: #fff; overflow: hidden;
  background: radial-gradient(900px 600px at 80% 10%, rgba(243, 194, 92, .38), transparent 60%),
              radial-gradient(800px 600px at 0% 100%, rgba(110, 140, 255, .32), transparent 60%),
              linear-gradient(160deg, #141b3d 0%, #1d2752 45%, #2b3a86 100%); }
.lp-eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: .85rem; letter-spacing: .02em; color: #ffe2a0; }
.lp-hero h1 { color: #fff; font-size: clamp(2.5rem, 6.2vw, 5rem); line-height: 1.02; margin: 18px 0; letter-spacing: -.02em; }
.lp-hero h1 em { font-style: italic; color: #f3c25c; }
.lp-sub2 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: #fff; font-weight: 600; margin: -6px 0 14px; }
.lp-lede { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, .84); max-width: 54ch; margin: 0; }
.lp-invite { margin-top: 14px; color: #ffe2a0; font-weight: 600; }
.lp-cta { margin-top: 28px; }
.lp-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.lp-ghost:hover { background: rgba(255, 255, 255, .08); }
.lp-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: rgba(255, 255, 255, .72); font-size: .9rem; }
.lp-hero-art { position: relative; min-height: 520px; }
.road-art { position: absolute; inset: -60px -80px -60px -40px; width: calc(100% + 120px); height: calc(100% + 120px);
  /* fade only the left and top edges; right and bottom are clipped by the hero itself */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 28%), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 28%), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-composite: intersect; }
.road-line { animation: march 2.4s linear infinite; }
@keyframes march { to { stroke-dashoffset: -36; } }
@media (prefers-reduced-motion: reduce) { .road-line { animation: none; } }

.ph-week { display: flex; justify-content: space-between; margin-top: 6px; }
.ph-week span { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: #f1ede4; color: #8a90a8; font-size: 9px; font-weight: 700; }
.ph-week span.on { background: linear-gradient(135deg, #e3b54b, #c99a2e); color: #2a1e03; }
.ph-week span.now { outline: 2px solid #1d2752; outline-offset: 1px; }
.ph-nav { margin-top: auto; display: flex; justify-content: space-around; padding: 8px 4px 2px; border-top: 1px solid #e9e4d8; color: #8a90a8; font-size: 13px; }
.ph-nav .on { color: #1d2752; }
.phone { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: min(290px, 60%); aspect-ratio: 9 / 18.5; border-radius: 38px; padding: 10px;
  background: linear-gradient(145deg, #2a2f48, #0d1020); box-shadow: 0 40px 80px rgba(5, 8, 25, .55), inset 0 0 0 1px rgba(255, 255, 255, .08); transform: rotate(-4deg); }
.phone-screen { height: 100%; border-radius: 30px; overflow: hidden; background: #fbf9f4; color: #1a1f36; padding: 12px; display: flex; flex-direction: column; gap: 9px; font-size: 11px; }
.ph-hero { border-radius: 16px; padding: 14px 12px; color: #fff; background: radial-gradient(200px 120px at 90% 0%, rgba(227, 181, 75, .6), transparent 60%), linear-gradient(135deg, #1d2752, #2a3a85); }
.ph-hi { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.ph-sub { opacity: .8; margin-top: 2px; }
.ph-pills { display: flex; gap: 5px; margin-top: 9px; flex-wrap: wrap; }
.ph-pills span { background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 3px 8px; font-size: 10px; font-weight: 600; }
.ph-card { background: #fff; border: 1px solid #e9e4d8; border-radius: 14px; padding: 10px; box-shadow: 0 4px 14px rgba(26, 31, 54, .06); }
.ph-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.ph-live { color: #2f8f6b; font-weight: 600; font-size: 10px; }
.ph-clock { font-family: var(--serif); font-size: 30px; font-weight: 600; text-align: center; margin: 4px 0; }
.ph-bar { height: 6px; border-radius: 99px; background: #f1ede4; overflow: hidden; margin-top: 6px; }
.ph-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e3b54b, #c99a2e); border-radius: 99px; }
.ph-faint { color: #8a90a8; font-size: 10px; margin-top: 4px; }
.ph-chip { background: #fbf1d9; color: #b0841f; border-radius: 99px; padding: 1px 7px; font-weight: 700; font-size: 10px; }
.ph-ticket { border-color: #e3b54b; }

.lp-section { padding: clamp(60px, 9vw, 120px) var(--lp-pad); max-width: 1400px; margin: 0 auto; }
.lp-kicker { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.lp-h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; margin: 10px 0 0; max-width: 20ch; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 56px); margin-top: 44px; position: relative; }
.lp-steps::before { content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent 50%, var(--gold)); opacity: .35; }
.lp-step { position: relative; }
.lp-num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: #241a02;
  background: radial-gradient(circle at 30% 30%, #ffe7a8, #c99a2e); box-shadow: 0 10px 24px rgba(201, 154, 46, .35); position: relative; }
.lp-step h3 { font-size: 1.5rem; margin: 18px 0 8px; }
.lp-step p { color: var(--ink-2); margin: 0; max-width: 38ch; }

.lp-band { padding: 0 var(--lp-pad); }
.lp-band-inner { max-width: 1400px; margin: 0 auto; border-radius: 28px; padding: clamp(34px, 5vw, 64px); color: #fff; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
  background: radial-gradient(500px 300px at 100% 0%, rgba(243, 194, 92, .4), transparent 60%), linear-gradient(135deg, #1d2752, #2e3c7a); box-shadow: 0 30px 60px rgba(29, 39, 82, .25); }
.lp-quote { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.3; font-style: italic; }
.lp-stats { display: grid; gap: 18px; }
.lp-stats div { display: grid; grid-template-columns: 5.2ch 1fr; align-items: baseline; gap: 14px; border-bottom: 1px solid rgba(255, 255, 255, .15); padding-bottom: 12px; }
.lp-stats b { font-family: var(--serif); font-size: 2rem; color: #f3c25c; white-space: nowrap; }
.lp-stats span { color: rgba(255, 255, 255, .8); }

.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.lp-p { color: var(--ink-2); font-size: 1.08rem; max-width: 52ch; }
.lp-list { padding: 0; list-style: none; margin: 18px 0 0; }
.lp-list li { padding: 8px 0 8px 30px; position: relative; color: var(--ink); }
.lp-list li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.lp-parent-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: 0 30px 60px rgba(26, 31, 54, .12); transform: rotate(1.5deg); }
.lp-pc-status { display: flex; gap: 14px; align-items: center; font-size: 1.05rem; }
.lp-pc-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--good-soft); font-size: 1.6rem; flex: none; }
.lp-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 18px; }
.lp-week div { text-align: center; padding: 8px 2px; border-radius: 12px; background: var(--card-2); font-size: .75rem; }
.lp-week b { display: block; font-size: 1rem; }
.lp-week .g { background: var(--good-soft); color: var(--good); }
.lp-week .h { background: var(--gold-soft); color: var(--gold); }

.lp-final { text-align: center; padding: clamp(60px, 9vw, 120px) var(--lp-pad); }
.lp-final h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.lp-final p { color: var(--ink-2); margin: 10px 0 26px; }
.lp-foot { text-align: center; color: var(--ink-3); font-size: .85rem; padding: 26px var(--lp-pad) 40px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .lp-link { display: none; }
  .lp-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 96px; }
  .lp-hero-art { min-height: 440px; }
  .phone { left: 50%; top: auto; bottom: 0; translate: -50% 0; transform: rotate(-3deg); width: min(250px, 66%); }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold), transparent); }
  .lp-step { padding-left: 76px; }
  .lp-num { position: absolute; left: 0; top: 0; }
  .lp-step h3 { margin-top: 10px; }
  .lp-band-inner, .lp-split { grid-template-columns: 1fr; }
  .lp-parent-card { transform: none; }
  .lp-cta .btn { width: 100%; }
}
