/* SozoScript website — washi paper, sumi ink, one vermilion seal. Matches the app. */
@font-face { font-family: 'Inter'; src: url(../fonts/inter-light.ttf) format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../fonts/inter-regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../fonts/inter-bold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../fonts/inter-extrabold.ttf) format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --washi: #f3eee5;
  --washi-2: #ebe4d8;
  --kami: #fbf8f2;
  --sumi: #26241f;
  --sumi-2: #4a463e;
  --usuzumi: #8c857a;
  --line: #d9cfbf;
  --line-soft: #e6dece;
  --shu: #c8402a;
  --shu-deep: #a9331f;
  --shu-soft: #f6e4dc;
  --matsu: #5c6b4e;
  --r: 6px;
  --wrap: 1120px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.38  0 0 0 0 0.28  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--sumi);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--washi) var(--grain); font-size: 16px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--shu-soft); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sumi); color: var(--kami); padding: 8px 14px; z-index: 99; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; border-radius: 3px; }

/* ── header ───────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 242, .88); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: .01em; }
.brand img { width: 30px; height: 30px; }
.brand small { font-weight: 300; color: var(--usuzumi); font-size: 14px; margin-left: 2px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--sumi-2); padding: 8px 12px; border-radius: var(--r); }
.nav a:hover { color: var(--sumi); background: var(--washi); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--kami); border-radius: var(--r); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--sumi); stroke-width: 1.6; stroke-linecap: round; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--kami); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(38, 36, 31, .25); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav a:hover { background: none; }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; border-radius: var(--r); }
}

/* ── buttons ──────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--kami); color: var(--sumi); font: inherit; font-weight: 600; font-size: 15px; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .1s; }
.btn:hover { border-color: var(--usuzumi); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--shu); border-color: var(--shu); color: #fff; }
.btn.primary:hover { background: var(--shu-deep); border-color: var(--shu-deep); }
.btn.ink { background: var(--sumi); border-color: var(--sumi); color: var(--kami); }
.btn.ink:hover { background: #000; border-color: #000; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; justify-content: center; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── type ─────────────────────────────── */
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.5rem, 8vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.accent { color: var(--shu); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--shu); }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--shu); }
.lede { font-size: clamp(1.08rem, 2.6vw, 1.25rem); color: var(--sumi-2); font-weight: 300; max-width: 36em; }
.muted { color: var(--usuzumi); }
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { margin: 14px 0 14px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ''; width: 18px; height: 2px; background: var(--shu); }

