/*
 * The app's palette (src/global.css): a cool cloud-white page, white cards, the はちまき blue as
 * the brand, navy ink. Headings use M PLUS Rounded 1c like the app; body text uses the system
 * Japanese font, which reads better in long legal pages.
 */
/* Subsets of the app's own fonts with only the characters site/ uses (bun run site:fonts). */
@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("/assets/fonts/rounded-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("/assets/fonts/rounded-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #1b2433;
  --body: #3a475a;
  --muted: #6b7a90;
  --cloud: #f3f7fc;
  --surface: #ffffff;
  --surface-2: #edf3fb;
  --brand: #2f6be0;
  --brand-deep: #1f51b8;
  --brand-soft: #e3edfb;
  --border: #dce6f3;
  --flame: #ff8a3d;
  --flame-soft: #fff1e6;
  --radius: 24px;
  --shadow: 0 6px 16px rgba(47, 107, 224, 0.07);
  --font-body:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic UI", Meiryo, sans-serif;
  --font-round: "M PLUS Rounded 1c", var(--font-body);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* Room for the landing page's sticky header when a nav link jumps to a section. */
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  /* Rotated hero pieces may poke past the edge; clip keeps the sticky header working. */
  overflow-x: clip;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.8;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(100% - 40px, 1040px);
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 40px, 720px);
  margin-inline: auto;
}

/* Header and footer */

.site-header {
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-round);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--body);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.copyright {
  margin: 0;
}

/* Landing page */

/* The landing page's header stays on screen, over a frosted strip. */
.site-header-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0;
  border-bottom: 1px solid rgba(220, 230, 243, 0.7);
  background: rgba(243, 247, 252, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--body);
  font-family: var(--font-round);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand);
}

h1,
h2,
h3 {
  font-family: var(--font-round);
  font-feature-settings: "palt";
  text-wrap: balance;
  word-break: auto-phrase;
}

/* A phrase a heading may not break inside, for browsers without auto-phrase (Safari). */
.nw {
  display: inline-block;
}

.eyebrow,
.label {
  margin: 0 0 12px;
  color: var(--brand);
  font-family: var(--font-round);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* A phone: the app's own screenshot inside a navy bezel. */
.phone {
  position: relative;
  width: 100%;
  max-width: 260px;
  padding: 7px;
  border-radius: 40px;
  background: var(--ink);
  box-shadow:
    0 2px 0 1px #2c3850 inset,
    0 24px 48px -18px rgba(27, 36, 51, 0.45),
    0 10px 24px rgba(47, 107, 224, 0.12);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 33px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px 0 96px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6.2vw, 60px);
  font-weight: 800;
  line-height: 1.25;
}

.lead {
  max-width: 30em;
  margin: 0 0 24px;
  color: var(--body);
  font-size: 17px;
}

.subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.subject {
  padding: 4px 14px;
  border-radius: 999px;
  font-family: var(--font-round);
  font-size: 14px;
  font-weight: 700;
}

/* The app's subject colors (src/entities/worksheet/ui/subject.tsx). */
.subject-ja {
  background: var(--flame-soft);
  color: #c85a14;
}

.subject-ma {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.subject-en {
  background: #ecebfd;
  color: #5446d6;
}

.subject-sc {
  background: #e0f4f1;
  color: #0d7d72;
}

.subject-so {
  background: #fff3d6;
  color: #7a5600;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 22px;
  border: 2px solid var(--border);
  border-bottom-width: 4px;
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-round);
  font-size: 15px;
  font-weight: 700;
}

.soon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flame);
}

/* The paper print on the left turns into the phone on the right. */
.hero-visual {
  position: relative;
  height: 600px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 4% 0 0 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--brand-soft), transparent);
}

.paper {
  position: absolute;
  top: 70px;
  left: 0;
  width: 62%;
  rotate: -7deg;
}

.paper img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow:
    0 1px 2px rgba(27, 36, 51, 0.12),
    0 18px 36px -12px rgba(27, 36, 51, 0.3);
}

