/* Kotoda – kotoda.hu. One stylesheet for the whole site. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/fraunces-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/fraunces-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f6f2ea;      /* washi paper */
  --paper-2: #efe8db;
  --card: #fffdf8;
  --ink: #1d1b18;        /* sumi ink */
  --ink-2: #4f4a42;
  --muted: #776f63;
  --line: #e1d8c7;
  --seal: #c23b22;       /* hanko vermilion */
  --seal-dark: #9e2d18;
  --seal-tint: #f6e0d6;
  --ok: #2f6b45;
  --ok-tint: #dcefe2;
  --del-tint: #f8dcd5;
  --radius: 14px;
  --header-h: 68px;
  --wrap: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); }
img, svg { max-width: 100%; display: block; }
a { color: var(--seal-dark); text-underline-offset: 3px; }
a:hover { color: var(--seal); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; font-variation-settings: "opsz" 24; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--seal); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 242, 234, .94); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.45rem/1 var(--serif); letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--seal); }
.nav a.btn { color: #fff; }
.burger { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.burger span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--seal); color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--seal); transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--seal-dark); border-color: var(--seal-dark); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { padding: 9px 16px; font-size: .9rem; }

/* Sections */
section { padding: clamp(64px, 9vw, 112px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--seal-dark); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--seal); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.alt { background: var(--paper-2); }
.dark { background: var(--ink); color: #efe9dd; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: #f0a38f; }
.dark p { color: #cfc7b8; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--seal); }
.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 580px; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 16px; height: 16px; flex: none; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23c23b22' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Editor mock in the hero */
.mock { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(60, 40, 20, .35), 0 2px 0 rgba(255,255,255,.6) inset; padding: 18px; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar span { margin-left: auto; }
.bubble { background: var(--ink); color: #f5efe4; border-radius: 16px 16px 4px 16px; padding: 12px 15px; font-size: .94rem; line-height: 1.5; margin: 0 0 16px 14%; }
.bubble small { display: block; color: #b9b0a0; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }
.diff { border: 1px dashed #d6c9b3; border-radius: 12px; padding: 14px 16px; background: #fffaf2; font-size: .95rem; }
.diff b { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 6px; }
.diff p { margin: 0 0 4px; color: var(--ink-2); }
.diff del { background: var(--del-tint); color: var(--seal-dark); text-decoration-thickness: 2px; padding: 0 4px; border-radius: 4px; }
.diff ins { background: var(--ok-tint); color: var(--ok); text-decoration: none; font-weight: 700; padding: 0 4px; border-radius: 4px; }
.checks { list-style: none; padding: 0; margin: 14px 0 16px; display: grid; gap: 6px; font-size: .86rem; color: var(--ok); font-weight: 600; }
.checks li { display: flex; gap: 8px; align-items: center; }
.checks li::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-tint); font-size: .72rem; }
.mock-actions { display: flex; justify-content: flex-end; gap: 8px; }
.mock-actions span { font-size: .84rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--ink); }
.mock-actions span.go { background: var(--seal); border-color: var(--seal); color: #fff; }
.seal-stamp { position: absolute; left: -20px; bottom: -22px; width: 66px; height: 66px; transform: rotate(-8deg); filter: drop-shadow(0 6px 10px rgba(120, 30, 10, .25)); }

/* Problem cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-2); font-size: .98rem; }
.pain h3 { font-size: 1.12rem; }
.pain .n { font: 600 .85rem/1 var(--serif); color: var(--seal); display: block; margin-bottom: 14px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--seal); color: #fff; font: 600 1.2rem/1 var(--serif); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 54px; right: -6px; border-top: 2px dotted #cdbfa7; }
.steps p { color: var(--ink-2); font-size: .98rem; }

/* Editing */
.option { position: relative; }
.option .tag { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--seal-tint); color: var(--seal-dark); margin-bottom: 14px; }
.option .tag.free { background: var(--ok-tint); color: var(--ok); }
.flow { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.flow li { padding: 22px 20px; border-right: 1px solid var(--line); }
.flow li:last-child { border-right: 0; }
.flow b { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 6px; }
.flow span { display: block; color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.flow em { display: block; font-style: normal; font: 600 .75rem/1 var(--sans); letter-spacing: .1em; color: var(--seal); margin-bottom: 10px; }
.note { margin-top: 26px; color: var(--ink-2); }

/* Benefits */
.benefit h3 { display: flex; align-items: center; gap: 12px; }
.benefit svg { width: 26px; height: 26px; flex: none; color: var(--seal); }
.dark .card { background: #27241f; border-color: #3a352d; }
.dark .card p { color: #cfc7b8; }
.dark .benefit svg { color: #f0a38f; }

/* Price */
.price-box { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.price-main { background: var(--ink); color: #f3ede2; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; }
.price-main .from { font-weight: 700; color: #cfc7b8; font-size: .95rem; }
.price-main .amount { font: 600 clamp(2.6rem, 5vw, 3.6rem)/1.05 var(--serif); color: #fff; margin: 6px 0 4px; letter-spacing: -0.02em; }
.price-main .once { color: #f0a38f; font-weight: 700; margin-bottom: 22px; }
.price-main p { color: #cfc7b8; font-size: .96rem; }
.price-main .btn { margin-top: auto; align-self: flex-start; }
.price-detail { padding: clamp(28px, 4vw, 44px); }
.price-detail h3 { font-size: 1.1rem; }
.ticks, .dashes { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; }
.ticks li, .dashes li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: .98rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%232f6b45' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.dashes li::before { content: "–"; position: absolute; left: 4px; top: 0; color: var(--muted); font-weight: 700; }
.dashes li:last-child, .ticks li:last-child { margin-bottom: 0; }
.fit { margin-top: 22px; padding: 18px 22px; border-left: 4px solid var(--seal); background: var(--seal-tint); border-radius: 0 12px 12px 0; color: var(--ink-2); }
.fit p { margin: 0; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 600 1.14rem/1.4 var(--serif); }
.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(--seal); border-bottom: 2px solid var(--seal); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-2); margin: 0 0 20px; max-width: 720px; }

/* About */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.kanji { font: 600 clamp(4rem, 9vw, 7rem)/1 "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", "Noto Serif JP", serif; color: var(--seal); margin-bottom: 14px; letter-spacing: .05em; }
.kanji small { display: block; font: 600 .95rem/1.4 var(--sans); color: var(--muted); letter-spacing: .04em; margin-top: 10px; }
.quote { font: 400 1.35rem/1.5 var(--serif); color: var(--ink); border-left: 3px solid var(--seal); padding-left: 20px; margin: 0 0 22px; }

/* Contact */
.contact { text-align: center; }
.contact .wrap { max-width: 760px; }
.contact .mail { display: inline-block; font: 600 clamp(1.5rem, 4vw, 2.3rem)/1.2 var(--serif); color: #fff; text-decoration: none; border-bottom: 2px solid var(--seal); margin: 10px 0 28px; word-break: break-word; }
.contact .mail:hover { color: #f0a38f; }
.contact .hint { font-size: .95rem; }

/* Footer */
.site-footer { background: #141310; color: #a59d8f; padding: 36px 0; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; align-items: center; }
.site-footer a { color: #d9d1c3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #f3ede2; font-size: 1.2rem; }
.site-footer .brand svg { width: 28px; height: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Legal / plain pages */
.page { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 96px); }
.page .wrap { max-width: 780px; }
.page h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal-table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .98rem; }
.legal-table th { width: 38%; color: var(--muted); font-weight: 700; }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 0; }
mark.todo { background: #ffe9a8; color: #6b4b00; padding: 0 4px; border-radius: 4px; font-weight: 700; }
.page ul { color: var(--ink-2); }
.notfound { text-align: center; padding: 120px 0; }
.notfound .kanji { margin-inline: auto; }

/* Responsive */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .steps li::after { display: none; }
  .flow { grid-template-columns: 1fr; }
  .flow li { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; }
  .flow li em { grid-row: span 2; margin: 3px 0 0; }
  .flow li:last-child { border-bottom: 0; }
}
@media (max-width: 880px) {
  .burger { display: block; }
  .site-header { background: var(--paper); }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100dvh - var(--header-h)); background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 30px; border-top: 1px solid var(--line); transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; overflow-y: auto; }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav a.btn { margin-top: 20px; justify-content: center; border-bottom: 2px solid var(--seal); }
  .nav-open { overflow: hidden; }
  .hero .wrap, .about .wrap, .price-box { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .mock { max-width: 520px; }
  .seal-stamp { left: -6px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-4, .steps { grid-template-columns: 1fr; }
  .bubble { margin-left: 0; }
  .price-main .amount { font-size: 2.35rem; }
  .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table th { padding-bottom: 0; border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