/* ── hero ─────────────────────────────── */
.hero { padding: 48px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 104px; } .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero h1 { margin: 18px 0 20px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.hero .note { font-size: 14px; color: var(--usuzumi); display: flex; align-items: center; gap: 8px; }
.hero .note svg { width: 16px; height: 16px; fill: none; stroke: var(--matsu); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) { .hero .cta .btn { flex: 1 1 100%; justify-content: center; } }

/* book spread mockup */
.spread-stage { position: relative; padding: 18px 0 30px; }
.spread-stage::before { content: ''; position: absolute; inset: 8% 4% 0; background: radial-gradient(closest-side, rgba(200, 64, 42, .12), transparent); filter: blur(10px); }
.spread { position: relative; display: grid; grid-template-columns: 1fr 1fr; max-width: 560px; margin: 0 auto; aspect-ratio: 12 / 8.6; background: var(--kami); border-radius: 3px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -28px rgba(38, 36, 31, .45), 0 12px 24px -16px rgba(38, 36, 31, .25); transform: rotate(-1.2deg); }
.spread::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 46px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(38, 36, 31, .09) 45%, rgba(38, 36, 31, .14) 50%, rgba(38, 36, 31, .09) 55%, transparent); pointer-events: none; }
.page { position: relative; padding: 11% 12% 10%; display: flex; flex-direction: column; gap: clamp(8px, 2.6vw, 17px); --g: clamp(8px, 2.6vw, 17px); }
.page .rh { font-size: clamp(6px, 1.25vw, 8px); letter-spacing: .22em; text-transform: uppercase; color: var(--usuzumi); text-align: center; margin-bottom: 2px; }
.page .ln { height: clamp(3px, .7vw, 4.5px); background: #cfc6b6; border-radius: 2px; }
.page .ln.s { width: 62%; }
.page .ln.i { margin-left: 8%; }
.page .folio { position: absolute; bottom: 5%; left: 0; right: 0; text-align: center; font-size: clamp(6px, 1.2vw, 8px); color: var(--usuzumi); }
.page.r { padding-top: 22%; }
.page .ch-num { font-size: clamp(6px, 1.3vw, 8.5px); letter-spacing: .3em; text-transform: uppercase; color: var(--shu); text-align: center; font-weight: 600; }
.page .ch-title { font-size: clamp(11px, 2.6vw, 17px); font-weight: 800; letter-spacing: -0.02em; text-align: center; color: var(--sumi); line-height: 1.15; }
.page .orn { display: flex; justify-content: center; gap: 6px; margin: 0 0 4px; }
.page .orn i { width: 5px; height: 5px; background: var(--shu); transform: rotate(45deg); }
.page .orn i:nth-child(2) { background: var(--sumi); }
.page .para { display: grid; grid-template-columns: auto 1fr; gap: 0 6%; align-items: start; }
.page .drop { font-size: clamp(22px, 5.4vw, 36px); font-weight: 800; line-height: .8; color: var(--shu); padding-top: 2px; }
.page .para .lines { display: flex; flex-direction: column; gap: var(--g); padding-top: 4px; }
.chip { position: absolute; display: flex; align-items: center; gap: 8px; background: var(--kami); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px 7px 9px; font-size: 12.5px; font-weight: 600; box-shadow: 0 10px 24px -14px rgba(38, 36, 31, .4); white-space: nowrap; }
.chip b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--matsu); color: #fff; }
.chip b svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chip.c1 { top: 0; right: 2%; }
.chip.c2 { bottom: 4px; left: 0; }
.chip.c2 b { background: var(--shu); }

/* ── strip ───────────────────────────── */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--kami); padding: 18px 0; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; font-size: 14px; color: var(--sumi-2); }
.strip li { display: flex; align-items: center; gap: 10px; }
.strip li::before { content: ''; width: 6px; height: 6px; background: var(--shu); transform: rotate(45deg); }

/* ── steps ───────────────────────────── */
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { background: var(--kami); border: 1px solid var(--line); border-radius: 10px; padding: 26px 24px 28px; }
.step .seal { width: 40px; height: 40px; border-radius: 6px; background: var(--shu); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; margin-bottom: 18px; box-shadow: inset 0 0 0 3px var(--shu), inset 0 0 0 4px rgba(255, 255, 255, .7); }
.step p { margin: 8px 0 0; color: var(--sumi-2); font-size: 15px; }