/* A strip of masking tape on the print. */
.paper::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -12px;
  left: 50%;
  width: 96px;
  height: 26px;
  translate: -50% 0;
  rotate: 3deg;
  background: rgba(255, 198, 77, 0.55);
}

.hero-arrow {
  position: absolute;
  top: 26px;
  left: 33%;
  width: 96px;
  stroke: var(--brand);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-phone {
  position: absolute;
  top: 0;
  right: 2%;
  width: 265px;
  rotate: 3deg;
}

.bubble {
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 18px 18px 18px 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-family: var(--font-round);
  font-size: 15px;
  font-weight: 700;
}

.hero-bubble {
  position: absolute;
  bottom: 70px;
  left: 6%;
  z-index: 2;
}

.hero-lumi {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 110px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 20px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-facts li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%232f6be0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 10px no-repeat;
}

/* Pieces of the app floating around the phone, like the result screen's XP and the widget. */
.float-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 14px 28px -12px rgba(27, 36, 51, 0.3);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.float-chip b {
  color: var(--ink);
  font-family: var(--font-round);
  font-size: 17px;
  font-weight: 800;
}

.bolt {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffc64d
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 2 5 13.5h6L10 22l9-12h-6.2z' fill='%231b2433'/%3E%3C/svg%3E")
    center / 15px no-repeat;
}

.hero-xp {
  position: absolute;
  z-index: 3;
  top: 46%;
  right: 47%;
  rotate: -4deg;
}

.hero-widget {
  position: absolute;
  z-index: 3;
  right: -14px;
  bottom: 34px;
  width: 128px;
  height: auto;
  border-radius: 22%;
  rotate: 7deg;
  box-shadow: 0 18px 32px -14px rgba(27, 36, 51, 0.45);
}

/* ルミ from the 404 page, with its idle from the app: a few slow, squishy breaths, then rest. */
.lumi {
  position: relative;
  width: min(300px, 64vw);
  transform-origin: bottom center;
  animation: breathe 3.2s ease-in-out 4;
}

@keyframes breathe {
  50% {
    transform: scale(0.975, 1.035);
  }
}

/* A slow band of print topics: any subject's print works. */
.marquee {
  overflow: hidden;
  margin: -40px 0 96px;
  padding: 6px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* Three copies of the chips, so the loop never runs out on wide screens. */
.marquee-track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--body);
  font-size: 14px;
  white-space: nowrap;
}

.topic::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
}

.topic-ja {
  --dot: var(--flame);
}

.topic-ma {
  --dot: var(--brand);
}

.topic-en {
  --dot: #7466ee;
}

.topic-sc {
  --dot: #17a99b;
}

.topic-so {
  --dot: #ffc64d;
}

/* Sections */

.section {
  padding: 0 0 104px;
}

/* A full-width band on 方眼 (graph paper), like a math notebook. */
.band {
  margin: 0 0 104px;
  padding: 88px 0;
  background:
    radial-gradient(circle, #d3dff0 1.2px, transparent 1.4px) 0 0 / 24px 24px,
    var(--surface-2);
}

.section h2,
.band h2 {
  margin: 0 0 32px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.4;
}

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}

.card p {
  margin: 0;
  color: var(--body);
  font-size: 15px;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.split-copy h2 {
  margin-bottom: 24px;
}

.split-copy p:not(.label) {
  max-width: 32em;
  margin: 0 0 16px;
  color: var(--body);
  font-size: 16.5px;
}

.split-visual {
  display: flex;
  justify-content: center;
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step .phone {
  max-width: 240px;
  margin: 0 auto 28px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}

.step p {
  margin: 0;
  color: var(--body);
  font-size: 15px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-bottom: 3px solid var(--brand-deep);
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-round);
  font-size: 18px;
  font-weight: 800;
}

.aside {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Features: copy beside a phone, alternating sides. */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0;
}

.feature + .feature {
  border-top: 1px dashed var(--border);
}

.feature-tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-family: var(--font-round);
  font-size: 13px;
  font-weight: 700;
}

