/* Localized landing pages (/de/, /fr/, /ja/, /ko/). Loaded after shared.css by
   _layouts/localized.html only. */

/* --- CJK typography ------------------------------------------------------
   Inter has no Japanese or Korean glyphs, so name the platform fonts that do,
   and drop the tight Latin letter-spacing, which crowds CJK text. */
:lang(ja) body, :lang(ja) .btn, :lang(ja) .faq-question, :lang(ja) .nav-dropdown__toggle {
    font-family: 'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif;
}
:lang(ko) body, :lang(ko) .btn, :lang(ko) .faq-question, :lang(ko) .nav-dropdown__toggle {
    font-family: 'Inter', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}
:lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2 { letter-spacing: 0; line-height: 1.35; }
:lang(ja) .eyebrow, :lang(ko) .eyebrow { letter-spacing: .04em; text-transform: none; }
:lang(ja) .l10n-hero h1, :lang(ko) .l10n-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
:lang(ja) h1, :lang(ja) h2 { word-break: auto-phrase; }
:lang(ja) { line-break: strict; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) p, :lang(ko) li { word-break: keep-all; overflow-wrap: anywhere; }

/* --- Hero ------------------------------------------------------------------ */
.l10n-hero { padding: 72px 0 64px; background: radial-gradient(1200px 500px at 80% 0%, rgba(37,99,235,.08), transparent 60%), var(--bg); }
.l10n-hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.l10n-hero h1 span { display: block; color: var(--blue); }
.l10n-hero .lead { margin: 20px 0 28px; }
.l10n-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.l10n-hero__note { margin-top: 14px; font-size: .9rem; color: var(--ink-muted); }
.l10n-hero__visual { display: flex; justify-content: center; }
.l10n-hero__visual img { width: 280px; height: auto; border-radius: 36px; box-shadow: var(--shadow-lg); border: 8px solid #111827; background: #111827; }
.l10n-qr { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 14px 18px 14px 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); max-width: 420px; }
.l10n-qr img { width: 96px; height: 96px; flex-shrink: 0; }
.l10n-qr p { margin: 0; font-size: .88rem; color: var(--ink-muted); line-height: 1.6; }
.l10n-qr strong { color: var(--ink); }
.is-ios .l10n-qr { display: none; }

/* --- Steps ----------------------------------------------------------------- */
.l10n-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.l10n-steps li { position: relative; padding: 28px 24px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-xs); }
.l10n-steps__num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%; background: var(--blue-dim); color: var(--blue); font-weight: 700; }
.l10n-steps p { font-size: .94rem; color: var(--ink-muted); line-height: 1.75; }

