/* Newsreader (SIL Open Font License), served from this site so no page asks another host for anything. */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.ttf") format("truetype"); font-weight: 200 800; font-style: normal; font-display: swap; }

/* Aikani website. Tokens follow DESIGN_SYSTEM.md (Option A, Light). */

:root {
  --canvas: #F9F4ED;
  --raised: #FFFCF7;
  --sunken: #F1EBE1;
  --sage: #E6EBE1;
  --forest: #1F3A32;
  --forest-pressed: #2C4B42;
  --action: #3D6052;
  --action-pressed: #33524A;
  --text-2: #4F5D54;
  --text-3: #57625A;
  --hairline: #E4DCCF;
  --control: #8C968C;
  --protected: #55664E;
  --attention: #874C10;
  --error: #A3362A;
  --accent: #A6502F;
  --kani: #F7DCC8;
  --kani-subtle: #FCEFE6;
  --kani-ink: #96452A;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shadow: 0 5px 14px rgba(41, 66, 51, 0.07);
  --gutter: 24px;
  --measure: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--forest);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a { color: var(--forest); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.2vw, 68px); line-height: 1.06; }
h2 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.12; }
h3 { font-size: 22px; line-height: 1.27; letter-spacing: 0; }
p { margin: 0; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.lede { font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 30em; }
.quiet { color: var(--text-2); }
.small { font-size: 15px; line-height: 1.4; color: var(--text-3); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--raised); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; z-index: 10; }

/* Header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em; text-decoration: none; }
.wordmark img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 1px 4px rgba(41, 66, 51, 0.16); }
.top nav { display: flex; gap: 28px; }
.top nav a { font-size: 15px; text-decoration: none; color: var(--forest); padding: 12px 0; }
.top nav a:hover { text-decoration: underline; }

/* Hero: the app's own Opening gradient, nowhere else */
.hero {
  background: linear-gradient(180deg, #C4D8C7 0%, #EFE6D4 46%, var(--canvas) 100%);
  padding: 136px 0 72px;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; }
.hero h1 { max-width: 11em; }
.hero .lede { margin-top: 20px; }
.hero .notify { margin-top: 36px; }

/* Launch notice form */
.notify { max-width: 440px; }
.notify label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.notify .row { display: flex; gap: 8px; }
.notify input {
  flex: 1; min-width: 0; height: 54px; padding: 0 16px;
  font: inherit; color: var(--forest);
  background: var(--raised); border: 1px solid var(--control); border-radius: 16px;
}
.notify input::placeholder { color: var(--text-3); }
.notify input[aria-invalid="true"] { border-color: var(--error); }
.btn {
  height: 54px; padding: 0 22px; border: 0; border-radius: 16px; cursor: pointer;
  font: 600 17px/1 var(--sans); color: var(--canvas); background: var(--action);
  white-space: nowrap;
}
.btn:hover, .btn:active { background: var(--action-pressed); }
.notify .note { margin-top: 10px; }
.notify .status { margin-top: 10px; font-size: 15px; }
.notify .status:empty { display: none; }
.notify .status[data-tone="error"] { color: var(--error); }
.notify .status[data-tone="ok"] { color: #3E6147; }

/* Sections */
.band { padding: 104px 0; }
.band + .band { padding-top: 0; }
.band .intro { max-width: 34em; }
.band .intro p { margin-top: 16px; }

/* Time back: what it is for */
.yours .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "head list" "close list"; gap: 24px 72px; align-items: start; }
.yours h2 { grid-area: head; max-width: 11em; }
.yours .list { grid-area: list; }
.yours .close { grid-area: close; font-size: 19px; color: var(--text-2); max-width: 22em; }
.yours .instead { font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }
.could { list-style: none; margin: 0; padding: 0; }
.could li { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 32px); line-height: 1.25; letter-spacing: -0.01em; padding: 16px 0; border-top: 1px solid var(--hairline); }
.could li:last-child { border-bottom: 1px solid var(--hairline); }

.reason .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 72px; align-items: center; }
.film { cursor: pointer; width: 300px; height: auto; aspect-ratio: 9 / 16; border-radius: 28px; background: var(--sage); box-shadow: 0 30px 60px rgba(41, 66, 51, 0.14), 0 6px 16px rgba(41, 66, 51, 0.08); margin-right: 14px; }
.reason p { font-size: 19px; line-height: 1.55; color: var(--text-2); margin-top: 20px; max-width: 34em; }