.feature h3 {
  margin: 0 0 16px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.4;
}

.feature-copy p:not(.feature-tag) {
  margin: 0 0 14px;
  color: var(--body);
  font-size: 16px;
}

.feature-copy .note {
  color: var(--muted);
  font-size: 14px;
}

.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.feature-flip .feature-visual {
  order: -1;
}

/* A soft blob in a subject color behind each phone (src/global.css palette). */
.feature-visual::before {
  content: "";
  position: absolute;
  inset: 6% 8% 4%;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: var(--tint, var(--brand-soft));
}

.tint-brand {
  --tint: var(--brand-soft);
}

.tint-violet {
  --tint: #ecebfd;
}

.tint-teal {
  --tint: #dff3f0;
}

/* A detail from the screen, enlarged and floating beside the phone. */
.callout-card {
  position: absolute;
  z-index: 2;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 36px -16px rgba(27, 36, 51, 0.35);
}

.callout-keys {
  bottom: 18%;
  left: 4%;
  display: flex;
  gap: 8px;
  padding: 10px;
  rotate: -3deg;
}

.callout-keys span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.callout-level {
  top: 16%;
  right: 2%;
  min-width: 150px;
  padding: 14px 16px;
  rotate: 3deg;
}

.callout-level p {
  margin: 0;
}

.callout-label {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.callout-value {
  color: var(--ink);
  font-family: var(--font-round);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
}

.callout-meter {
  display: block;
  height: 8px;
  margin: 4px 0 8px;
  border-radius: 999px;
  background: #ecebfd;
}

.callout-meter span {
  display: block;
  width: 89%;
  height: 100%;
  border-radius: inherit;
  background: #7466ee;
}

.callout-note {
  color: #5446d6;
  font-size: 13px;
  font-weight: 700;
}

.callout-timeline {
  top: 22%;
  left: 0;
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  list-style: none;
  rotate: -3deg;
}

.callout-timeline li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.callout-timeline li::before {
  content: "";
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 3px solid #17a99b;
  border-radius: 50%;
  background: var(--surface);
}

/* The line between the dots. */
.callout-timeline li + li::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 5px;
  width: 2px;
  height: 14px;
  background: #b5e3dd;
}

.feature-visual .phone {
  max-width: 250px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--font-round);
  font-size: 14px;
  font-weight: 700;
}

/* The smaller features, as a bento grid. */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "growth growth memo"
    "small1 small2 small3";
  gap: 20px;
  margin-top: 56px;
}

.bento-card {
  overflow: hidden;
}

.bento-card h3 {
  font-size: 21px;
  line-height: 1.45;
}

.bento-card .bento-copy p:not(.feature-tag) {
  margin: 0 0 10px;
}

.bento-growth {
  grid-area: growth;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  padding-bottom: 0;
  background: linear-gradient(160deg, var(--surface) 40%, var(--flame-soft));
}

/* The phones rise from the card's bottom edge; the card clips their lower half. */
.bento-phones {
  display: flex;
  align-self: end;
  justify-content: center;
  margin-bottom: -40px;
}

.bento-phones .phone {
  flex: none;
  width: 196px;
}

.bento-phones .phone + .phone {
  margin-left: -56px;
  translate: 0 40px;
}

.bento-memo {
  grid-area: memo;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  background: linear-gradient(180deg, var(--surface) 30%, var(--brand-soft));
}

.bento-memo-art {
  flex: 1;
  margin: 8px -12px 0;
  mask-image: linear-gradient(#000 88%, transparent);
}

.memo-card {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 18px 36px -18px rgba(27, 36, 51, 0.35);
}

.bento .mini:nth-child(3) {
  grid-area: small1;
}

.bento .mini:nth-child(4) {
  grid-area: small2;
}

.bento .mini:nth-child(5) {
  grid-area: small3;
}

.mini-art {
  display: grid;
  place-items: center;
  height: 210px;
  margin: -28px -28px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface-2);
  overflow: hidden;
}

