/* Kizura website. No frameworks, no web fonts, no trackers. */
:root {
  color-scheme: light dark;
  --bg: #fff9f5; --surface: #ffffff; --ink: #241512; --muted: #6b5651; --line: #f0e0d8;
  --ember: #d24a2e; --ember-ink: #ffffff; --ember-soft: #fdeae3; --link: #c0401f;
  --stage-top: #3d1a24; --stage-bottom: #12090d; --stage-ink: #ffffff; --stage-muted: #ffd3c4;
  --radius: 22px; --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Hiragino Sans", "Yu Gothic", "Segoe UI", Roboto, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Hiragino Sans", "Yu Gothic", "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #150e0d; --surface: #211614; --ink: #fbede7; --muted: #cdb5ad; --line: #3a2823;
    --ember: #ff8a66; --ember-ink: #2a0f08; --ember-soft: #3a1d15; --link: #ff9d7e;
  }
}
* { 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); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ember); margin: 0 0 .8em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38em; }
.small { font-size: .88rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 750; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: .95rem; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--link); }
.lang { font: inherit; font-size: .9rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }
@media (max-width: 640px) { .nav-links .desktop { display: none; } }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1em; }
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ember); color: var(--ember-ink); font-weight: 650; text-decoration: none; border: 0; }
.button.secondary { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .92; }
.pill { display: inline-block; font-size: .8rem; font-weight: 650; padding: 5px 12px; border-radius: 999px; background: var(--ember-soft); color: var(--link); }

/* Hero: the same warm stage as the App Store screenshots, in both themes */
.hero { background: radial-gradient(90% 70% at 70% 0%, rgba(240,106,74,.5), rgba(240,106,74,0) 70%), linear-gradient(160deg, var(--stage-top), var(--stage-bottom)); color: var(--stage-ink); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 72px; }
.hero .eyebrow { color: var(--stage-muted); }
.hero .lead { color: var(--stage-muted); }
.hero .small { color: var(--stage-muted); opacity: .9; }
.hero .button { background: #fff; color: #5a1f12; }
.hero .button.secondary { background: transparent; color: #fff; }
.hero-device { align-self: end; justify-self: center; margin-bottom: -18%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); }
.hero-device img { width: min(340px, 78vw); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .buttons { justify-content: center; }
  .hero-device { margin-bottom: -32%; }
}

/* Sections */
.section { padding: 88px 0; }
.section.tint { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 44em; margin-bottom: 44px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Plan timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.timeline li { position: relative; padding: 34px 14px 0; text-align: center; }
.timeline li::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline li:first-child::before { left: 50%; } .timeline li:last-child::before { right: 50%; }
.timeline li::after { content: ""; position: absolute; top: 2px; left: calc(50% - 8px); width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--ember); }
.timeline li.day::after { background: var(--ember); transform: scale(1.35); }
.timeline .when { display: block; font-size: .8rem; font-weight: 700; color: var(--ember); letter-spacing: .03em; }
.timeline .what { display: block; font-weight: 650; margin-top: 4px; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li { text-align: left; padding: 0 0 22px 36px; }
  .timeline li::before { top: 0; bottom: 0; left: 8px; right: auto; width: 2px; height: auto; }
  .timeline li:first-child::before { left: 8px; top: 8px; } .timeline li:last-child::before { right: auto; bottom: calc(100% - 8px); }
  .timeline li::after { left: 0; top: 4px; }
}

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.feature:nth-of-type(even) .feature-art { order: 2; }
.feature-art { display: flex; justify-content: center; }
.feature-art .stage { width: 100%; max-width: 460px; border-radius: 36px; padding: 44px 44px 0; overflow: hidden; background: radial-gradient(90% 60% at 50% 0%, rgba(240,106,74,.45), rgba(240,106,74,0) 70%), linear-gradient(160deg, var(--stage-top), var(--stage-bottom)); }
.feature-art .stage img { margin: 0 auto -22%; width: 100%; max-width: 300px; filter: drop-shadow(0 20px 36px rgba(0,0,0,.45)); }
.feature ul, .checklist { list-style: none; padding: 0; margin: 1.2em 0 0; }
.feature li, .checklist li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.feature li::before, .checklist li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 16px; height: 9px; border-left: 2.5px solid var(--ember); border-bottom: 2.5px solid var(--ember); transform: rotate(-45deg) scale(.8); transform-origin: left; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
  .feature:nth-of-type(even) .feature-art { order: 0; }
}

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section.tint .card { background: var(--bg); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--ember-soft); color: var(--link); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.roots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 780px; margin: 0 auto; }
.roots h3 { font-size: 1.7rem; }
@media (max-width: 640px) { .roots { grid-template-columns: 1fr; } }

