* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; overscroll-behavior: none; background: #1a1c14; color: var(--fg); font-family: var(--font-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body { height: 100%; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }

.stage { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 0%, rgba(227,218,204,0.08), transparent 60%), #1a1c14; }
.phone { position: relative; width: 100%; height: 100vh; height: 100dvh; max-width: 100%; background: var(--uwp-beige); overflow: hidden; isolation: isolate; }
@media (min-width: 640px) {
  .stage { padding: 32px; }
  .phone { width: 390px; height: 844px; max-height: calc(100dvh - 64px); border-radius: 52px; box-shadow: 0 0 0 10px #111, 0 0 0 11px #2a2c20, 0 40px 80px -20px rgba(0,0,0,0.6), 0 20px 40px -10px rgba(0,0,0,0.4); }
  .phone::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 110px; height: 30px; background: #000; border-radius: 18px; z-index: 999; pointer-events: none; }
}
.phone-inner { position: absolute; inset: 0; overflow: hidden; }

.statusbar { display: none; height: 44px; padding: 14px 32px 0; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: var(--uwp-dark-olive); position: relative; z-index: 2; letter-spacing: 0.2px; }
.statusbar .right { display: inline-flex; gap: 6px; align-items: center; }
@media (min-width: 640px) { .statusbar { display: flex; } }

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.app { background: var(--uwp-beige); color: var(--uwp-dark-olive); }

.app-header { position: relative; padding: 10px 20px 12px; display: flex; align-items: center; justify-content: space-between; background: var(--uwp-dark-olive); z-index: 2; flex-shrink: 0; }
.app-header .mark { display: inline-flex; align-items: center; height: 42px; }
.app-header .mark img { height: 42px; width: auto; }
.app-header .hdr-menu { color: var(--uwp-beige); background: rgba(227,218,204,0.12); }
.app-header .hdr-menu:hover { background: rgba(227,218,204,0.2); }

.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(42,44,32,0.06); color: var(--uwp-dark-olive); transition: background var(--motion-fast); }
.icon-btn:hover { background: rgba(42,44,32,0.12); }

.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 22px 86px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(42,44,32,0.2) transparent; }
.scroll::-webkit-scrollbar { width: 4px; }
.scroll::-webkit-scrollbar-thumb { background: rgba(42,44,32,0.2); border-radius: 2px; }
.end-space { height: 0; }

/* HERO — centered progress ring above, eyebrow + italic headline below */
.pring-wrap { display: flex; justify-content: center; padding: 22px 0 6px; }
.hero-row { padding: 4px 0 22px; }
.hero-text .eyebrow { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--fg-muted); font-weight: 500; display: block; margin-bottom: 8px; text-align: center; }
.hero-text h1 { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: 48px; line-height: 1.1; color: var(--uwp-dark-olive); margin: 0; letter-spacing: -0.8px; cursor: pointer; text-align: center; }
.hero-text h1 em { font-weight: 900; font-style: italic; display: block; }

.pring-sm { position: relative; flex-shrink: 0; }
.pring-sm svg { transform: rotate(-90deg); width: 100%; height: 100%; overflow: visible; display: block; }
.pring-sm .track { stroke: rgba(42,44,32,0.14); fill: none; }
.pring-sm .fill { stroke: var(--uwp-dark-olive); fill: none; stroke-linecap: round; transition: stroke-dashoffset var(--motion-slow); }
.pring-sm .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--uwp-dark-olive); }
.pring-sm .num .pct { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 30px; line-height: 1; letter-spacing: -0.6px; }
.pring-sm .num .completed { font-family: var(--font-body); font-weight: 500; font-size: 9px; line-height: 1; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.55; }

.date-card { position: relative; background: var(--uwp-dark-olive); color: var(--uwp-off-white); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; align-items: center; gap: 14px; margin: 0 0 22px; overflow: hidden; }
.date-card::after { content: ""; position: absolute; inset: 0; background: url('/assets/imagery/booking-bg-800.webp') center/cover; opacity: 0.15; pointer-events: none; mix-blend-mode: screen; }
.date-card > * { position: relative; z-index: 1; }
.date-card .icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(227,218,204,0.12); display: grid; place-items: center; flex-shrink: 0; color: var(--uwp-beige); }
.date-card .meta { flex: 1; min-width: 0; }
.date-card .label { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--uwp-beige); opacity: 0.85; display: block; margin-bottom: 4px; }
.date-card .value { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 22px; line-height: 1.1; color: var(--uwp-off-white); margin: 0; }
.date-card .value em { font-weight: 900; }
.date-card .value .sub { display: block; font-family: var(--font-body); font-style: normal; font-weight: 400; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.75; margin-top: 4px; }
.date-card .chev-r { color: var(--uwp-beige); opacity: 0.6; flex-shrink: 0; }

