/* NekoLang site. Tokens, radii and buttons follow the app (web/src/styles/theme.css, r2.css, v29.css).
   The app's web fonts come from Google Fonts; this site's Content Security Policy takes nothing from elsewhere,
   so the same stacks are used without them: whatever Mincho and Gothic the visitor's system has. */
:root {
  --bg: #F6F3EC; --paper: #FFFDF8; --ink: #1F2430; --muted: #5D6370; --line: #E6E0D4; --line2: #D6CFC1;
  --mark: #2D4B7E; --mark-soft: #E4EAF3; --on-mark: #FFFFFF;
  --amber: #9A6A12; --amber-soft: #FBF1DC;
  --band: #2D4B7E; --on-band: #FFFFFF; --bezel: #1F2430;
  --shadow: 0 1px 2px rgba(60,45,20,.05), 0 4px 14px rgba(60,45,20,.06);
  --shadow-lg: 0 2px 4px rgba(60,45,20,.05), 0 18px 48px rgba(60,45,20,.11);
  --f-jp: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif CJK JP", "Noto Serif JP", serif;
  --f-ui: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Noto Sans CJK JP", "Noto Sans JP", system-ui, sans-serif;
  --r: 12px; --r-card: 16px;
  --gap: clamp(72px, 10vw, 128px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171E; --paper: #1C2029; --ink: #ECE8DF; --muted: #A3A9B6; --line: #2C3240; --line2: #3A4152;
    --mark: #93ACDB; --mark-soft: #22304A; --on-mark: #111723;
    --amber: #E3B45A; --amber-soft: #33280F;
    --band: #22304A; --on-band: #ECE8DF; --bezel: #3A4152;
    --shadow: 0 1px 2px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.35), 0 18px 48px rgba(0,0,0,.4);
  }
  .frame img, .phone img, .hero-shot img { filter: brightness(.9); }
}
/* English keeps the Mincho for headings, whose figures stand on the line: "N3" must not drop below it as in Georgia. */
:root:lang(en) {
  --f-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); line-height: 1.8; font-size: 1rem;
  font-family: var(--f-ui); overflow-wrap: break-word; line-break: strict;
}
/* Scripts that need more room. */
:lang(my), :lang(ne) { line-height: 2; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; border-radius: 4px; }
.nb { display: inline-block; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--paper); padding: 4px 8px; z-index: 1; }
.draft { margin: 0; padding: 6px 16px; background: var(--amber-soft); color: var(--ink); font-size: .85rem; text-align: center; }
mark.ph { background: var(--amber-soft); color: var(--ink); padding: 0 .25em; border-radius: 3px; }

/* Widths: legal pages read in a column, the home page uses a wider measure. */
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
.wide { max-width: 72rem; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 48rem) { .wide, .wrap { padding-inline: 32px; } }

/* Header and footer, on every page. */
header.site { background: var(--paper); border-bottom: 1px solid var(--line); }
header.site .bar { max-width: 72rem; margin-inline: auto; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 20px; }
@media (min-width: 48rem) { header.site .bar { padding-inline: 32px; } }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-jp); font-weight: 700; font-size: 1.3rem; letter-spacing: .03em; color: var(--ink); text-decoration: none; }
.logo img { flex: none; width: 28px; height: 28px; border-radius: 7px; }
header.site nav { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: .9rem; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--ink); }

