@import url(/fonts/fonts.css);
:root {
  --sun: #ffc531; --sun2: #ffdb74; --sun3: #fff1c7;
  --navy: #16204a; --navy2: #26326a; --navy3: #3a4787;
  --cream: #fff8e8; --sand: #ece3cd; --muted: #6b6f86;
  --tomato: #ff5a36; --tomato-d: #c63b1c; --mint: #2bb38a;
  --r-s: 12px; --r: 18px; --r-l: 28px;
  /* one motion language: press = fast, appear = base, sheets = slow; all ease-out */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-press: 120ms; --t-base: 220ms; --t-sheet: 320ms;
  --font-d: "Baloo 2", system-ui, sans-serif;
  --font: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body { font-family: var(--font); color: var(--navy); background: var(--cream); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: min(1168px, 100% - 40px); margin: 0 auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--navy); color: #fff; font: 800 17px/1 var(--font);
  padding: 17px 26px; border-radius: var(--r); box-shadow: 0 5px 0 #0a1030; text-decoration: none; transition: transform var(--t-press) var(--ease), box-shadow var(--t-press) var(--ease), opacity var(--t-base) var(--ease);
  -webkit-tap-highlight-color: transparent; user-select: none; min-height: 52px; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #0a1030; }
.btn.light { background: #fff; color: var(--navy); box-shadow: 0 5px 0 rgba(22, 32, 74, .22); }
.btn.light:active { box-shadow: 0 1px 0 rgba(22, 32, 74, .22); }
.btn.tom { background: var(--tomato); box-shadow: 0 5px 0 var(--tomato-d); }
.btn.tom:active { box-shadow: 0 1px 0 var(--tomato-d); }
.btn.sun { background: var(--sun); color: var(--navy); box-shadow: 0 5px 0 #c99412; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font: 800 24px/1 var(--font-d); text-decoration: none; white-space: nowrap; }
.logo i { width: 36px; height: 36px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; flex: none; }
.logo i::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px var(--navy), 0 0 0 6px var(--sun); }
.nav ul { display: flex; gap: 28px; list-style: none; font-weight: 700; font-size: 15px; }
.nav ul a { text-decoration: none; }
@media (max-width: 860px) { .nav ul { display: none; } }

/* hero (home) */
.sunbg { background: var(--sun); }
.hero { display: grid; grid-template-columns: 1fr 1.02fr; gap: 30px; align-items: end; padding-top: 24px; }
.pill { display: inline-flex; gap: 8px; align-items: center; background: var(--navy); color: var(--sun); font: 800 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; }
h1 { font: 800 clamp(48px, 7vw, 80px)/.95 var(--font-d); letter-spacing: -.02em; margin-top: 18px; }
.lead { font-size: 19px; line-height: 1.55; margin: 20px 0 28px; max-width: 520px; font-weight: 500; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.note { font-size: 14px; font-weight: 700; margin: 16px 0 64px; opacity: .75; }
.box { position: relative; height: 600px; }
.speaker { position: absolute; right: 0; bottom: 0; width: 440px; height: 520px; background: var(--navy); border-radius: 60px 60px 0 0; padding: 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-content: start; }
.k { aspect-ratio: 1; border-radius: 50%; background: var(--navy2); display: grid; place-items: center; font: 800 22px var(--font-d); color: #8c97c9; position: relative; }
.k.f { background: var(--cream); color: var(--navy); }
.k.f::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--tomato); border: 3px solid var(--navy); }
.k.o { background: var(--sun); color: var(--navy); box-shadow: 0 0 0 6px var(--tomato); }
.photo { position: absolute; left: -10px; top: 120px; width: 170px; height: 220px; border-radius: 30px; overflow: hidden; transform: rotate(-5deg); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); border: 6px solid #fff; z-index: 2; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.bubble { position: absolute; left: -30px; top: 380px; z-index: 3; background: #fff; border-radius: 22px 22px 22px 6px; padding: 14px 18px; display: flex; gap: 12px; align-items: center; font-weight: 800; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .45); }
.bubble small { font-weight: 700; opacity: .6; }
.play { width: 40px; height: 40px; border-radius: 50%; background: var(--tomato); display: grid; place-items: center; flex: none; }
.play::after { content: ""; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.play.pause::after { border: 0; width: 12px; height: 14px; margin: 0; background: linear-gradient(90deg, #fff 0 4px, transparent 4px 8px, #fff 8px); }
.wave { display: flex; gap: 3px; align-items: center; height: 26px; }
.wave i { width: 4px; background: var(--navy); border-radius: 3px; display: block; }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .box { height: 470px; }
  .speaker { left: 50%; transform: translateX(-50%); width: min(440px, 100%); height: 420px; padding: 24px; gap: 10px; }
  .photo { left: 8px; top: 0; width: 120px; height: 150px; }
  .bubble { left: 12px; top: 120px; }
}

/* sections */
.band { background: var(--navy); color: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 50px 0 56px; }
.steps h3 { font: 800 28px/1.1 var(--font-d); color: var(--sun); margin: 12px 0 8px; }
.steps p { opacity: .86; line-height: 1.55; }
.dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 800 22px var(--font-d); background: var(--sun); color: var(--navy); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 26px; } }
.sec { padding: 84px 0; }
.sec h2 { font: 800 clamp(34px, 4.6vw, 52px)/1 var(--font-d); letter-spacing: -.01em; }
.sec .sub { font-size: 18px; max-width: 620px; margin-top: 14px; color: #3f4563; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card { background: #fff; border-radius: var(--r-l); padding: 26px; }
.card h3 { font: 800 24px/1.1 var(--font-d); margin: 14px 0 6px; }
.card p { color: #4a5070; }
.ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font: 800 24px var(--font-d); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.keep { background: var(--navy); color: var(--cream); border-radius: 40px; padding: 56px; }
.keep h2 span { color: var(--sun); }
.pages { display: flex; gap: 16px; justify-content: center; }
.pg { width: 170px; background: var(--cream); color: var(--navy); border-radius: 4px 14px 14px 4px; overflow: hidden; box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .6); }
.pg:nth-child(2) { transform: translateY(24px) rotate(3deg); }
.pg img { width: 100%; height: 120px; object-fit: cover; }
.pg p { padding: 10px 12px 14px; font-weight: 700; font-size: 14px; line-height: 1.3; }
.faq { display: grid; gap: 12px; margin-top: 32px; max-width: 820px; }
.faq details { background: #fff; border-radius: var(--r); padding: 18px 22px; }
.faq summary { font: 800 20px/1.25 var(--font-d); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; transition: transform var(--t-base) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 10px; color: #4a5070; }
footer { background: var(--navy); color: var(--cream); padding: 48px 0 60px; margin-top: 0; }
footer .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer a { text-decoration: none; opacity: .85; display: block; margin: 6px 0; }
footer small { opacity: .6; display: block; margin-top: 30px; }

/* prose pages */
.prose { max-width: 760px; padding: 40px 0 90px; }
.prose h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 18px; }
.prose h2 { font: 800 28px/1.15 var(--font-d); margin: 36px 0 10px; }
.prose p, .prose li { font-size: 17px; color: #353b5a; margin: 10px 0; }
.prose ol, .prose ul { padding-left: 22px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; background: #fff; border-radius: 12px; overflow: hidden; }
.prose td, .prose th { padding: 10px 12px; border-bottom: 1px solid var(--sand); text-align: left; vertical-align: top; }
.prose th { background: var(--sun3); }

/* ---------- app (calendar page) ---------- */
.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; position: relative; padding-bottom: 130px; }
.hd { background: var(--sun); padding: 18px 20px 20px; border-radius: 0 0 30px 30px; }
.hd .top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 15px; min-height: 40px; }
.hd .top a, .hd .top button { text-decoration: none; padding: 8px 0; }
.hd h2 { font: 800 34px/1 var(--font-d); margin-top: 10px; }
.hd .sub { font-weight: 700; font-size: 15px; opacity: .72; margin-top: 6px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 12px; padding: 22px 20px 10px; }
@media (min-width: 520px) { .grid { grid-template-columns: repeat(6, 1fr); } }
.door { aspect-ratio: 1; border-radius: 50%; background: var(--sand); color: #8c8572; display: grid; place-items: center; font: 800 21px var(--font-d); position: relative;
  transition: transform var(--t-press) var(--ease), background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); -webkit-tap-highlight-color: transparent; }
.door:active { transform: scale(.94); }
.door.f { background: var(--navy); color: #fff; }
.door.f.new::after { content: ""; position: absolute; right: 1px; top: 1px; width: 15px; height: 15px; border-radius: 50%; background: var(--tomato); border: 3px solid var(--cream); }
.door.heard { background: var(--sun); color: var(--navy); }
.door.ready { box-shadow: 0 0 0 5px var(--tomato); animation: ready 1.8s var(--ease) infinite; }
@keyframes ready { 50% { box-shadow: 0 0 0 8px rgba(255, 90, 54, .45); } }
.door.mine { background: var(--mint); color: #fff; }
.door .who { position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); font: 700 11px/1.1 var(--font); color: var(--navy); white-space: nowrap; max-width: 120%; overflow: hidden; text-overflow: ellipsis; }
.door.lock::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(22, 32, 74, .14); }
.tray { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(536px, calc(100% - 24px)); background: var(--navy); color: #fff; border-radius: 24px; padding: 14px 16px;
  display: flex; gap: 14px; align-items: center; z-index: 20; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); animation: up var(--t-sheet) var(--ease); }
.tray b { display: block; font-size: 16px; }
.tray small { opacity: .75; font-size: 14px; }
.tray .grow { flex: 1; min-width: 0; }
@keyframes up { from { transform: translate(-50%, 24px); opacity: 0; } }
.notice { margin: 16px 20px 0; background: #fff; border-radius: var(--r); padding: 16px; display: flex; gap: 12px; align-items: center; animation: fade var(--t-base) var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.notice b { display: block; }
.notice small { color: var(--muted); font-size: 14px; }

/* door view */
.big { margin: 30px auto 12px; width: 210px; height: 210px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; position: relative;
  box-shadow: 0 0 0 14px var(--sun2), 0 0 0 28px rgba(255, 197, 49, .35); transition: transform var(--t-press) var(--ease); }
.big:active { transform: scale(.96); }
.big::after { content: ""; border-left: 56px solid var(--sun); border-top: 34px solid transparent; border-bottom: 34px solid transparent; margin-left: 14px; }
.big.playing::after { border: 0; width: 46px; height: 56px; margin: 0; background: linear-gradient(90deg, var(--sun) 0 17px, transparent 17px 29px, var(--sun) 29px); }
.big .face { position: absolute; left: -6px; top: -6px; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 5px solid var(--cream); background: var(--tomato); display: grid; place-items: center; font: 800 34px var(--font-d); color: #fff; }
.big .face img { width: 100%; height: 100%; object-fit: cover; }
.big svg { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); transform: rotate(-90deg); pointer-events: none; }
.big svg circle { fill: none; stroke: var(--tomato); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 120ms linear, opacity var(--t-base) var(--ease); opacity: 0; }
.big.playing svg circle { opacity: 1; }
.c { text-align: center; padding: 0 20px; }
.c h3 { font: 800 28px/1.1 var(--font-d); }
.c p { font-weight: 600; color: var(--muted); }
.msg { margin: 16px 20px 0; background: #fff; border-radius: var(--r); padding: 16px 18px; font-size: 18px; line-height: 1.45; font-weight: 500; }
.pic { margin: 16px 20px 0; border-radius: var(--r); overflow: hidden; }
.act { margin: 14px 20px; background: #fff; border-radius: 20px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.act .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--mint); flex: none; color: #fff; font-size: 22px; }
.act small { font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.act b { display: block; line-height: 1.35; }
.reply { display: grid; gap: 10px; margin: 0 20px; }
.locked { text-align: center; padding: 60px 30px; }
.locked .big { box-shadow: 0 0 0 14px var(--sand); background: var(--sand); }
.locked .big::after { content: none; }
.locked .big span { font: 800 64px var(--font-d); color: #a59e89; }

/* sheet */
.scrim { position: fixed; inset: 0; background: rgba(16, 20, 42, .45); z-index: 40; opacity: 0; transition: opacity var(--t-sheet) var(--ease); }
.scrim.on { opacity: 1; }
.sheet { position: fixed; left: 50%; bottom: 0; width: min(560px, 100%); max-height: 92dvh; overflow: auto; background: var(--cream); z-index: 41; border-radius: 30px 30px 0 0;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 100%); transition: transform var(--t-sheet) var(--ease); overscroll-behavior: contain; }
.sheet.on { transform: translate(-50%, 0); }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--sand); margin: 0 auto 14px; }
.sheet h3 { font: 800 28px/1.05 var(--font-d); }
.sheet .lead2 { color: var(--muted); font-weight: 600; margin: 6px 0 16px; }
.field { display: block; margin: 14px 0; }
.field > span { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.input { width: 100%; background: #fff; border: 2px solid var(--sand); border-radius: 14px; padding: 14px 16px; font-size: 17px; transition: border-color var(--t-base) var(--ease); }
.input:focus { outline: 0; border-color: var(--navy); }
textarea.input { min-height: 96px; resize: vertical; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--sand); padding: 5px; border-radius: 16px; }
.seg button { padding: 12px 8px; border-radius: 12px; font-weight: 800; line-height: 1.2; transition: background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.seg button small { display: block; font-weight: 600; font-size: 12px; opacity: .7; }
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 0 rgba(22, 32, 74, .15); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #fff; border: 2px solid var(--sand); border-radius: 14px; padding: 10px 12px; font-weight: 600; font-size: 14px; text-align: left; line-height: 1.3; transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease); }
.chip[aria-pressed="true"] { border-color: var(--navy); background: var(--sun3); }
.rec { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0 6px; }
.mic { width: 108px; height: 108px; border-radius: 50%; background: var(--tomato); display: grid; place-items: center; box-shadow: 0 6px 0 var(--tomato-d); transition: transform var(--t-press) var(--ease), box-shadow var(--t-press) var(--ease); position: relative; }
.mic:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--tomato-d); }
.mic svg { width: 40px; height: 40px; fill: #fff; }
.mic.on { background: var(--navy); box-shadow: 0 6px 0 #0a1030; }
.mic.on::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 4px solid var(--tomato); transform: scale(var(--lvl, 1)); transition: transform 90ms linear; }
.mic.on svg { display: none; }
.mic.on::after { content: ""; width: 30px; height: 30px; border-radius: 7px; background: #fff; }
.timer { font: 800 22px var(--font-d); font-variant-numeric: tabular-nums; }
.hint { color: var(--muted); font-weight: 600; font-size: 14px; text-align: center; }
.take { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 10px 12px; width: 100%; }
.take .grow { flex: 1; font-weight: 700; }
.thumb { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.err { color: var(--tomato-d); font-weight: 700; font-size: 14px; min-height: 20px; margin-top: 8px; }
.ok { text-align: center; padding: 10px 0; }
.ok .big { width: 140px; height: 140px; box-shadow: 0 0 0 12px var(--sun2); background: var(--mint); }
.ok .big::after { border: 0; width: 46px; height: 24px; margin: -10px 0 0; border-left: 8px solid #fff; border-bottom: 8px solid #fff; transform: rotate(-45deg); background: none; }
.sharebox { display: grid; gap: 10px; margin-top: 8px; }
.sharebox .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.codebox { background: #fff; border: 2px dashed var(--sand); border-radius: 16px; padding: 14px; font-size: 15px; }
.codebox code { font: 800 18px var(--font-d); letter-spacing: .06em; word-break: break-all; }
.toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; z-index: 60; opacity: 0;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); pointer-events: none; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.skel { height: 300px; margin: 22px 20px; border-radius: 24px; background: linear-gradient(90deg, var(--sand), #f6efdc, var(--sand)); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.swap { animation: fade var(--t-base) var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