/* How it works */
.how .grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 72px; align-items: center; margin-top: 48px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--hairline); }
.steps li:last-child { border-bottom: 1px solid var(--hairline); }
.steps button {
  display: grid; grid-template-columns: 40px 1fr; gap: 0 8px; width: 100%;
  padding: 22px 0; text-align: left; background: none; border: 0; cursor: pointer;
  font: inherit; color: var(--text-2);
}
.steps button::before {
  content: counter(step); font-family: var(--serif); font-size: 22px; line-height: 28px; color: var(--text-3);
}
.steps .t { font-family: var(--serif); font-size: 22px; line-height: 28px; color: var(--text-2); }
.steps .d { grid-column: 2; font-size: 16px; line-height: 1.5; margin-top: 6px; max-width: 28em; }
.steps button[aria-current="step"]::before,
.steps button[aria-current="step"] .t { color: var(--forest); }
.steps button[aria-current="step"] .d { color: var(--text-2); }
.steps button:not([aria-current]) .d { color: var(--text-3); opacity: 0.75; }
.steps button:hover .t { color: var(--forest); }
.how .hint { margin-top: 20px; }
.how .stage { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.how .whose { font-size: 15px; font-weight: 500; color: var(--text-2); }

/* Kani: the one peach moment */
.kani-panel {
  background: var(--kani-subtle); border-radius: 32px; padding: 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center;
}
.kani-panel .lede { margin-top: 16px; }
.kani-panel .free { margin-top: 24px; font-size: 16px; color: var(--text-2); }
.badge { width: 56px; height: 56px; border-radius: 50%; background: var(--protected); display: grid; place-items: center; margin-bottom: 24px; }
.sees { display: grid; gap: 32px; }
.sees h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 20px; color: var(--kani-ink); }
.sees .private h3 { color: var(--text-2); }
.sees ul { list-style: none; margin: 10px 0 0; padding: 0; }
.sees li { padding: 10px 0; border-top: 1px solid rgba(150, 69, 42, 0.18); font-size: 17px; }
.sees .private li { color: var(--text-2); }

/* Quiet on purpose */
.quietly h2 { max-width: 16em; }
.quietly p { margin-top: 20px; font-size: 19px; color: var(--text-2); max-width: 34em; }

/* Details */
.details dl { margin: 40px 0 0; }
.details .item { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--hairline); }
.details .item:last-child { border-bottom: 1px solid var(--hairline); }
.details dt { font-family: var(--serif); font-size: 22px; line-height: 28px; }
.details dd { margin: 0; color: var(--text-2); max-width: 34em; }

/* What you can count on */
.vows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; margin-top: 40px; }
.vows > div { padding: 24px 0 28px; border-top: 1px solid var(--hairline); }
.vows p { margin-top: 8px; color: var(--text-2); max-width: 26em; }
.trust .more { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--hairline); }

/* Plans */
.plans .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; max-width: 860px; }
.plan { background: var(--raised); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.plan .name { font-size: 15px; font-weight: 600; color: var(--text-2); }
.plan .price { font-family: var(--serif); font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; margin-top: 10px; font-variant-numeric: lining-nums; }
.plan .per { font-size: 15px; color: var(--text-2); }
.plan .more { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: 16px; color: var(--forest); }
.plans .both { margin-top: 28px; max-width: 34em; color: var(--text-2); }
.plans .both + .both { margin-top: 10px; }

/* Questions */
.faq .list { margin-top: 32px; max-width: 760px; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--serif); font-size: 22px; line-height: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 28px; width: 9px; height: 9px;
  border-right: 1.5px solid var(--forest); border-bottom: 1.5px solid var(--forest);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 33px; }
.faq details p { padding: 0 40px 22px 0; color: var(--text-2); max-width: 36em; }

/* Closing */
.closing { background: var(--sage); padding: 96px 0; }
.closing .lede { margin-top: 14px; }
.closing .notify { margin-top: 32px; }