/* --- Features: six cards, so three columns rather than auto-fit's 4 + 2 --- */
#features .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --- Principles ------------------------------------------------------------ */
.l10n-principles { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.l10n-principles .lead { margin-top: 12px; }
.l10n-principles .check-list { margin: 0; gap: 16px; }
.l10n-principles .check-list strong { color: var(--ink); }

/* --- Final CTA ------------------------------------------------------------- */
.l10n-final .lead { margin: 12px auto 28px; }
.l10n-final__note { margin-top: 14px; font-size: .88rem; color: rgba(248,250,252,.6) !important; }

/* --- Footer ---------------------------------------------------------------- */
.l10n-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 28px; }
.l10n-footer__top p { max-width: 420px; margin-top: 10px; font-size: .88rem; color: #CBD5E1; }
.l10n-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .88rem; }
.l10n-footer__links a { color: #CBD5E1; }
.l10n-footer__links a:hover { color: #fff; }

/* --- Responsive ------------------------------------------------------------ */
/* German and French menu labels are longer than the English ones, so the
   navbar switches to the drawer earlier than shared.css's 900px. */
@media (max-width: 1060px) {
    .nav-links, .nav-lang { display: none; }
    .hamburger { display: block; }
}
@media (max-width: 900px) {
    .l10n-hero__inner, .l10n-principles { grid-template-columns: 1fr; }
    .l10n-hero { padding: 48px 0; }
    .l10n-hero__visual img { width: 240px; }
    .l10n-steps { grid-template-columns: 1fr; }
    #features .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .l10n-qr { display: none; }
}
@media (max-width: 560px) {
    #features .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .nav-cta__btn.btn { padding: 9px 14px; font-size: .82rem; }
    .l10n-hero__cta .btn, .l10n-final .btn, .l10n-cta .btn, .l10n-teaser .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
}

/* --- Localized tool and printable pages (/xx/tools/…) -----------------------
   The same components as the English pages, which keep this CSS in their own
   front matter (extra_css). */
.printable-intro { max-width: 800px; }
.printable-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px 0 12px; }
h2[id] { scroll-margin-top: 92px; }
.printable-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.printable-card { padding: 28px; border: 1px solid var(--border); border-radius: 20px; background: var(--bg); }
.printable-card h3 { margin: 24px 0 12px; font-size: 1.4rem; }
.printable-preview { display: flex; align-items: center; justify-content: center; height: 310px; padding: 18px; background: var(--bg-alt); border-radius: 12px; }
.printable-preview img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(30,40,60,.1)); }
.printable-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 20px; }
.printable-downloads .btn { font-size: .9rem; padding: 12px 18px; }
.printable-card small { color: var(--ink-muted); }
.printable-card h4 { margin: 20px 0 8px; }
@media (max-width: 760px) {
  .printable-grid { grid-template-columns: 1fr; }
  .printable-card { padding: 20px; }
  .printable-preview { height: 250px; }
}
.idea-table td:first-child { font-weight: 600; color: var(--ink); }
.printable-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; padding: 28px; border: 1px solid var(--border); border-radius: 20px; background: var(--bg); }
.printable-feature h3 { margin: 0 0 12px; font-size: 1.4rem; }
.printable-feature .printable-preview { display: flex; align-items: center; justify-content: center; height: 420px; padding: 18px; background: var(--bg-alt); border-radius: 12px; }
.printable-feature .printable-downloads { margin: 16px 0 20px; }
.printable-feature small { color: var(--ink-muted); }
.printable-feature ul { margin: 12px 0 0 20px; color: var(--ink-2); list-style: disc; }
.pixels-example { display: grid; gap: 6px; margin: 24px 0 12px; }
.pixels-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 8px; }
.pixels-month { font-size: .75rem; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; }
.pixels-cells { display: grid; grid-template-columns: repeat(31, minmax(0, 1fr)); gap: 2px; }
.px { display: block; aspect-ratio: 1; border-radius: 2px; }
.px--1 { background: #1E3A8A; }
.px--2 { background: #2563EB; }
.px--3 { background: #60A5FA; }
.px--4 { background: #BFDBFE; }
.px--5 { background: #EEF2F7; box-shadow: inset 0 0 0 1px #CBD5E1; }
.px--none { background: transparent; }
.pixels-key { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 8px 0 0; padding: 0; font-size: .9rem; color: var(--ink-2); }
.pixels-key li { display: flex; align-items: center; gap: 6px; }
.pixels-key .px { width: 14px; }
.pixels-caption { font-size: .9rem; color: var(--ink-muted); }
@media (max-width: 760px) {
  .printable-feature { grid-template-columns: 1fr; padding: 20px; }
  .printable-feature .printable-preview { height: 320px; }
  .pixels-cells { gap: 1px; }
  .pixels-row { grid-template-columns: 28px minmax(0, 1fr); gap: 4px; }
}
.calc-intro { max-width: 800px; }
.calc-card { max-width: 880px; padding: 28px; border: 1px solid var(--border); border-radius: 20px; background: var(--bg); box-shadow: var(--shadow-sm); }
.calc-card + .calc-card { margin-top: 24px; }
.calc-card h2 { margin: 0 0 6px; font-size: 1.35rem; }
.calc-card > p { color: var(--ink-muted); margin-bottom: 20px; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.calc-form { display: grid; gap: 18px; }
.calc-field label, .calc-field legend { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.calc-field input[type="date"], .calc-field input[type="number"] { width: 100%; font: inherit; font-size: 1rem; padding: 11px 14px; border: 1px solid var(--border-hover); border-radius: 12px; background: var(--bg); color: var(--ink); }
.calc-field input:focus-visible { outline: 3px solid var(--blue-glow); border-color: var(--blue); }
.calc-field fieldset, fieldset.calc-field { border: 0; padding: 0; margin: 0; }
.calc-choice { display: flex; gap: 10px; flex-wrap: wrap; }
.calc-choice label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; padding: 9px 14px; border: 1px solid var(--border-hover); border-radius: 50px; cursor: pointer; }
.calc-choice label:has(input:checked) { border-color: var(--blue); background: var(--blue-dim); color: var(--blue-dark); }
.calc-hint { font-size: .85rem; color: var(--ink-muted); margin-top: 6px; }
.calc-result { padding: 22px; border-radius: 16px; background: var(--bg-alt); }
.calc-big { font-size: 3rem; line-height: 1; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin: 0; }
.calc-big small { font-size: 1rem; font-weight: 600; color: var(--ink-muted); letter-spacing: 0; margin-left: 6px; }
.calc-line { margin: 12px 0 0; color: var(--ink-2); font-size: .98rem; }
.calc-error { color: #B42318; font-weight: 600; }
.calc-bar { height: 8px; border-radius: 8px; background: var(--border); margin-top: 16px; overflow: hidden; }
.calc-bar span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 8px; transition: width .3s ease; }
.milestones { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.milestones li { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; font-size: .9rem; color: var(--ink-2); }
.milestones li strong { display: block; color: var(--ink); font-size: 1rem; }
.milestones li.is-done { border-color: rgba(37,99,235,.35); background: var(--blue-dim); }
.milestones li.is-done strong::after { content: ' ✓'; color: var(--blue); }
.calc-note { font-size: .85rem; color: var(--ink-muted); margin-top: 18px; }
@media (max-width: 760px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-card { padding: 20px; }
  .calc-big { font-size: 2.4rem; }
  .milestones { grid-template-columns: 1fr 1fr; gap: 8px; }
  .milestones li { padding: 10px 12px; font-size: .82rem; }
}
.tools-intro { max-width: 800px; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tool-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--bg); color: inherit; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.tool-card:hover, .tool-card:focus-visible { border-color: var(--border-hover); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tool-card__preview { display: flex; align-items: center; justify-content: center; height: 230px; padding: 16px; background: var(--bg-alt); border-radius: 12px; margin-bottom: 20px; }
.tool-card__preview img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(30,40,60,.1)); }
.tool-card__calc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.tool-card__calc strong { font-size: 3.4rem; line-height: 1; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.tool-card__calc span { font-size: .9rem; font-weight: 600; color: var(--ink-muted); }
.tool-card__calc em { font-style: normal; font-size: .8rem; padding: 4px 10px; border-radius: 50px; background: var(--blue-dim); color: var(--blue-dark); margin-top: 8px; }
.tool-card .eyebrow { align-self: flex-start; }
.tool-card h3 { font-size: 1.3rem; margin: 6px 0 8px; color: var(--ink); }
.tool-card p { color: var(--ink-2); margin: 0 0 14px; }
.tool-card small { color: var(--ink-muted); }
.tool-card .feature-card__cta { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--blue); }
@media (max-width: 760px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card__preview { height: 200px; }
}
.l10n-cta .lead { margin: 12px auto 28px; }
.l10n-cta__note { margin-top: 14px; font-size: .88rem; color: rgba(248,250,252,.6) !important; }
@media (max-width: 480px) {
    .printable-downloads .btn, .printable-links .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
}
