/* Layout concept: a calm editorial page; each feature is a text column beside a phone that plays a short loop. */
:root {
  --bg: #FBF5F7;
  --band: #F3E8ED;
  --surface: #FFFFFF;
  --ink: #2A1820;
  --muted: #655059;
  --line: #E8DAE0;
  --accent: #B02A55;
  --accent-ink: #FFFFFF;
  --soft: #F9E3EA;
  --mark: rgba(246, 211, 107, 0.85);
  --idea: #C23B32;
  --maybe: #B87E00;
  --definite: #2F8450;
  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Figtree', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --font-jp: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1317; --band: #211820; --surface: #261B21; --ink: #F8EEF2; --muted: #C2AEB7;
    --line: #43313A; --accent: #F18AAA; --accent-ink: #3A0D1E; --soft: #3D1B28; --mark: rgba(150, 120, 20, 0.7);
    --idea: #EE7B72; --maybe: #E8B93A; --definite: #5CC186; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-head { padding-block: 18px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand b { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.brand span { font-family: var(--font-jp); font-size: 0.9rem; color: var(--muted); }
nav.main { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: 0.98rem; }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 500; }
nav.main a:hover { color: var(--accent); }
nav.main a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Type */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 34ch; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
mark.hl { background: linear-gradient(transparent 52%, var(--mark) 52%, var(--mark) 92%, transparent 92%); color: inherit; padding-inline: 0.06em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 1rem var(--font-body); text-decoration: none; border: 2px solid var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:hover { filter: brightness(1.06); }
.pill-soon { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 700; }
.pill-soon small { font-weight: 500; opacity: 0.8; }

/* Hero */
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(48px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.fine { font-size: 0.9rem; color: var(--muted); }

/* Feature sections */
.feature { padding-block: clamp(48px, 8vw, 104px); }
.feature.alt { background: var(--band); }
.feature .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.feature.flip .copy { order: 2; }
.copy { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.copy p { max-width: 46ch; color: var(--muted); }
.copy ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 46ch; }
.copy li { padding-left: 26px; position: relative; }
.copy li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 12px; height: 3px; border-radius: 2px; background: var(--accent); }
.stage { display: flex; justify-content: center; min-width: 0; }
.stage > div { width: 340px; max-width: 100%; }
.note { font-size: 0.88rem; color: var(--muted); text-align: center; margin-top: 14px; max-width: 30ch; margin-inline: auto; }

/* Quick list */
.quick { padding-block: clamp(40px, 6vw, 72px); border-block: 1px solid var(--line); }
.quick .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.quick h3 { margin-bottom: 6px; }
.quick p { color: var(--muted); }
.holiday-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.holiday-cloud span { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 14px; font-size: 0.95rem; }

/* Privacy teaser, CTA */
.trust { padding-block: clamp(48px, 8vw, 96px); }
.trust .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.trust dl { margin: 0; display: grid; gap: 18px; }
.trust dt { font-weight: 700; }
.trust dd { margin: 2px 0 0; color: var(--muted); }
.cta { padding-block: clamp(56px, 9vw, 112px); background: var(--accent); color: var(--accent-ink); text-align: center; }
.cta .wrap { display: grid; gap: 22px; justify-items: center; }
.cta h2 { max-width: 16ch; }
.cta .fine { color: inherit; opacity: 0.85; }
.cta .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.cta .pill-soon { background: var(--accent-ink); color: var(--accent); }

/* Footer */
.site-foot { padding-block: 36px 48px; font-size: 0.95rem; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--ink); }