/* Footer */
.foot { padding: 40px 0 56px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: baseline; justify-content: space-between; }
.foot .meaning { font-size: 15px; color: var(--text-3); margin-top: 6px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot nav a { font-size: 15px; padding: 8px 0; }

/* ---------- Phone (drawn at 402 x 874, scaled) ---------- */
.phone-fit { --s: 0.78; width: calc(418px * var(--s)); height: calc(890px * var(--s)); flex: none; }
.phone {
  width: 418px; height: 890px; transform: scale(var(--s)); transform-origin: 0 0;
  border-radius: 68px; background: #1B2824; padding: 8px;
  box-shadow: 0 30px 60px rgba(41, 66, 51, 0.16), 0 6px 16px rgba(41, 66, 51, 0.10);
  font-family: var(--sans); color: var(--forest); text-align: left;
}
.screen {
  position: relative; width: 402px; height: 874px; border-radius: 60px; overflow: hidden;
  background: linear-gradient(180deg, #C4D8C7 0%, #EFE6D4 42%, #F6F1E7 78%);
}
.statusbar { position: absolute; inset: 0 0 auto 0; height: 62px; }
.statusbar .time { position: absolute; left: 56px; top: 21px; font-size: 17px; font-weight: 600; color: #000; }
.statusbar .island { position: absolute; left: 138px; top: 14px; width: 126px; height: 37px; border-radius: 20px; background: #000; }
.statusbar .sys { position: absolute; right: 38px; top: 24px; width: 76px; height: 14px; color: #000; }

.view { position: absolute; inset: 0; padding: 70px 24px 0; opacity: 0; visibility: hidden; transition: opacity 0.22s ease, visibility 0s linear 0.22s; }
.view.on { opacity: 1; visibility: visible; transition: opacity 0.22s ease; }

.supporter { display: flex; align-items: center; gap: 8px; height: 32px; font-size: 15px; color: var(--text-2); }
.supporter b { font-weight: 600; color: var(--forest); }
.supporter .av { width: 28px; height: 28px; border-radius: 50%; background: var(--protected); display: grid; place-items: center; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); }
.supporter .av.person { background: var(--sunken); color: var(--forest); font-size: 14px; font-weight: 600; }
.supporter svg.chev { margin-left: 4px; }
.supporter.wide { justify-content: space-between; font-size: 17px; color: var(--forest); }
.supporter.wide span { display: flex; align-items: center; gap: 12px; }
.supporter.wide .av { width: 36px; height: 36px; font-size: 16px; }

.vtitle { font-family: var(--serif); font-size: 34px; line-height: 41px; letter-spacing: -0.01em; margin: 14px 0 16px; }

.card { background: var(--raised); border-radius: 28px; padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card .head { display: flex; justify-content: space-between; font-size: 15px; line-height: 20px; color: var(--text-2); }
.card .head b { font-weight: 600; color: var(--forest); }

.timer { display: flex; align-items: baseline; gap: 4px; height: 100px; margin-top: 2px; font-family: var(--serif); font-size: 88px; line-height: 99px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
.timer .u { font-family: var(--sans); font-size: 22px; font-weight: 500; letter-spacing: 0; margin-right: 8px; }

.seg { display: grid; grid-template-columns: repeat(4, 1fr); height: 46px; margin-top: 16px; border-radius: 23px; background: var(--sunken); font-size: 15px; font-weight: 500; }
.seg span { display: grid; place-items: center; border-radius: 23px; }
.seg .sel { background: var(--forest); color: var(--canvas); }

.rule { height: 1px; background: var(--hairline); margin: 18px 0 16px; }
.progress { height: 4px; border-radius: 2px; background: var(--sage); margin: 14px 0 18px; overflow: hidden; }
.progress i { display: block; width: 22%; height: 100%; border-radius: 2px; background: var(--forest); }

.apps { display: flex; align-items: center; gap: 8px; height: 36px; }
.apps .end { margin-left: auto; font-size: 15px; font-weight: 600; }
.app { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #FFFCF7; flex: none; }
.app.a1 { background: #C4704F; }
.app.a2 { background: #22302B; }
.app.a3 { background: #A3362A; }
.chip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--sage); color: var(--protected); font-size: 13px; font-weight: 600; }

.pbtn { display: block; width: 100%; height: 46px; margin-top: 14px; border-radius: 14px; border: 0; font: 600 15px/1 var(--sans); cursor: pointer; }
.pbtn.primary { background: var(--action); color: var(--canvas); }
.pbtn.secondary { background: var(--raised); color: var(--forest); box-shadow: inset 0 0 0 1px var(--hairline); }
.pbtn.large { height: 54px; font-size: 17px; border-radius: 16px; }
.pbtn.primary:hover { background: var(--action-pressed); }
.pbtn[tabindex="-1"] { cursor: default; }

.rows { padding: 6px 20px; }
.rows div { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 50px; font-size: 15px; color: var(--text-2); }
.rows div + div { border-top: 1px solid var(--hairline); }
.rows span:first-child { color: var(--forest); }
.rows .r { display: flex; align-items: center; gap: 10px; }

.unlocked { display: grid; grid-template-columns: 34px 1fr; gap: 0 12px; }
.unlocked b { font-size: 15px; font-weight: 600; line-height: 20px; }
.unlocked p { font-size: 15px; line-height: 20px; color: var(--text-2); }
.unlocked .pbtn { grid-column: 1 / -1; }

.req .who { display: flex; }
.req .who .av { width: 36px; height: 36px; border-radius: 50%; background: var(--sunken); display: grid; place-items: center; font-size: 15px; font-weight: 600; }
.req .who .app { margin-left: -6px; box-shadow: 0 0 0 2px var(--raised); }
.req h4 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 30px; margin: 14px 0 4px; }
.req p { font-size: 15px; color: var(--text-2); }
.own { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.own b { display: block; font-size: 17px; font-weight: 500; }
.own small { font-size: 15px; color: var(--text-2); }

.tabbar {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 4px; border-radius: 32px;
  background: rgba(255, 252, 247, 0.72); box-shadow: 0 4px 18px rgba(41, 66, 51, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}
.tabbar span { width: 88px; height: 54px; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; font-weight: 600; }
.tabbar .sel { background: rgba(31, 58, 50, 0.08); }
.tabbar [hidden] { display: none; }

/* ---------- Legal and support pages ---------- */
.doc-top { border-bottom: 1px solid var(--hairline); }
.doc-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.doc-top nav { display: flex; gap: 24px; }
.doc-top nav a { font-size: 15px; }
.doc { max-width: 720px; margin: 0 auto; padding: 64px var(--gutter) 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 48px); }
.doc .updated { margin-top: 10px; color: var(--text-3); font-size: 15px; }
.doc h2 { font-size: 28px; line-height: 34px; margin-top: 48px; }
.doc h3 { margin-top: 28px; }
.doc p, .doc ul, .doc table { margin-top: 14px; color: var(--text-2); }
.doc ul { padding-left: 22px; }
.doc li { margin-top: 6px; }
.doc strong { color: var(--forest); font-weight: 600; }
.doc .draft { margin-top: 28px; padding: 16px 18px; border-radius: 16px; background: var(--sunken); color: var(--attention); font-size: 15px; }
.doc mark { background: #F3E3C4; color: var(--attention); padding: 1px 5px; border-radius: 5px; }
.doc .short { margin-top: 28px; padding: 24px; border-radius: 24px; background: var(--raised); box-shadow: var(--shadow); }
.doc .short h2 { margin-top: 0; font-size: 22px; line-height: 28px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-top: 1px solid var(--hairline); }
.doc th { font-weight: 600; color: var(--forest); width: 34%; }
.table-scroll { overflow-x: auto; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .top nav { display: none; }
  .hero { padding: 104px 0 56px; }
  .hero .wrap, .how .grid, .kani-panel, .reason .wrap { grid-template-columns: minmax(0, 1fr); }
  .reason .wrap { gap: 40px; }
  .yours .wrap { display: block; }
  .yours .list { margin-top: 32px; }
  .yours .close { margin-top: 28px; }
  .film { width: min(300px, 100%); margin: 0 auto; }
  .hero .wrap { gap: 48px; justify-items: start; }
  .hero .phone-fit { justify-self: center; }
  .how .grid { gap: 40px; }
  .band { padding: 72px 0; }
  .kani-panel { padding: 32px 24px; gap: 36px; border-radius: 28px; }
  .details .item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .plans .cols, .vows { grid-template-columns: minmax(0, 1fr); }
  .closing { padding: 72px 0; }
  .phone-fit { --s: 0.72; }
}
@media (max-width: 460px) {
  .notify .row { flex-direction: column; }
  .notify input { flex: none; width: 100%; }
  .btn { width: 100%; }
  .doc-top nav { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .view, .view.on, .faq summary::after { transition: none; }
}