footer.site { background: var(--paper); border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: .9rem; }
.foot-cols { display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
footer.site h2 { font-family: var(--f-ui); font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 4px 0; }
footer.site a { color: var(--ink); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site a[aria-current] { font-weight: 700; }
@media (max-width: 40rem) {
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols > nav:first-child, .foot-cols > nav:last-child { grid-column: 1 / -1; }
}
.foot-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.links { list-style: none; padding: 0; margin: .3em 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Type. Headings in the app's Mincho. */
h1, h2 { font-family: var(--f-jp); font-weight: 700; text-wrap: balance; font-feature-settings: "palt"; }
h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.4; letter-spacing: .02em; margin: .4em 0 .7em; }
h2 { font-size: 1.3rem; line-height: 1.45; letter-spacing: .02em; }
h3 { font-size: 1.02rem; line-height: 1.5; margin: 1.4em 0 .3em; }
p, ul, ol { margin: .7em 0; }
ul, ol { padding-left: 1.4em; }
.small, .updated { font-size: .85rem; color: var(--muted); line-height: 1.7; }
:root:lang(en) h1, :root:lang(en) h2 { letter-spacing: -.005em; font-feature-settings: normal; }

/* Legal pages. */
main.wrap { padding-top: 40px; padding-bottom: 72px; }
main.wrap h2 { margin: 2.2em 0 .5em; padding-top: 1em; border-top: 1px solid var(--line); }
main.wrap .lead { font-size: 1.08rem; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 22px; margin: 1em 0; }
.price { font-family: var(--f-jp); font-size: 2.6rem; font-weight: 700; color: var(--ink); line-height: 1.2; margin: .15em 0 .3em; font-feature-settings: "lnum"; }
.price small { font-family: var(--f-ui); font-size: .9rem; font-weight: 400; color: var(--muted); }
.table { overflow-x: auto; }
table.plain { width: 100%; border-collapse: collapse; background: var(--paper); font-size: .93rem; }
table.plain th, table.plain td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.plain th { font-weight: 600; }
table.facts th { width: 34%; }
@media (max-width: 34rem) {
  table.facts th, table.facts td { display: block; width: 100%; border-bottom: 0; }
  table.facts td { border-top: 0; }
  table.facts tr:last-child td { border-bottom: 1px solid var(--line); }
}
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; color: var(--muted); font-weight: 400; font-size: 1.25rem; line-height: 1.45; }
details[open] summary::after { content: "\2212"; }
details p { margin: .5em 0 .2em; color: var(--muted); }
.langs { list-style: none; padding: 0; }

/* Buttons, as in the app. The status is deliberately not one: flat, no pointer, nothing to press. */
.cta { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px 12px; margin: 28px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--paper); color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none; }
.btn:hover { border-color: var(--mark); color: var(--mark); }
.btn.primary { background: var(--mark); border-color: var(--mark); color: var(--on-mark); }
.btn.primary:hover { filter: brightness(1.06); color: var(--on-mark); }
.status { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin: 0; padding: 8px 18px; border-radius: var(--r); background: var(--mark-soft); color: var(--mark); font-weight: 700; font-size: .95rem; line-height: 1.4; }
@media (max-width: 40rem) { .cta > * { flex: 1 1 100%; } }
.status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* Home. */
.hero { padding-block: clamp(40px, 5.4vw, 72px); }
.hero h1 { font-size: clamp(2.15rem, 4.7vw, 3.85rem); line-height: 1.24; letter-spacing: .01em; margin: 0; }
:root:lang(en) .hero h1 { line-height: 1.12; letter-spacing: -.015em; max-width: 15em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.16rem); line-height: 1.8; max-width: 46em; margin: 18px 0 0; }
.hero-act { margin-top: 24px; display: grid; gap: 18px 32px; align-items: center; }
.hero-act .cta { margin: 0; }
.hero-notes p { margin: 0; font-size: .92rem; line-height: 1.65; }
.hero-notes .small { margin-top: 4px; font-size: .8rem; }
.hero-notes strong { font-size: 1.15em; }
@media (min-width: 58rem) { .hero-act { grid-template-columns: auto minmax(0, 1fr); } .hero-act .cta { flex-wrap: nowrap; } }
.hero-shot { margin-block: clamp(32px, 3.4vw, 44px) 0; }
.hero-shot picture { display: block; border: 1px solid var(--line2); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper); }
.hero-shot img { width: 100%; }
@media (max-width: 40rem) {
  /* A phone sees the phone screen, large, in a phone's shape: a whole window that ends on a whole question. */
  .hero-shot picture { width: min(86%, 310px); margin-inline: auto; border: 6px solid var(--bezel); border-radius: 30px; }
}
/* The cat looks over the top edge of the screen from behind it, so she can never cover the product; the room above is reserved, so she covers no text either. */
.hero-shot { position: relative; isolation: isolate; }
.hero-shot picture { position: relative; z-index: 1; }
.hero-shot .neko { position: absolute; z-index: 0; width: 150px; top: -126px; right: 32px; filter: none; }
@media (min-width: 48rem) { .hero-shot .neko { right: 48px; } }
@media (min-width: 40.01rem) { .hero-notes { padding-right: 176px; } }
@media (max-width: 40rem) {
  .hero-shot { margin-block-start: 76px; }
  .hero-shot .neko { width: 76px; top: -64px; right: calc(7% + 34px); }
}