.phase { background: rgba(255,255,255,0.55); border-radius: var(--radius-lg); margin-bottom: 14px; overflow: hidden; transition: background var(--motion-fast); scroll-margin-top: 12px; }
.phase.done { background: rgba(42,44,32,0.06); }
.phase-head { width: 100%; text-align: left; padding: 18px 20px; display: flex; align-items: center; gap: 14px; color: var(--fg); }
.phase-head .phase-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(42,44,32,0.08); font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 15px; color: var(--fg); flex-shrink: 0; transition: background var(--motion-fast); }
.phase.done .phase-num { background: var(--uwp-dark-olive); color: var(--uwp-beige); }
.phase-head .phase-num .check-glyph { display: none; width: 16px; height: 16px; }
.phase.done .phase-num .num { display: none; }
.phase.done .phase-num .check-glyph { display: block; }
.phase-head .phase-title { flex: 1; min-width: 0; }
.phase-head h3 { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: 19px; color: var(--fg); margin: 0; line-height: 1.2; letter-spacing: -0.2px; }
.phase-head h3 em { font-weight: 900; }
.phase-head .count { display: block; margin-top: 3px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fg-subtle); font-weight: 400; }
.phase-head .chev { transition: transform var(--motion-med); color: var(--fg-subtle); flex-shrink: 0; }
.phase.open .phase-head .chev { transform: rotate(180deg); }
.phase-body { max-height: 0; overflow: hidden; transition: max-height var(--motion-med); }
.phase.open .phase-body { max-height: 1600px; }
.phase-body .inner { padding: 4px 20px 18px; }
.phase-sub { font-size: 13.5px; line-height: 1.55; color: var(--fg-muted); font-style: italic; font-family: var(--font-body); font-weight: 300; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(42,44,32,0.08); }

.task { width: 100%; display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; text-align: left; transition: opacity var(--motion-fast); border-bottom: 1px solid rgba(42,44,32,0.06); }
.task:last-child { border-bottom: 0; }
.task .box { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(42,44,32,0.35); flex-shrink: 0; margin-top: 1px; display: grid; place-items: center; color: transparent; transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast); }
.task .box svg { width: 14px; height: 14px; transform: scale(0.6); transition: transform var(--motion-fast); }
.task.checked .box { background: var(--uwp-dark-olive); border-color: var(--uwp-dark-olive); color: var(--uwp-beige); }
.task.checked .box svg { transform: scale(1); }
.task .label { flex: 1; font-size: 15.5px; line-height: 1.45; font-weight: 400; color: var(--fg); position: relative; padding-top: 2px; transition: color var(--motion-fast); }
.task .label::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); opacity: 0.5; }
.task.checked .label { color: var(--fg-subtle); }
.task.checked .label::after { transform: scaleX(1); }

.phase-toast { margin-top: 12px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--uwp-dark-olive); color: var(--uwp-beige); display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-family: var(--font-display); font-style: italic; font-weight: 300; }
.phase-toast em { font-weight: 900; }

/* PHASE PAGE (when tab selected) */
.phase-page { padding: 10px 0 0; }
.phase-page-head { margin-bottom: 20px; }
.phase-page-head .eyebrow { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--fg-muted); font-weight: 500; display: block; margin-bottom: 10px; }
.phase-page-head h1 { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: 42px; line-height: 1.05; color: var(--uwp-dark-olive); margin: 0 0 10px; letter-spacing: -0.6px; }
.phase-page-head .phase-lede { font-size: 14.5px; line-height: 1.5; color: var(--fg-muted); font-style: italic; font-weight: 300; margin: 0 0 16px; }
.phase-progress { display: flex; align-items: center; gap: 12px; }
.phase-progress .bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(42,44,32,0.12); overflow: hidden; }
.phase-progress .bar .fill { height: 100%; background: var(--uwp-dark-olive); border-radius: 2px; transition: width var(--motion-med); }
.phase-progress span { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fg-muted); font-weight: 500; }
.phase-page-tasks { background: rgba(255,255,255,0.55); border-radius: var(--radius-lg); padding: 4px 20px; }
.phase-page-tasks .task { padding: 14px 0; }

/* TABBAR — 4 phases, glass-morphic */
.tabbar { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 72px; border-radius: 28px; display: flex; align-items: center; padding: 6px; gap: 2px; z-index: 10; background: rgba(227,218,204,0.35); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); border: 1px solid rgba(255,255,255,0.5); box-shadow: 0 14px 40px -10px rgba(42,44,32,0.3), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -1px 0 rgba(42,44,32,0.05); }
.tabbar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 40%); }
.tabbar .tab { flex: 1; height: 60px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: rgba(42,44,32,0.55); transition: color var(--motion-fast), background var(--motion-fast); position: relative; min-width: 0; padding: 0 2px; }
.tabbar .tab .num { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 15px; line-height: 1; letter-spacing: -0.3px; }
.tabbar .tab .sub { font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.tabbar .tab .lbl { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 500; }
.tabbar .tab.active { color: var(--uwp-dark-olive); background: rgba(255,255,255,0.55); box-shadow: 0 1px 3px rgba(42,44,32,0.08); }
.tabbar .tab.active .sub, .tabbar .tab.active .lbl { font-weight: 600; }
.tabbar .tab .prog { position: absolute; top: 6px; right: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--uwp-dark-olive); opacity: 0; transition: opacity var(--motion-fast); }
.tabbar .tab.done .prog { opacity: 1; }

