@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("fonts/figtree-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("fonts/figtree-italic-latin.woff2") format("woff2"); }

:root {
  --bg-deep: #111118; --bg: #191923; --surface: #222230; --surface-2: #2D2D3A; --surface-3: #343542;
  --pill-2: #2B2C37; --text: #fff; --text-2: #9999AC; --text-3: #7F8097; --line: #34343f;
  --accent: #F2305A; --accent-ink: #F4365F; --accent-raised: #FF6F8C;
  --cta: #B5264A; --cta-press: #9A1F3E; --cta-rim: #D8306B; --cta-disabled: #4A1827;
  --ok: #57d9a3;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-deep); color: var(--text); font: 400 16px/1.5 "Figtree", system-ui, sans-serif; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, p { margin: 0; }
.page { max-width: 980px; margin: 0 auto; padding: 32px 20px 64px; }

.intro { max-width: 640px; margin-bottom: 28px; }
.eyebrow { color: var(--text-2); font-size: 14px; font-weight: 600; }
h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.1; font-style: italic; font-weight: 800; margin: 6px 0 12px; letter-spacing: -.01em; }
.lede { color: #d4d4de; font-size: 18px; }
.lede b { color: #fff; }

.stage { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 40px; align-items: start; }
.phone { width: 390px; height: 800px; background: var(--bg); border-radius: 44px; overflow: hidden; box-shadow: 0 0 0 1px #3b3b47, 0 0 0 9px #07070b, 0 24px 60px rgb(0 0 0 / .6); position: relative; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; }

.side { display: grid; gap: 24px; }
.side h2, .compare h2, .confirm h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.counter, .block { background: var(--bg); border: 1px solid #2a2a35; border-radius: 16px; padding: 20px; }
.block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; color: #c9c9d4; }
.block b { color: #fff; }
.flow { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.flow li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 15px; }
.flow .dot { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid #4a4a58; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.flow li.now { color: #fff; font-weight: 700; }
.flow li.now .dot { border-color: var(--accent); color: var(--accent-raised); }
.flow li.done .dot { background: var(--ok); border-color: var(--ok); color: #0f2a20; }
.taps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border-top: 1px solid #2a2a35; padding-top: 14px; }
.big { display: block; font-size: 36px; line-height: 1; font-weight: 800; font-style: italic; }
.big.muted { color: var(--text-3); }
.cap { display: block; color: var(--text-2); font-size: 13px; line-height: 1.35; margin-top: 6px; }
.reset { margin-top: 16px; color: var(--accent-raised); font-weight: 600; min-height: 44px; }

.compare, .confirm { margin-top: 44px; max-width: 820px; }
.table { border: 1px solid #2a2a35; border-radius: 16px; overflow: hidden; background: var(--bg); }
.row { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 16px; padding: 14px 18px; border-top: 1px solid #2a2a35; color: #c9c9d4; font-size: 15px; line-height: 1.4; }
.row:first-child { border-top: 0; }
.row.head { color: var(--text-2); font-weight: 700; font-size: 14px; }
.row [role=rowheader] { color: var(--text-2); }
.row b { color: #fff; }
.confirm ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: #d4d4de; }
.confirm ol b { color: #fff; }
.note { margin-top: 18px; color: var(--text-2); font-size: 14px; }

/* ---------- Inside the phone ---------- */
.band { padding: 46px 16px 8px; display: flex; align-items: center; gap: 10px; flex: none; }
.band .title { flex: 1; min-width: 0; }
.band h3 { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 800; font-style: italic; }
.band small { color: var(--text-2); font-size: 13px; }
.steps { display: flex; gap: 6px; flex: none; }
.step { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: 14px; color: var(--text-2); }
.step.on { background: #fff; color: #191923; }
.step.done { background: #24493c; color: var(--ok); }
.body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 12px 112px; scrollbar-width: none; }
.body::-webkit-scrollbar { display: none; }
.notes { width: 100%; text-align: left; background: linear-gradient(90deg, #40202f, #2c2030); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; color: #e9e3ea; margin-bottom: 10px; line-height: 1.35; }
.notes b { color: #ffd98f; font-weight: 700; }
.card { background: var(--surface); border-radius: 16px; padding: 10px 12px 6px; margin-bottom: 10px; }
.card-head { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; margin-bottom: 6px; min-height: 44px; }
.tag { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #c9c9d4; background: var(--surface-3); }
.card-head .nm { flex: 1; min-width: 0; }
.card-head strong { display: block; font-size: 16.5px; line-height: 1.2; font-style: italic; font-weight: 800; }
.card-head em { display: block; font-style: normal; font-size: 12.5px; color: var(--text-2); line-height: 1.3; }
.chev { color: var(--text-3); font-size: 18px; }
.set { display: flex; align-items: center; gap: 8px; min-height: 52px; }
.hexbtn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.hex { width: 26px; height: 29px; display: grid; place-items: center; background: #fff; color: #191923; font-size: 13px; font-weight: 800; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.field { flex: 1; min-width: 0; height: 44px; border: 1px solid #4a4a58; border-radius: 9px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; background: var(--bg); text-align: left; }
.field b { font-size: 19px; font-style: italic; font-weight: 800; }
.field span { font-size: 12px; color: var(--text-2); }
.field.editing { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.set.off .hex { background: #4a4a58; color: #9a9aa8; }
.set.off .field { opacity: .4; }
.set.off .field b { text-decoration: line-through; }
.set.off .field { pointer-events: none; }
.set.logged .hex { background: var(--ok); color: #0f2a20; }
.logged-note { color: var(--ok); font-size: 14px; font-weight: 600; padding: 2px 4px 10px; }

.foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 22px; background: linear-gradient(transparent, var(--bg) 26px); z-index: 2; }
.log { width: 100%; height: 56px; border-radius: 28px; background: var(--cta); color: #fff; font-size: 18px; font-weight: 800; font-style: italic; box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), inset 0 0 0 1px var(--cta-rim), 0 4px 14px rgb(0 0 0 / .25); }
.log:active { background: var(--cta-press); }
.log[disabled] { background: var(--cta-disabled); color: #a58590; box-shadow: none; cursor: default; }
.log .n { font-weight: 600; opacity: .85; }
.log.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), inset 0 0 0 1px var(--cta-rim), 0 0 0 7px rgb(242 48 90 / .18); } }

.toast { position: absolute; left: 16px; right: 16px; bottom: 92px; z-index: 3; background: #2D2D3A; border-radius: 14px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 8px 24px rgb(0 0 0 / .45); display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 14px; height: 50px; font-weight: 600; font-size: 15px; animation: rise .22s ease-out; }
.toast button { color: var(--accent-raised); font-weight: 700; padding: 0 12px; height: 44px; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
.slide { animation: slide .26s ease-out; }
@keyframes slide { from { transform: translateX(34px); opacity: 0; } }

.pad { position: absolute; left: 0; right: 0; bottom: 0; background: #2a2a36; z-index: 4; padding: 10px 10px 18px; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgb(0 0 0 / .4); animation: rise .18s ease-out; }
.pad-top { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 8px; }
.pad-top span { color: #d4d4de; font-size: 14px; }
.pad-top button { color: var(--accent-raised); font-weight: 700; height: 40px; padding: 0 8px; }
.pad.still { animation: none; }
.body.with-pad { padding-bottom: 340px; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.keys button { height: 50px; border-radius: 10px; background: #3b3b49; font-size: 22px; font-weight: 600; }
.keys button:active { background: #55556a; }

.detail { position: absolute; inset: 0; background: rgb(8 8 12 / .6); z-index: 5; display: flex; align-items: flex-end; }
.detail > div { width: 100%; background: var(--surface); border-radius: 20px 20px 0 0; padding: 20px 18px 26px; animation: rise .18s ease-out; }
.detail h4 { margin: 0 0 6px; font-size: 21px; font-style: italic; font-weight: 800; }
.detail p { color: #c9c9d4; font-size: 14.5px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips span { padding: 8px 13px; border-radius: 20px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.detail button { width: 100%; height: 48px; border-radius: 12px; background: var(--surface-3); font-weight: 700; }

.finish { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 28px; gap: 8px; }
.finish h3 { margin: 0; font-size: 30px; line-height: 1.1; font-style: italic; font-weight: 800; }
.finish p { color: #c9c9d4; }
.finish .log { margin-top: 18px; }

@media (max-width: 860px) {
  .page { padding: 22px 14px 48px; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 28px; justify-items: center; }
  .side { width: 100%; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .row.head { display: none; }
  .row [role=cell]:nth-child(2)::before { content: "Now: "; color: var(--text-2); }
  .row [role=cell]:nth-child(3)::before { content: "Proposed: "; color: var(--text-2); }
}
@media (max-width: 420px) {
  .phone { width: min(100%, 390px); box-shadow: 0 0 0 1px #3b3b47, 0 18px 40px rgb(0 0 0 / .5); border-radius: 30px; height: 780px; }
  .band { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