/* Devices band */
.devices { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: end; margin-top: 40px; }
.devices figure { margin: 0; }
.devices figcaption { font-size: .88rem; color: var(--muted); margin-top: 12px; text-align: center; text-wrap: balance; }
.devices .ipad img { width: 100%; aspect-ratio: 1400 / 1480; object-fit: cover; object-position: top; border-radius: 22px; border: 8px solid #1b1213; box-shadow: 0 24px 48px rgba(0,0,0,.22); }
.devices .duo img { max-height: 520px; margin: 0 auto; filter: drop-shadow(0 20px 36px rgba(0,0,0,.3)); }
.devices.single { grid-template-columns: minmax(0, 760px); }
.devices.trio { grid-template-columns: 1fr 1.55fr .5fr; gap: 24px; }
.devices .duo-open img { width: 100%; filter: drop-shadow(0 20px 36px rgba(0,0,0,.3)); }
.devices.trio .ipad img { aspect-ratio: 1400 / 1560; border-width: 6px; border-radius: 16px; }
@media (max-width: 860px) {
  .devices.trio { grid-template-columns: 1fr; gap: 36px; }
  .devices.trio .duo img { max-height: 380px; }
}
@media (max-width: 860px) { .devices { grid-template-columns: 1fr; } }

/* Privacy band */
.privacy-band { background: linear-gradient(160deg, var(--stage-top), var(--stage-bottom)); color: var(--stage-ink); }
.privacy-band .eyebrow, .privacy-band .lead { color: var(--stage-muted); }
.privacy-band .trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.privacy-band .trio div { border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 22px; background: rgba(255,255,255,.05); }
.privacy-band .trio strong { display: block; font-family: var(--display); font-size: 1.25rem; margin-bottom: 4px; }
.privacy-band .trio span { color: var(--stage-muted); font-size: .95rem; }
.privacy-band a { color: #fff; }
@media (max-width: 860px) { .privacy-band .trio { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
.pricing .card.premium { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember) inset; }
.price { font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: .2em 0 .1em; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 6px; }
.plans div { border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px; text-align: center; }
.plans b { display: block; font-family: var(--display); font-size: 1.15rem; }
.plans span { font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; font-weight: 650; padding: 14px 28px 14px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; font-weight: 400; color: var(--ember); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); max-width: 46em; }
.faq-search { width: 100%; max-width: 420px; font: inherit; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); margin-bottom: 18px; }
.faq-empty { color: var(--muted); }

/* Support and legal pages */
.page-hero { padding: 64px 0 28px; }
.support-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding-bottom: 88px; }
.side { position: sticky; top: 84px; align-self: start; display: grid; gap: 10px; font-size: .95rem; }
.side a { color: var(--muted); text-decoration: none; } .side a:hover { color: var(--link); }
.guide section { padding: 8px 0 36px; scroll-margin-top: 84px; }
.guide h2 { font-size: 1.6rem; }
.guide ol, .guide ul { padding-left: 1.3em; } .guide li { margin-bottom: .55em; }
.legal { max-width: 760px; padding-bottom: 88px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
@media (max-width: 860px) { .support-layout { grid-template-columns: 1fr; gap: 12px; } .side { position: static; grid-auto-flow: column; overflow-x: auto; white-space: nowrap; padding-bottom: 8px; } }

/* Language suggestion */
.suggest { display: none; background: var(--ember-soft); border-bottom: 1px solid var(--line); font-size: .93rem; }
.suggest.show { display: block; }
.suggest .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.suggest button { font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: .95rem; }
.footer-links a { color: var(--ink); text-decoration: none; } .footer-links a:hover { color: var(--link); }

/* Press */
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 20px 0 36px; }
.press-grid img { border-radius: 14px; border: 1px solid var(--line); }
video { width: 100%; max-width: 320px; border-radius: 22px; background: #000; }

/* Language-specific typography */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: 0; line-height: 1.28; word-break: auto-phrase; line-break: strict; }
:lang(ja) h1 { font-size: clamp(1.7rem, 4.1vw, 2.65rem); }
:lang(ja) h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); }
:lang(ja) body, :lang(ja) p { line-height: 1.8; }
:lang(ja) .eyebrow { letter-spacing: .04em; }
:lang(de) p, :lang(de) li { hyphens: auto; -webkit-hyphens: auto; }
:lang(de) h1, :lang(fr) h1, :lang(es) h1 { font-size: clamp(2.1rem, 4.9vw, 3.5rem); }