/* ── features ────────────────────────── */
.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--kami); padding: 28px 24px 30px; }
.feature .ic { width: 42px; height: 42px; border-radius: 8px; background: var(--shu-soft); color: var(--shu); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature p { margin: 8px 0 0; color: var(--sumi-2); font-size: 15px; }

/* ── promise band ────────────────────── */
.promise { background: var(--sumi); color: var(--kami); }
.promise .wrap { display: grid; gap: 36px; }
@media (min-width: 900px) { .promise .wrap { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; } }
.promise .eyebrow { color: #f08a72; }
.promise .eyebrow::before { background: #f08a72; }
.promise h2 { margin: 14px 0 16px; }
.promise p { color: #cfc8bb; font-weight: 300; font-size: 17px; margin: 0; }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.promise li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid #3d3a33; border-radius: 10px; background: #2d2b25; }
.promise li svg { width: 20px; height: 20px; margin-top: 2px; flex: none; fill: none; stroke: #f08a72; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.promise li b { display: block; font-weight: 600; color: #fff; }
.promise li span { color: #b9b2a5; font-size: 15px; }

/* ── pricing ─────────────────────────── */
.plans { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--kami); border: 1px solid var(--line); border-radius: 12px; padding: 30px 26px 28px; }
.plan .name { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; }
.plan .price strong { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan .price span { color: var(--usuzumi); font-size: 15px; }
.plan .desc { color: var(--sumi-2); font-size: 15px; margin: 6px 0 22px; min-height: 3em; }
.plan ul { list-style: none; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 12px; font-size: 15px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; flex: none; fill: none; stroke: var(--matsu); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plan li.no { color: var(--usuzumi); }
.plan li.no svg { stroke: var(--usuzumi); }
.plan.best { background: var(--sumi); color: var(--kami); border-color: var(--sumi); box-shadow: 0 30px 60px -30px rgba(38, 36, 31, .6); }
.plan.best .price span, .plan.best .desc { color: #c9c2b4; }
.plan.best ul { border-color: #3d3a33; }
.plan.best li svg { stroke: #f08a72; }
.plan .tag { position: absolute; top: -12px; left: 26px; background: var(--shu); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 4px; }
.plans-note { text-align: center; font-size: 14px; color: var(--usuzumi); margin: 28px auto 0; max-width: 640px; }
.plans-note a { color: var(--sumi-2); }

/* ── compare table ───────────────────── */
.compare { width: 100%; border-collapse: collapse; background: var(--kami); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.compare thead th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--usuzumi); font-weight: 600; background: var(--washi-2); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare tr:last-child td { border-bottom: 0; }
.compare .y { color: var(--matsu); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
.table-scroll .compare { min-width: 520px; }

/* ── faq ─────────────────────────────── */
.faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--shu); border-bottom: 2px solid var(--shu); transform: translateY(-75%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { margin: 0 0 22px; color: var(--sumi-2); max-width: 44em; }

/* ── final cta ───────────────────────── */
.final { text-align: center; }
.final .box { background: var(--kami) var(--grain); border: 1px solid var(--line); border-radius: 16px; padding: 56px 24px; position: relative; overflow: hidden; }
.final .box::before { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; background: var(--shu); opacity: .08; transform: rotate(18deg); border-radius: 18px; }
.final h2 { margin-bottom: 14px; }
.final .lede { margin: 0 auto 28px; }

/* ── footer ──────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--washi-2); padding: 48px 0 36px; font-size: 14px; color: var(--sumi-2); }
.site-footer .cols { display: grid; gap: 32px; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--usuzumi); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--shu); }
.site-footer .about { max-width: 30em; margin: 14px 0 0; }
.site-footer .base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--usuzumi); font-size: 13px; }

/* ── legal / prose pages ─────────────── */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin-top: 14px; }
.page-head .updated { color: var(--usuzumi); font-size: 14px; margin-top: 12px; }
.prose { max-width: 760px; padding: 24px 20px 96px; margin: 0 auto; }
.prose-wrap { max-width: var(--wrap); margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: 44px 0 12px; letter-spacing: -0.015em; font-weight: 800; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: var(--sumi-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose a { color: var(--shu); }
.prose .callout { background: var(--kami); border: 1px solid var(--line); border-left: 3px solid var(--shu); border-radius: 8px; padding: 18px 20px; margin: 24px 0; }
.prose .callout p { margin: 0; }
mark.todo { background: #ffe9a8; color: var(--sumi); padding: 1px 4px; border-radius: 3px; font-weight: 600; }

/* contact */
.contact-cards { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 700px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-card { background: var(--kami); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { margin: 0 0 14px; font-size: 15px; }
.contact-card a.big { font-weight: 600; color: var(--shu); font-size: 17px; text-decoration: none; word-break: break-all; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