.band { padding-block: var(--gap); }
.band.paper { background: var(--paper); border-block: 1px solid var(--line); }
.hero + .band { border-top: 1px solid var(--line2); }
.band h2 { font-size: clamp(1.65rem, 3.6vw, 2.75rem); line-height: 1.32; margin: 0; }
:root:lang(en) .band h2 { line-height: 1.18; }

.points { display: grid; gap: 40px 48px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 48rem) { .points { grid-template-columns: repeat(3, 1fr); } }
.tile { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--mark-soft); color: var(--mark); font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif; font-weight: 700; font-size: 1.3rem; line-height: 1; }
.point h3 { font-size: 1.12rem; margin: 16px 0 6px; }
.point p { margin: 0; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 2px 10px; border: 1px solid var(--line2); border-radius: 999px; font-size: .85rem; line-height: 1.7; white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: clamp(48px, 6vw, 80px) 0 0; border-top: 1px solid var(--line2); }
.stats > div { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
@media (min-width: 48rem) { .stats { grid-template-columns: repeat(4, 1fr); } .stats > div { border-bottom: 0; padding-bottom: 0; } .stats > div + div { border-left: 1px solid var(--line); padding-left: 24px; } }
.stats dt { font-size: .85rem; font-weight: 700; color: var(--muted); }
.stats dd { margin: 0; font-family: var(--f-jp); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.25; font-feature-settings: "lnum", "palt"; white-space: nowrap; }
.stats dd small { font-family: var(--f-ui); font-size: .95rem; font-weight: 500; margin-left: .25em; }
.stats dd.note { font-family: var(--f-ui); font-size: .85rem; font-weight: 400; line-height: 1.5; color: var(--muted); white-space: normal; }
.measure { max-width: 50em; margin-top: 32px; }

.rows { display: grid; gap: var(--gap); }
.row { margin: 0; display: grid; gap: 28px; align-items: center; min-width: 0; }
.row h2 { font-size: clamp(1.5rem, 2.9vw, 2.25rem); }
.row figcaption p:not(.small) { margin: 16px 0 0; font-size: 1.04rem; }
.row figcaption .small { margin: 12px 0 0; }
@media (min-width: 58rem) {
  .row { grid-template-columns: 5fr 7fr; gap: 64px; }
  .row.flip { grid-template-columns: 7fr 5fr; }
  .row.flip figcaption { order: 2; }
  .row-wide { grid-template-columns: 1fr; gap: 36px; }
  .row-wide figcaption { max-width: 40rem; }
}
.frame { background: var(--paper); border: 1px solid var(--line2); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-lg); }
.frame img { width: 100%; }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(12px, 3vw, 32px); }
.phone { flex: 0 1 280px; min-width: 0; border: 5px solid var(--bezel); border-radius: 26px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-lg); }
.phone:nth-child(2) { margin-top: clamp(16px, 4vw, 48px); }

.split { display: grid; gap: 28px; }
@media (min-width: 58rem) { .split { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.split > h2 { font-size: clamp(1.5rem, 2.9vw, 2.25rem); }
.rules { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line2); }
.rules li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.04rem; }
.plain-facts li { font-size: 1rem; }

.plans { display: grid; gap: 20px; margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 58rem) { .plans { grid-template-columns: 4fr 8fr; gap: 24px; } }
.plan { margin: 0; padding: clamp(22px, 3vw, 36px); }
.plan h3 { margin: 0; font-size: 1rem; }
.main-plan { border-color: var(--mark); box-shadow: var(--shadow-lg); }
.plan .price { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.plan > ul:not(.links) { padding-left: 1.2em; }
.plan > ul:not(.links) li { margin: .45em 0; }
.plan-links { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; gap: 6px 20px; }

.faq details:first-child { border-top: 1px solid var(--line2); }
.faq-more { margin-top: 20px; }

.closing { padding-bottom: 56px; }
.closing-card { background: var(--band); color: var(--on-band); border-radius: 18px; padding: clamp(32px, 6vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.closing-line { margin: 0; font-family: var(--f-jp); font-weight: 700; font-size: clamp(1.45rem, 3.2vw, 2.25rem); line-height: 1.35; font-feature-settings: "palt"; }
.closing .cta { margin: 0; }
.closing .status { background: rgba(255,255,255,.12); color: var(--on-band); }
.closing .status::before { background: #F0C36A; }
.closing .btn.primary { background: var(--on-band); border-color: var(--on-band); color: var(--band); }
#ai-voice { margin: 28px 0 0; }

@media print { header.site nav, footer.site nav, .draft { display: none; } }