/* Only the lower half of the phone shows: the card's answer and the sort buttons. */
.mini-art-phone {
  place-items: start center;
  mask-image: linear-gradient(transparent, #000 8%);
}

.mini-art-phone .phone {
  translate: 0 -136px;
}

.phone-small {
  max-width: 160px;
  border-radius: 28px;
  padding: 5px;
}

.phone-small img {
  border-radius: 23px;
}

.widget-art {
  width: 150px;
  height: auto;
  border-radius: 22%;
  box-shadow: 0 16px 32px -14px rgba(27, 36, 51, 0.4);
}

.mini-lumi {
  width: 120px;
}

.check-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The check is positioned, not a flex item, so links inside an item stay in the text flow. */
.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--body);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* Pricing */

.plan-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card .plan-name {
  margin: 0 0 4px;
  color: var(--brand);
  font-family: var(--font-round);
  font-size: 14px;
  font-weight: 700;
}

.card .price {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: var(--font-round);
  font-size: 28px;
  font-weight: 800;
}

.section-lead {
  max-width: 40em;
  margin: -12px 0 28px;
  color: var(--body);
  font-size: 16px;
}

/* Pro's two plans, yearly first and marked, as on the app's paywall. */
.plan-options {
  display: grid;
  gap: 12px;
  margin: 8px 0 20px;
}

.plan-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 16px;
}

.plan-option p {
  margin: 0;
}

.plan-option-best {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.plan-option-badge {
  position: absolute;
  top: -12px;
  right: 14px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--flame);
  color: #fff;
  font-family: var(--font-round);
  font-size: 12px;
  font-weight: 700;
}

.card .plan-option-name {
  color: var(--ink);
  font-family: var(--font-round);
  font-size: 16px;
  font-weight: 800;
}

.plan-option-name span {
  display: block;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
}

.card .plan-option-price {
  color: var(--ink);
  font-family: var(--font-round);
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.plan-option-price small {
  color: var(--muted);
  font-size: 13px;
}

.plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed var(--border);
  color: var(--body);
  font-size: 15px;
}

.plan-list b {
  color: var(--ink);
  white-space: nowrap;
}

.plan-pro {
  border: 2px solid var(--brand);
  border-bottom-width: 5px;
}

.card .plan-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.card .plan-trial {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--flame-soft);
  color: #b4531a;
  font-family: var(--font-round);
  font-size: 14px;
  font-weight: 700;
}

/* FAQ */

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.faq summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  cursor: pointer;
  font-family: var(--font-round);
  font-size: 16px;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  rotate: 45deg;
  transition: rotate 0.2s ease;
}

.faq details[open] summary::after {
  margin-top: -3px;
  rotate: 225deg;
}

.faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--body);
  font-size: 15px;
}

/* Closing call to action */

.cta {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 96px;
  padding: 48px;
  border-bottom: 6px solid var(--brand-deep);
  border-radius: 32px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 1.2px, transparent 1.4px) 0 0 / 24px 24px,
    var(--brand);
  color: #fff;
}

.cta h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 800;
  line-height: 1.4;
}

.cta-lumi {
  flex: none;
  width: 140px;
}

.soon-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--ink);
}

/* Motion: the hero rises in once; later blocks rise as they scroll into view. */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-visual > * {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 0.06s;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 0.12s;
  }

  .hero-copy > :nth-child(n + 4) {
    animation-delay: 0.18s;
  }

  /* The print and the phone slide without fading, so the phone (the page's largest image) is
     visible from its first frame and counts as LCP. */
  .hero-visual > .paper,
  .hero-visual > .hero-phone {
    animation-name: slide;
  }

  .hero-visual > .paper {
    animation-delay: 0.15s;
  }

  .hero-visual > .hero-arrow {
    animation-delay: 0.35s;
  }

  .hero-visual > .hero-phone {
    animation-delay: 0.25s;
  }

  .hero-visual > .hero-bubble {
    animation-delay: 0.45s;
  }

  .hero-visual > .hero-lumi {
    transform-origin: bottom center;
    animation:
      rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s both,
      breathe 3.2s ease-in-out 1.1s 4;
  }

  .marquee-track {
    animation: marquee 60s linear infinite;
  }

  .marquee:hover .marquee-track {
    animation-play-state: paused;
  }

  .hero-visual > .hero-xp,
  .hero-visual > .hero-widget {
    animation-delay: 0.55s;
  }

  @supports (animation-timeline: view()) {
    .step,
    .split-visual,
    .feature-copy,
    .feature-visual,
    .bento-card,
    .plan,
    .faq details {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-33.3333%);
  }
}