/* Document pages (privacy, support) */
.doc { padding-block: clamp(24px, 5vw, 56px) clamp(56px, 8vw, 104px); }
.doc .wrap { max-width: 760px; display: grid; gap: 14px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 4px; }
.doc h2 { font-size: 1.55rem; margin-top: 30px; }
.doc h3 { margin-top: 12px; }
.doc p, .doc li { color: var(--ink); max-width: 68ch; }
.doc ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; }
.doc .meta { color: var(--muted); font-size: 0.95rem; }
.doc .summary { background: var(--soft); border-radius: 18px; padding: 20px 22px; display: grid; gap: 8px; }
.doc .summary h2 { margin: 0 0 4px; font-size: 1.2rem; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.95rem; }
.contact-card { border: 2px solid var(--ink); border-radius: 20px; padding: 22px; display: grid; gap: 8px; background: var(--surface); }
.contact-card b { font-family: var(--font-display); font-size: 1.3rem; }
.contact-card .email { font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
details { border-top: 1px solid var(--line); padding-block: 14px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.5rem; color: var(--accent); line-height: 1; }
details[open] summary::after { content: '–'; }
details p, details ul { margin-top: 10px; color: var(--muted); }

/* ---------- Phone and in-phone app styling ---------- */
.phone {
  --a-bg: #F8F2F4; --a-surface: #FFFFFF; --a-ink: #2A1820; --a-muted: #6F5A63; --a-line: #E8DAE0;
  --a-accent: #B02A55; --a-accent-ink: #FFFFFF; --a-soft: #F9E3EA; --a-chip: #EFE5E9; --a-mark: rgba(246, 211, 107, 0.8);
  --a-idea: #C23B32; --a-maybe: #B87E00; --a-definite: #2F8450;
  width: 100%; aspect-ratio: 9 / 18.6; border-radius: 46px; padding: 10px; background: #1B1418;
  box-shadow: 0 30px 60px -28px rgba(42, 24, 32, 0.55), 0 0 0 1.5px #3b2d34 inset; position: relative; flex: none;
}
.phone::before { content: ''; position: absolute; top: 19px; left: 50%; width: 86px; height: 24px; margin-left: -43px; background: #0c080a; border-radius: 14px; z-index: 5; }
.screen {
  height: 100%; border-radius: 37px; overflow: hidden; background: var(--a-bg); color: var(--a-ink);
  display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; position: relative;
  transition: background-color 0.7s ease, color 0.7s ease; font-family: var(--font-body);
}
.status { display: flex; justify-content: space-between; padding: 17px 24px 6px; font-weight: 700; font-size: 12px; }
.app { padding: 10px 16px 16px; display: grid; gap: 10px; align-content: start; flex: 1; min-height: 0; position: relative; }
.app h4 { font-family: var(--font-display); font-weight: 750; font-size: 21px; letter-spacing: -0.02em; margin: 2px 0 0; line-height: 1.1; }
.sub { color: var(--a-muted); font-size: 12px; }
.card { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 14px; padding: 11px 12px; transition: background-color 0.7s ease, border-color 0.7s ease; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--a-chip); color: var(--a-ink); border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 600; transition: background-color 0.5s ease, color 0.5s ease; }
.chip.on-chip { background: var(--a-accent); color: var(--a-accent-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-app { background: var(--a-accent); color: var(--a-accent-ink); text-align: center; border-radius: 12px; padding: 10px; font-weight: 700; transition: transform 0.25s ease, background-color 0.7s ease, color 0.7s ease; }
.btn-app.pressed { transform: scale(0.96); }
.field { background: var(--a-surface); border: 1.5px solid var(--a-line); border-radius: 12px; padding: 10px 12px; min-height: 64px; position: relative; }
.field.focus { border-color: var(--a-accent); }
.typed::after { content: ''; display: inline-block; width: 1.5px; height: 1em; background: var(--a-accent); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
.typed.done::after { display: none; }
.label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--a-muted); }
.hl { background: linear-gradient(transparent 55%, var(--a-mark) 55%); }
.tabbar { margin-top: auto; display: flex; justify-content: space-around; border-top: 1px solid var(--a-line); padding: 9px 8px 16px; color: var(--a-muted); font-size: 11px; background: var(--a-surface); transition: background-color 0.7s ease; }
.tabbar b { color: var(--a-accent); }
.toast { position: absolute; left: 16px; right: 16px; bottom: 54px; background: var(--a-ink); color: var(--a-bg); border-radius: 12px; padding: 10px 12px; font-weight: 600; text-align: center; }

/* Stage badges: three states stacked in one grid cell */
.stack { display: grid; }
.stack > * { grid-area: 1 / 1; justify-self: start; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; color: #fff; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: 0.9; }
.badge.idea { background: var(--a-idea); } .badge.maybe { background: var(--a-maybe); } .badge.definite { background: var(--a-definite); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--a-chip); border-radius: 12px; padding: 3px; gap: 3px; }
.seg span { text-align: center; padding: 6px 2px; border-radius: 9px; font-weight: 700; font-size: 11.5px; color: var(--a-muted); transition: background-color 0.35s ease, color 0.35s ease; }
.demo[data-n="0"] .seg .s-idea, .demo[data-n="1"] .seg .s-maybe, .demo[data-n="2"] .seg .s-definite, .demo[data-n="3"] .seg .s-definite, .demo[data-n="4"] .seg .s-definite { color: #fff; }
.demo[data-n="0"] .seg .s-idea { background: var(--a-idea); }
.demo[data-n="1"] .seg .s-maybe { background: var(--a-maybe); }
.demo[data-n="2"] .seg .s-definite, .demo[data-n="3"] .seg .s-definite, .demo[data-n="4"] .seg .s-definite { background: var(--a-definite); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.idea { background: var(--a-idea); } .dot.maybe { background: var(--a-maybe); } .dot.definite { background: var(--a-definite); }

/* Budget bar */
.meter { height: 10px; border-radius: 6px; background: var(--a-chip); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--a-definite); border-radius: 6px; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.meter i.on { width: var(--w, 60%); }
.big { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; line-height: 1; }

/* Demo reveal system: JS adds .live; items appear when .on is set */
.demo.live [data-from], .demo.live [data-only] { opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; }
.demo.live [data-from].on, .demo.live [data-only].on { opacity: 1; transform: none; }
.demo.live .stack > [data-only] { transform: none; }
.demo.live .fade-only { transform: none; }

/* Share sheet demo */
.safari { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 14px; overflow: hidden; }
.safari .pic { height: 96px; background: linear-gradient(135deg, #e8c9a8, #c98f5c 60%, #8a5a36); position: relative; }
.safari .pic::after { content: ''; position: absolute; left: 50%; top: 18px; width: 38px; height: 54px; margin-left: -19px; border-radius: 8px 8px 18px 18px; background: #3a2a22; box-shadow: 0 10px 0 -2px #2a1d17 inset; }
.safari .meta { padding: 9px 11px; display: grid; gap: 2px; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--a-surface); border-radius: 22px 22px 0 0; padding: 14px 16px 22px; box-shadow: 0 -18px 40px -20px rgba(0,0,0,.35); border-top: 1px solid var(--a-line); display: grid; gap: 12px; }
.sheet.fade-only { transform: none; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; font-size: 10.5px; color: var(--a-muted); }
.apps .ico { width: 100%; aspect-ratio: 1; border-radius: 14px; margin-bottom: 4px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 18px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.ico.k { background: var(--a-accent); }
.ico.g1 { background: #4aa3df; } .ico.g2 { background: #6bbf59; } .ico.g3 { background: #8a8f98; }
.ico.k.pressed { transform: scale(0.9); box-shadow: 0 0 0 4px var(--a-soft); }

/* Lock screen / notifications */
.screen.lock { background: linear-gradient(170deg, #3a2631, #1b1217 70%); color: #fff; }
.lock .time { text-align: center; padding-top: 30px; }
.lock .time b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 62px; letter-spacing: -0.03em; line-height: 1; }
.lock .time span { font-size: 13px; opacity: 0.8; }
.notes { display: grid; gap: 8px; padding: 22px 12px; align-content: start; }
.note-card { background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 10px 12px; display: grid; grid-template-columns: 28px 1fr; gap: 10px; backdrop-filter: blur(10px); }
.note-card .ico { width: 28px; height: 28px; border-radius: 8px; background: #B02A55; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.note-card b { display: block; font-size: 12.5px; line-height: 1.25; }
.note-card span { font-size: 12px; opacity: 0.85; display: block; margin-top: 2px; }
.note-card small { opacity: .6; font-size: 10.5px; }

/* Skin demo */
.demo[data-n="1"] .skinned { --a-bg: #F6F3EC; --a-surface: #FFFFFF; --a-ink: #1E2A22; --a-muted: #5A675E; --a-line: #E0DACB; --a-accent: #B3202A; --a-accent-ink: #FFFFFF; --a-soft: #F7E1E1; --a-chip: #ECE8DC; }
.demo[data-n="2"] .skinned { --a-bg: #F1F5FA; --a-surface: #FFFFFF; --a-ink: #10213A; --a-muted: #52657F; --a-line: #D9E2EE; --a-accent: #1F4FA3; --a-accent-ink: #FFFFFF; --a-soft: #DFE9F8; --a-chip: #E6ECF4; }
.demo[data-n="3"] .skinned { --a-bg: #FFF6EA; --a-surface: #FFFFFF; --a-ink: #2D1A12; --a-muted: #76563F; --a-line: #F0DCC4; --a-accent: #B03F08; --a-accent-ink: #FFFFFF; --a-soft: #FCE3CB; --a-chip: #F8E9D6; }
.demo[data-n="4"] .skinned { --a-bg: #FFF5F0; --a-surface: #FFFFFF; --a-ink: #2B1010; --a-muted: #764C4C; --a-line: #F1D9D0; --a-accent: #BE1728; --a-accent-ink: #FFFFFF; --a-soft: #FFE3D6; --a-chip: #F8E7DE; }
.motif { position: absolute; right: 16px; top: 8px; font-size: 24px; line-height: 1; }
.motif span { position: absolute; right: 0; top: 0; opacity: 0; transition: opacity 0.5s ease; }
.demo[data-n="0"] .motif .m0, .demo[data-n="1"] .motif .m1, .demo[data-n="2"] .motif .m2, .demo[data-n="3"] .motif .m3, .demo[data-n="4"] .motif .m4 { opacity: 1; }
.skin-name { font-weight: 700; color: var(--a-accent); transition: color .7s ease; }
.skin-name span { display: none; }
.demo[data-n="0"] .skin-name .n0, .demo[data-n="1"] .skin-name .n1, .demo[data-n="2"] .skin-name .n2, .demo[data-n="3"] .skin-name .n3, .demo[data-n="4"] .skin-name .n4 { display: inline; }
.event { display: flex; align-items: center; gap: 10px; }
.event .date { width: 44px; text-align: center; background: var(--a-soft); color: var(--a-accent); border-radius: 10px; padding: 4px 0; font-weight: 800; line-height: 1.1; transition: background-color .7s ease, color .7s ease; }
.event .date small { display: block; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }
.event .date em { font-style: normal; font-size: 17px; }

@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 860px) {
  .hero .wrap, .feature .wrap, .trust .wrap { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .copy { order: 0; }
  .quick .wrap { grid-template-columns: minmax(0, 1fr); }
  .lede { max-width: 40ch; }
  .hero .stage { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo.live [data-from], .demo.live [data-only] { transition: none; }
  .typed::after { animation: none; }
}

.demo.ready:not(.live) [data-only]:not(.on) { display: none; }
.demo.live [data-only]:not(.on), .demo.live [data-from]:not(.on) { pointer-events: none; }