/* LyneLocalize, shared styles. Fonts are served locally, no external requests. */

@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --blue: #0B2F52;
  --blue-deep: #082440;
  --primary: #0F4C81;
  --primary-deep: #0B3A64;
  --gold: #B8903A;
  --gold-light: #D4AF5F;
  --green: #0C8048;
  --green-ink: #14603A;
  --green-tint: #E3EFE7;
  --ink: #14283B;
  --muted: #4F5F6E;
  --rule: #DDD6C6;
  --ivory: #F8F5EE;
  --band: #EFE9DB;
  --white: #FFFFFF;
  --alert: #A8281C;
  --alert-tint: #FBECEA;
  --focus: #3A7BD5;
  --head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --text: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--ivory); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--blue); padding: 10px 16px; z-index: 200; border-radius: var(--radius); }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3 { font-family: var(--head); color: var(--ink); margin: 0; }
h1 { font-weight: 600; font-size: clamp(1.9rem, 3.7vw, 2.85rem); line-height: 1.14; letter-spacing: -0.01em; }
h2 { font-weight: 600; font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.22; letter-spacing: -0.005em; }
h3 { font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--ivory); border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 50px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--blue); text-decoration: underline; }
.lang { display: flex; gap: 4px; padding-left: 24px; border-left: 1px solid var(--rule); font-family: var(--head); font-size: 0.85rem; font-weight: 600; }
.lang a { color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 4px; }
.lang a[aria-current="true"] { color: var(--white); background: var(--primary); }
.lang a:not([aria-current="true"]):hover { color: var(--blue); background: var(--band); }

/* buttons */
.btn { display: inline-block; font-family: var(--head); font-weight: 600; font-size: 0.95rem; line-height: 1.2; padding: 14px 24px; border-radius: 6px; border: 2px solid var(--primary); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--primary-deep); }
.btn-secondary:hover { background: var(--band); color: var(--primary-deep); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 18px; }
.fineprint { font-size: 0.92rem; color: var(--muted); max-width: 52ch; margin: 0; }