@keyframes slide {
  from {
    transform: translateY(24px);
  }
}

/* Legal pages */

.doc {
  padding: 8px 0 80px;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  line-height: 1.35;
}

.doc .meta {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.doc h2 {
  margin: 44px 0 12px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
}

.doc h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.doc p,
.doc li {
  color: var(--body);
  font-size: 15.5px;
}

.doc ol,
.doc ul {
  padding-left: 1.5em;
}

.doc li + li {
  margin-top: 6px;
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--brand-soft);
}

.callout p {
  margin: 0;
}

.table-scroll {
  overflow-x: auto;
}

.doc table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--surface);
  font-size: 14.5px;
}

.doc th,
.doc td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.doc tr:last-child th,
.doc tr:last-child td {
  border-bottom: 0;
}

.doc thead th {
  background: var(--surface-2);
  white-space: nowrap;
}

.kv th {
  width: 30%;
  background: var(--surface-2);
}

/* Operator details still to fill in before publishing. */
.todo {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--flame-soft);
  color: #b4531a;
}

.not-found {
  padding: 80px 0 120px;
  text-align: center;
}

.not-found .lumi {
  width: 160px;
  margin: 0 auto 24px;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 8px 0 72px;
  }

  .hero-visual {
    width: min(100%, 460px);
    height: 520px;
    margin: 0 auto;
  }

  .hero-phone {
    width: 230px;
  }

  .split,
  .feature {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature-flip .feature-visual {
    order: 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "growth growth"
      "memo memo"
      "small1 small2"
      "small3 small3";
  }
}

@media (max-width: 760px) {
  .band {
    margin-bottom: 80px;
    padding: 64px 0;
  }

  .section {
    padding-bottom: 80px;
  }

  .hero-visual {
    height: 460px;
  }

  .paper {
    top: 56px;
    width: 64%;
  }

  .hero-arrow {
    top: 18px;
    width: 72px;
  }

  .hero-phone {
    width: 200px;
  }

  .hero-bubble {
    bottom: 92px;
    left: 36px;
    font-size: 14px;
  }

  .hero-lumi {
    width: 88px;
  }

  .lumi {
    width: min(220px, 56vw);
  }

  .hero-widget {
    right: -6px;
    bottom: 28px;
    width: 96px;
  }

  .hero-xp {
    top: 50%;
    right: 50%;
  }

  .float-chip b {
    font-size: 15px;
  }

  .marquee {
    margin: -24px 0 72px;
  }

  .callout-keys span {
    width: 38px;
    height: 38px;
  }

  .bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "growth"
      "memo"
      "small1"
      "small2"
      "small3";
  }

  .bento-growth {
    grid-template-columns: 1fr;
  }

  .bento-phones .phone {
    width: 160px;
  }

  .plan-row {
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 24px;
  }

  .cta-lumi {
    width: 100px;
  }

  .kv th,
  .kv td {
    display: block;
    width: 100%;
  }

  .kv th {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .kv td {
    padding-top: 4px;
  }
}

@media (max-width: 400px) {
  .hero-xp {
    right: auto;
    left: 8px;
  }

  .hero-bubble {
    left: 12px;
  }

  .hero-widget {
    width: 84px;
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lumi {
    animation: none;
  }

  .faq summary::after {
    transition: none;
  }
}