.complete { position: absolute; inset: 0; z-index: 20; background: var(--uwp-dark-olive); color: var(--uwp-beige); display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity var(--motion-slow); }
.complete.show { opacity: 1; pointer-events: auto; }
.complete::before { content: ""; position: absolute; inset: 0; background: url('assets/imagery/hero-1.webp') center/cover; opacity: 0.3; }
.complete .inner { position: relative; margin-top: auto; padding: 40px 28px 40px; background: linear-gradient(180deg, transparent, rgba(26,28,20,0.7) 40%, rgba(26,28,20,1)); }
.complete .eyebrow { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--uwp-beige); opacity: 0.9; }
.complete h2 { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: 48px; line-height: 1; color: var(--uwp-beige); margin: 14px 0 12px; letter-spacing: -0.6px; }
.complete h2 em { font-weight: 900; }
.complete p { font-size: 15px; line-height: 1.6; color: rgba(242,241,241,0.8); margin: 0; font-weight: 300; }
.complete .close { position: absolute; top: 24px; right: 20px; width: 38px; height: 38px; border-radius: 50%; background: rgba(227,218,204,0.2); display: grid; place-items: center; color: var(--uwp-beige); z-index: 2; }

.sheet-backdrop { position: absolute; inset: 0; background: rgba(26,28,20,0); z-index: 15; pointer-events: none; transition: background var(--motion-med); }
.sheet-backdrop.show { background: rgba(26,28,20,0.55); pointer-events: auto; }
.sheet { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 16; background: rgba(227,218,204,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 26px; padding: 8px; transform: translateY(120%); transition: transform var(--motion-med), visibility 0s linear var(--motion-med); box-shadow: 0 20px 60px rgba(0,0,0,0.4); pointer-events: none; visibility: hidden; }
.sheet.show { transform: translateY(0); pointer-events: auto; visibility: visible; transition: transform var(--motion-med), visibility 0s linear 0s; }
.sheet .row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; width: 100%; text-align: left; border-radius: 18px; color: var(--fg); font-size: 15px; font-weight: 400; transition: background var(--motion-fast); }
.sheet .row:hover { background: rgba(255,255,255,0.5); }
.sheet .row .g { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: rgba(42,44,32,0.08); flex-shrink: 0; color: var(--fg); }
.sheet .row + .row { border-top: 1px solid rgba(42,44,32,0.06); }

.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 25; }
.confetti i { position: absolute; width: 8px; height: 12px; top: -20px; border-radius: 2px; animation: fall 2.4s cubic-bezier(0.2, 0.6, 0.4, 1) forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: 0; } }

.tweaks { z-index: 30; width: 280px; background: var(--uwp-dark-olive); color: var(--uwp-off-white); border-radius: 22px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); display: none; }
.tweaks.show { display: block; }
.tweaks h4 { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 22px; margin: 0 0 14px; color: var(--uwp-beige); }
.tweaks .row { margin-bottom: 12px; }
.tweaks .row:last-child { margin-bottom: 0; }
.tweaks .lbl { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: rgba(242,241,241,0.7); margin-bottom: 8px; display: block; }
.tweaks .swatches { display: flex; gap: 8px; }
.tweaks .sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform var(--motion-fast), border-color var(--motion-fast); }
.tweaks .sw.active { border-color: var(--uwp-beige); transform: scale(1.08); }
.tweaks .segs { display: flex; background: rgba(255,255,255,0.06); border-radius: 10px; padding: 3px; gap: 2px; }
.tweaks .seg { flex: 1; padding: 8px; font-size: 12px; font-weight: 500; border-radius: 8px; color: rgba(242,241,241,0.65); text-align: center; transition: background var(--motion-fast), color var(--motion-fast); }
.tweaks .seg.active { background: var(--uwp-beige); color: var(--uwp-dark-olive); }

[data-accent="blush"] .pring-sm .fill { stroke: #c19287; }
[data-accent="sage"]  .pring-sm .fill { stroke: #8a9a7b; }
[data-accent="gold"]  .pring-sm .fill { stroke: #b79968; }
[data-accent="blush"] .task.checked .box { background: #c19287; border-color: #c19287; }
[data-accent="sage"]  .task.checked .box { background: #8a9a7b; border-color: #8a9a7b; }
[data-accent="gold"]  .task.checked .box { background: #b79968; border-color: #b79968; }