/* hero */
.hero { padding: 72px 0 84px; background: linear-gradient(135deg, #FBF9F4 0%, #EFE9DB 100%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: start; }
.hero h1 { margin-bottom: 22px; max-width: 20ch; }

/* demo panel: a fictional interface check, one memorable element */
.demo { border: 1px solid var(--rule); border-radius: var(--radius); background: #FFFEFB; overflow: hidden; }
.demo-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 18px; background: #F3E8C8; border-bottom: 1px solid var(--gold); }
.demo-title { font-family: var(--head); font-weight: 600; font-size: 0.95rem; }
.demo-tag { font-size: 0.82rem; color: var(--muted); }
.seg { padding: 16px 18px; border-bottom: 1px solid var(--rule); }
.key { display: block; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }
.line { display: grid; grid-template-columns: 8.4rem 1fr; gap: 10px; align-items: center; margin: 0 0 4px; font-family: var(--mono); font-size: 0.9rem; }
.lc { font-size: 0.74rem; color: var(--muted); }
.btnmock { display: inline-block; width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; border: 1px solid var(--blue); border-radius: 4px; padding: 3px 8px; font-family: var(--mono); font-size: 0.82rem; color: var(--blue); box-sizing: content-box; }
.finding { display: none; margin: 10px 0 0; padding: 9px 12px; border-radius: 6px; font-size: 0.9rem; line-height: 1.5; }
.finding .btnmock { margin-left: 6px; }
.finding.ok { background: var(--green-tint); color: var(--green-ink); }
.finding.warn { background: var(--alert-tint); color: var(--alert); }
.demo-foot { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demo-foot .sum { font-size: 0.88rem; color: var(--muted); }
.toggle { display: inline-block; font-family: var(--head); font-weight: 600; font-size: 0.88rem; color: var(--primary-deep); border: 2px solid var(--primary); border-radius: 6px; padding: 8px 16px; cursor: pointer; }
.toggle:hover { background: var(--band); }
.toggle .on { display: none; }
#check:checked ~ .demo-foot .toggle .on { display: inline; }
#check:checked ~ .demo-foot .toggle .off { display: none; }
#check:checked ~ .seg .finding { display: block; }
#check:focus-visible ~ .demo-foot .toggle { outline: 3px solid var(--focus); outline-offset: 3px; }

/* sections */
.section { padding: 84px 0; }
.band { background: var(--band); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.split > .head p { color: var(--muted); margin-top: 14px; max-width: 38ch; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; }
.step { padding-top: 0; }
.step .n { font-family: var(--head); font-weight: 700; font-size: 1.2rem; line-height: 1; color: #0F4C81; display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--gold); border-radius: 50%; margin-bottom: 16px; padding-top: 1px; box-sizing: border-box; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

.rows { margin: 0; }
.rows > div { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; padding: 22px 0; border-top: 1px solid var(--rule); }
.rows > div:last-child { border-bottom: 1px solid var(--rule); }
.rows dt { font-family: var(--head); font-weight: 600; }
.rows dd { margin: 0; color: var(--muted); }

.limits { border: 1px solid #E3D3A6; border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 26px 30px; background: #FBF5E3; }
.limits h3 { margin-bottom: 10px; }
.limits ul { margin: 12px 0 0; padding-left: 1.2em; }
.limits li { margin-bottom: 4px; }

.facts { margin: 0; }
.facts > div { padding: 14px 0; border-top: 1px solid var(--rule); }
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--head); font-weight: 600; font-size: 0.9rem; color: var(--blue); }
.facts dd { margin: 2px 0 0; }

.contact { background: var(--blue); color: var(--white); padding: 84px 0; border-top: 4px solid var(--gold); }
.contact h2 { color: var(--white); }
.contact p { color: #D6E4F2; max-width: 52ch; margin-top: 14px; }
.contact .cta-row { margin-bottom: 20px; }
.contact .btn-primary { background: var(--gold-light); color: var(--ink); border-color: var(--gold-light); }
.contact .btn-primary:hover { background: #E2C57A; border-color: #E2C57A; color: var(--ink); }
.contact .btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.contact .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.contact a.mail { color: var(--white); }
.contact :focus-visible { outline-color: #BFD9F2; }

footer { padding: 30px 0 40px; font-size: 0.9rem; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--blue); }

/* legal pages */
.legal { max-width: 760px; padding: 64px 24px 72px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.15rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2em; }
mark.ph { background: #FFF1A6; color: #5A4500; padding: 0 0.3em; border-radius: 3px; }
.back { display: inline-block; margin-bottom: 26px; font-size: 0.92rem; }

@media (max-width: 900px) {
  .hero { padding: 48px 0 60px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .rows > div { grid-template-columns: 1fr; gap: 6px; }
  .section, .contact { padding: 60px 0; }
  .split > .head p { max-width: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .lang { border-left: 0; padding-left: 0; }
  .brand img { height: 34px; }
  .bar { min-height: 64px; }
  .btn { width: 100%; text-align: center; }
  .cta-row { flex-direction: column; }
  .line { grid-template-columns: 7.8rem 1fr; font-size: 0.84rem; }
}

.limits ul:first-child { margin-top: 0; }

.legal-line { line-height: 1.5; }
.tagline { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--muted); }

.portrait { margin: 30px 0 0; width: 272px; height: 272px; border: 2px solid var(--gold); border-radius: 50%; background: #FBF5E3; padding: 0; overflow: hidden; }
.portrait img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; border-radius: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; }

.intro { border-left: 3px solid var(--gold); padding-left: 22px; margin-bottom: 1.4em; }
.intro p:last-child { margin-bottom: 0; }

.step { text-align: center; }
.step .n { margin-left: auto; margin-right: auto; }
@media (max-width: 900px) { .portrait { margin-left: auto; margin-right: auto; } }

.intro p:first-child { font-family: var(--head); font-weight: 600; font-size: 1.2rem; line-height: 1.4; color: var(--ink); }

.nav-cta { display: none; }
@media (max-width: 720px) {
  .nav-cta { display: inline-block; font-family: var(--head); font-weight: 600; font-size: 0.82rem; line-height: 1; padding: 9px 12px; border: 2px solid var(--primary); border-radius: 6px; color: var(--primary-deep); text-decoration: none; white-space: nowrap; }
  .site-header nav { gap: 10px; }
  .bar { gap: 10px; }
  .brand img { height: 30px; }
  .lang { gap: 2px; font-size: 0.8rem; }
  .lang a { padding: 4px 6px; }
}
