/* Laymetrics marketing site: shared design system.
   Static, no framework, no build. Native CSS with custom properties.
   Fonts (Geist, Geist Mono) and icons (Phosphor) are self-hosted under fonts/.

   Rules this file follows, so edits stay consistent:
   - One theme at a time (light or dark, never a mix mid-page). Tokens below swap under
     prefers-color-scheme, or under [data-theme] when the visitor uses the toggle.
   - One accent: the teal in the logo. Gold appears in the logo only.
   - Shape scale: controls (buttons, inputs, tabs) 10px, surfaces (cards, panels, images) 16px, tags 6px.
   - Motion animates transform and opacity only, and is switched off under prefers-reduced-motion.
   - z-index: the sticky header (40) is the only layered element. */

@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f6f8fa;
  --surface: #fcfdfe;
  --surface-2: #edf1f5;
  --line: #d9e1ea;
  --text: #0c1b2e;
  --muted: #4a5b72;
  --accent: #2ec4b6;          /* fills; always paired with --accent-ink text */
  --accent-ink: #06202b;
  --accent-text: #0b7a70;     /* accent used as text/link colour on --bg */
  --accent-soft: rgba(46, 196, 182, 0.14);
  --danger: #b42318;          /* error text only (form validation); not a second accent */
  --panel: #0b2545;          /* deep navy surface, the same in both themes */
  --panel-text: #eef3f9;
  --shadow: 0 1px 2px rgba(11, 37, 69, 0.06), 0 12px 32px -16px rgba(11, 37, 69, 0.22);
  --header-bg: rgba(246, 248, 250, 0.86);
  --logo-light: block;
  --logo-dark: none;

  --r-control: 10px;
  --r-surface: 16px;
  --r-tag: 6px;
  --max: 1200px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a1424;
    --surface: #101c30;
    --surface-2: #0d192b;
    --line: #20324f;
    --text: #e8eef6;
    --muted: #9db0c8;
    --accent-text: #2ec4b6;
    --accent-soft: rgba(46, 196, 182, 0.12);
    --danger: #ff8f84;
    --panel: #13284a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
    --header-bg: rgba(10, 20, 36, 0.86);
    --logo-light: none;
    --logo-dark: block;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1424;
  --surface: #101c30;
  --surface-2: #0d192b;
  --line: #20324f;
  --text: #e8eef6;
  --muted: #9db0c8;
  --accent-text: #2ec4b6;
  --accent-soft: rgba(46, 196, 182, 0.12);
  --danger: #ff8f84;
  --panel: #13284a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(10, 20, 36, 0.86);
  --logo-light: none;
  --logo-dark: block;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, .legal-doc li a, .legal-doc a, .checklist a, .callout a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover, .legal-doc li a:hover, .legal-doc a:hover, .checklist a:hover, .callout a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.4vw, 3.6rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
p { margin: 0 0 1em; color: var(--muted); max-width: 65ch; }
ul { padding-left: 1.2em; color: var(--muted); }
li { margin-bottom: 0.4em; }
strong { color: var(--text); font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; }
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 60px 0; } }

.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--muted); max-width: 56ch; }
.center { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; display: inline-block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--r-control);
  font: 600 0.95rem/1 var(--font); letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 8px 20px -8px rgba(46, 196, 182, 0.7); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--muted); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .ph { font-size: 1.1em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); }
/* The blur lives on a pseudo-element, not the header itself: backdrop-filter on an element makes it the containing
   block for fixed-position descendants, which would trap the mobile menu inside the 68px header. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--header-bg); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
/* The logo files have ~60px of empty margin inside a 530x200 canvas, so the image is positioned inside a
   clipped box sized to the artwork. Light theme shows the navy logo, dark theme the white one. */
.brand-logo { position: relative; display: block; overflow: hidden; width: 160px; height: 31px; flex-shrink: 0; }
.brand-logo img { position: absolute; left: -24px; top: -24.5px; width: 212px; height: auto; max-width: none; }
.brand-logo .logo-light { display: var(--logo-light); }
.brand-logo .logo-dark { display: var(--logo-dark); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links > a { padding: 8px 12px; border-radius: var(--r-control); font-size: 0.93rem; font-weight: 500; color: var(--muted); transition: color 0.2s, background-color 0.2s; white-space: nowrap; }
.nav-links > a:hover, .nav-links > a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.theme-toggle, .nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-control); color: var(--text); cursor: pointer; font-size: 1.3rem;
}
.theme-toggle:hover, .nav-toggle:hover { background: var(--surface-2); }
.theme-toggle .ph-moon { display: inline; }
.theme-toggle .ph-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ph-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ph-sun { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ph-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .ph-sun { display: inline; }
}
.nav-toggle { display: none; }
.mobile-actions { display: none; }

@media (max-width: 980px) {
  .nav { gap: 12px; }
  .nav-toggle { display: inline-flex; order: 3; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn-ghost { display: none; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0; margin: 0; padding: 24px;
    background: var(--bg); flex-direction: column; align-items: stretch; gap: 4px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform 0.3s var(--ease), visibility 0s 0.3s;
  }
  .nav-links.open { transform: none; visibility: visible; transition: transform 0.3s var(--ease); }
  .nav-links > a { font-size: 1.15rem; padding: 14px 8px; color: var(--text); }
  .mobile-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
}
/* On phones the header only has room for the logo, theme toggle and menu button. Start free stays in the menu and hero. */
@media (max-width: 560px) { .nav { padding: 0 16px; } .nav-actions .btn-primary { display: none; } }

/* Hero (home) */
.hero { padding: 56px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 56px; align-items: center; min-height: min(calc(100dvh - 68px - 56px), 720px); }
.hero h1 { max-width: 13em; font-size: clamp(2.2rem, 3.5vw, 3.1rem); }
.hero .lede { margin: 20px 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; padding-bottom: 56px; }
.hero-photo { aspect-ratio: 4 / 4.3; max-height: 500px; width: 100%; object-fit: cover; border-radius: var(--r-surface); background: var(--surface-2); }
.calc {
  position: absolute; left: -40px; bottom: 0; width: min(400px, 88%);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface);
  padding: 20px; box-shadow: var(--shadow);
}
.calc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.calc-head strong { font-size: 0.98rem; }
.calc-head span { font-size: 0.78rem; color: var(--muted); }
.calc-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.calc label { display: flex; flex-direction: column; gap: 6px; font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.calc input {
  width: 100%; min-height: 40px; padding: 0 10px; font: 500 0.95rem var(--mono); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-control);
}
.calc input:focus { outline: 2px solid var(--accent-text); outline-offset: 1px; border-color: transparent; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.calc-out dt { font-size: 0.78rem; color: var(--muted); }
.calc-out dd { margin: 2px 0 0; font: 600 1.25rem var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-out dd.is-due { color: var(--accent-text); }
.calc-foot { margin: 0; font-size: 0.78rem; line-height: 1.45; }
@media (max-width: 980px) {
  .hero { padding: 40px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .hero h1 { max-width: 16em; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .calc { position: relative; left: 0; width: 100%; margin-top: -48px; }
  .hero-visual { padding: 0 12px; }
}
@media (max-width: 480px) { .calc-fields { grid-template-columns: 1fr 1fr; } .calc-fields label:last-child { grid-column: 1 / -1; } }

/* Context band (home) */
.facts { padding: 0 0 96px; }
.facts-grid { display: grid; grid-template-columns: 1fr 0.9fr 1.35fr 1.1fr; border-top: 1px solid var(--line); }
.fact { padding: 32px 32px 0 0; }
.fact + .fact { padding-left: 32px; border-left: 1px solid var(--line); }
.fact .num { font: 600 clamp(1.25rem, 2vw, 1.75rem) var(--mono); letter-spacing: -0.05em; margin-bottom: 8px; white-space: nowrap; }
.fact p { margin: 0; font-size: 0.95rem; }
@media (max-width: 1000px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact, .fact + .fact { padding: 28px 24px 0 0; border-left: 0; }
  .fact:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact, .fact + .fact, .fact:nth-child(even) { padding: 24px 0 0; border-left: 0; }
}

/* Section heading (stacked) */
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { margin-bottom: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* Bento (home features): exactly four cells */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cell { position: relative; border-radius: var(--r-surface); padding: 32px; min-height: 290px; display: flex; flex-direction: column; overflow: hidden; transition: transform 0.35s var(--ease); }
a.cell:hover { transform: translateY(-3px); }
.cell h3 { margin-bottom: 10px; font-size: 1.35rem; }
.cell p { margin: 0; font-size: 0.98rem; }
.cell .ph { font-size: 1.6rem; margin-bottom: auto; padding-bottom: 28px; }
.cell-engine { grid-column: span 4; background: var(--panel); color: var(--panel-text); isolation: isolate; }
.cell-engine::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../image/sea-storm.jpg") center / cover; opacity: 0.5; }
.cell-engine::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--panel) 18%, rgba(11, 37, 69, 0.55)); }
.cell-engine h3 { color: #fff; }
.cell-engine p { color: rgba(238, 243, 249, 0.82); max-width: 46ch; }
.cell-engine .ph { color: var(--accent); }
.clause-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.clause-tags span { font: 500 0.8rem var(--mono); padding: 6px 10px; border-radius: var(--r-tag); border: 1px solid rgba(238, 243, 249, 0.28); color: #fff; }
.cell-ai { grid-column: span 2; background: var(--surface-2); border: 1px solid var(--line); }
.cell-claims { grid-column: span 2; background: var(--accent-soft); border: 1px solid var(--line); }
.cell-claims .ph, .cell-ai .ph { color: var(--accent-text); }
.cell-exports { grid-column: span 4; background: var(--surface); border: 1px solid var(--line); flex-direction: row; gap: 40px; align-items: stretch; }
.cell-exports .cell-copy { flex: 1; display: flex; flex-direction: column; }
.format-list { list-style: none; margin: 0; padding: 0; min-width: 200px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.format-list li { margin: 0; display: flex; justify-content: space-between; gap: 24px; font: 500 0.9rem var(--mono); color: var(--text); padding: 10px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-control); }
.format-list li span { color: var(--muted); }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .cell-engine, .cell-ai, .cell-claims, .cell-exports { grid-column: auto; }
  .cell-exports { flex-direction: column; gap: 24px; }
  .cell { min-height: 0; padding: 26px; }
}

/* Steps (sticky heading + stacked steps) */
.steps-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.steps-layout .sticky { position: sticky; top: 108px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 32px 0; border-top: 1px solid var(--line); margin: 0; color: var(--muted); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .ph { font-size: 1.6rem; color: var(--accent-text); }
.steps h3 { margin-bottom: 8px; color: var(--text); }
.steps p { margin: 0; }
@media (max-width: 900px) { .steps-layout { grid-template-columns: 1fr; gap: 32px; } .steps-layout .sticky { position: static; } }

/* Full-bleed photo statement */
.photo-band { position: relative; isolation: isolate; padding: 120px 0; color: #fff; overflow: hidden; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../image/sea-wave.jpg") center 40% / cover; }
.photo-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 24, 46, 0.92) 0%, rgba(8, 24, 46, 0.7) 55%, rgba(8, 24, 46, 0.35) 100%); }
.photo-band h2 { color: #fff; max-width: 20ch; margin-bottom: 18px; }
.photo-band p { color: rgba(255, 255, 255, 0.85); max-width: 52ch; }
.photo-band .text-link { color: var(--accent); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 8px; }
.photo-band .text-link:hover { gap: 12px; }
.band-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.band-grid h2 { max-width: 14ch; }
.claims { list-style: none; margin: 0; padding: 0; }
.claims li { margin: 0; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.claims li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.claims h3 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.claims p { margin: 0; color: rgba(255, 255, 255, 0.85); max-width: 46ch; }
@media (max-width: 900px) { .band-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 720px) { .photo-band { padding: 72px 0; } }

/* Price ladder (home) */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.ladder-item { padding: 28px 24px 8px 0; }
.ladder-item + .ladder-item { padding-left: 24px; border-left: 1px solid var(--line); }
.ladder-item h3 { font-size: 1rem; font-weight: 500; color: var(--muted); margin-bottom: 8px; letter-spacing: -0.01em; }
.ladder-item .price { font: 600 2.1rem var(--mono); letter-spacing: -0.05em; color: var(--text); }
.ladder-item .price small { font-size: 0.85rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.ladder-item p { margin: 8px 0 0; font-size: 0.93rem; }
.ladder-cta { margin-top: 36px; }
@media (max-width: 900px) {
  .ladder { grid-template-columns: 1fr 1fr; }
  .ladder-item, .ladder-item + .ladder-item { padding: 24px 16px 8px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) { .ladder { grid-template-columns: 1fr; } }

/* Closing CTA panel */
.cta-band { padding: 0 0 96px; }
.cta-panel { background: var(--panel); color: var(--panel-text); border-radius: var(--r-surface); padding: 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-panel h2 { color: #fff; margin: 0 0 10px; max-width: 18ch; }
.cta-panel p { color: rgba(238, 243, 249, 0.8); margin: 0; }
.cta-panel .btn-outline { color: #fff; border-color: rgba(238, 243, 249, 0.35); }
.cta-panel .btn-outline:hover { border-color: #fff; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) { .cta-panel { padding: 36px 24px; } .cta-band { padding-bottom: 60px; } }

/* Inner page hero */
.page-hero { padding: 80px 0 24px; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { margin-bottom: 0; }
.page-hero + section { padding-top: 56px; }
@media (max-width: 720px) { .page-hero { padding: 48px 0 8px; } }

/* Generic layouts */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 72px; align-items: start; }
.two-col.flip { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .two-col, .two-col.flip { grid-template-columns: 1fr; gap: 32px; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); padding: 28px; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
a.card { transition: transform 0.3s var(--ease), border-color 0.2s; display: block; }
a.card:hover { transform: translateY(-3px); border-color: var(--muted); }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-control); background: var(--accent-soft); color: var(--accent-text); font-size: 1.4rem; margin-bottom: 18px; }
.tinted { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; transition: gap 0.25s var(--ease); }
.text-link:hover { gap: 12px; }
.skip { position: absolute; left: 16px; top: -64px; padding: 12px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 600; border-radius: var(--r-control); z-index: 41; transition: top 0.2s; }
.skip:focus { top: 12px; }
.rule-top { border-top: 1px solid var(--line); }

/* Feature checklist (replaces ticked boxes) */
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin: 0; color: var(--text); font-size: 0.98rem; }
.checklist .ph { color: var(--accent-text); font-size: 1.15rem; margin-top: 2px; flex-shrink: 0; }
.checklist .ph-minus { color: var(--muted); }
.checklist li.off { color: var(--muted); }

/* Definition rows (export formats etc.) */
.def-rows { margin: 0; border-top: 1px solid var(--line); }
.def-row { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.def-row dt { font: 600 1.2rem var(--mono); letter-spacing: -0.03em; }
.def-row dd { margin: 0; color: var(--muted); }
@media (max-width: 620px) { .def-row { grid-template-columns: 1fr; gap: 6px; } }

/* Callout */
.callout { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-control); background: var(--surface); padding: 16px 20px; font-size: 0.95rem; color: var(--muted); margin: 28px 0; }
.callout p { margin: 0; }
.legal-callout { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-control); background: var(--surface); padding: 16px 20px; font-size: 0.95rem; color: var(--muted); margin: 24px 0; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); padding: 28px; position: relative; }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--accent-ink); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-tag); }
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .plan-desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; min-height: 2.8em; }
.plan .price { font: 600 2.6rem var(--mono); letter-spacing: -0.05em; color: var(--text); line-height: 1; }
.plan .price small { font-size: 0.9rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .price.custom { font: 600 1.7rem var(--font); letter-spacing: -0.03em; padding: 0.35rem 0; }
.plan .checklist { margin: 24px 0; gap: 12px; }
.plan .checklist li { font-size: 0.93rem; }
.plan .btn { margin-top: auto; }
@media (max-width: 1060px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1060px) { .pricing-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pricing-grid.cols-3 { grid-template-columns: 1fr; } }
.plan-group-title { font-size: 1.15rem; font-weight: 600; color: var(--muted); letter-spacing: -0.01em; margin: 0 0 20px; }
.pricing-grid + .plan-group-title { margin-top: 48px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--surface); }
table.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.95rem; }
table.compare th, table.compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { font-weight: 600; background: var(--surface-2); }
table.compare td:first-child { color: var(--text); font-weight: 500; }
table.compare td { color: var(--muted); }
table.compare td.yes { color: var(--accent-text); font-weight: 600; }
table.compare tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-list { border-top: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 0; font: 600 1.05rem/1.35 var(--font); letter-spacing: -0.02em; color: var(--text); }
.faq-q .ph { flex-shrink: 0; font-size: 1.15rem; color: var(--muted); transition: transform 0.3s var(--ease); }
.faq-item.open .faq-q .ph { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding-bottom: 22px; margin: 0; }

/* Role tabs (solutions) */
.role-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 40px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-control); flex-wrap: wrap; }
.role-tab { min-height: 40px; padding: 0 18px; border-radius: 7px; border: 0; background: transparent; font: 600 0.93rem var(--font); color: var(--muted); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.role-tab:hover { color: var(--text); }
.role-tab.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(11, 37, 69, 0.12); }
.role-panel { display: none; }
.role-panel.active { display: block; animation: rise 0.5s var(--ease); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 1rem var(--font); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-control);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-text); outline-offset: 1px; border-color: transparent; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.8; }
.form-status { margin: 0; font-size: 0.93rem; min-height: 1.4em; }
.form-status.err { color: var(--danger); }
.form-fields { display: flex; flex-direction: column; gap: 20px; }
.form-fields[hidden], .form-success[hidden], .form-success .ticket[hidden] { display: none; }
.form-success h3 { margin-bottom: 10px; }
.form-success p { margin-bottom: 8px; }
.form-success h3:focus, .form-success h3:focus-visible { outline: none; } /* focused only so screen readers announce the result */
/* Honeypot: invisible to people, tempting to bots. Off-screen rather than display:none so naive bots still fill it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Link list */
.link-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.link-list li { margin: 0; border-bottom: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; color: var(--text); font-weight: 500; text-decoration: none; }
.link-list a span { color: var(--muted); font-weight: 400; font-size: 0.93rem; }
.link-list a:hover .ph { transform: translateX(4px); }
.link-list .ph { transition: transform 0.25s var(--ease); color: var(--accent-text); }

/* Articles / legal */
.legal-doc h2 { font-size: 1.5rem; margin-top: 48px; }
.legal-doc h3 { font-size: 1.1rem; margin-top: 28px; }
.legal-doc p, .legal-doc li { font-size: 1rem; color: var(--muted); }
.legal-doc .updated { color: var(--muted); font-size: 0.9rem; }
.article-meta { font: 500 0.82rem var(--mono); color: var(--muted); margin-bottom: 16px; }
.post-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.post-grid .post-feature { grid-row: span 2; }
.post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); padding: 28px; transition: transform 0.3s var(--ease), border-color 0.2s; }
a.post:hover { transform: translateY(-3px); border-color: var(--muted); }
.post h3 { margin: 12px 0 10px; font-size: 1.3rem; }
.post p { margin: 0; font-size: 0.97rem; }
.post-feature { justify-content: flex-end; min-height: 380px; color: #fff; background: var(--panel); border: 0; isolation: isolate; position: relative; overflow: hidden; }
.post-feature::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../image/sea-open.jpg") center / cover; }
.post-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 24, 46, 0.15), rgba(8, 24, 46, 0.9)); }
.post-feature h3, .post-feature .tag { color: #fff; }
.post-feature p { color: rgba(255, 255, 255, 0.85); }
.tag { display: inline-block; font: 500 0.75rem var(--mono); padding: 4px 8px; border-radius: var(--r-tag); background: var(--accent-soft); color: var(--accent-text); align-self: flex-start; }
.post-feature .tag { background: rgba(255, 255, 255, 0.16); }
.post.soon { opacity: 0.7; }
@media (max-width: 860px) { .post-grid { grid-template-columns: 1fr; } .post-grid .post-feature { grid-row: auto; min-height: 300px; } }

/* 404 */
.lost { padding: 96px 0; min-height: 70dvh; display: flex; align-items: center; }
.lost h1 { max-width: 14ch; }
.lost form { display: flex; gap: 8px; max-width: 460px; margin: 32px 0 20px; }
.lost form .field { flex: 1; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Footer */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px; }
.footer-brand p { font-size: 0.93rem; max-width: 32ch; margin-top: 16px; }
.footer-grid h4 { font: 600 0.85rem var(--font); letter-spacing: 0; color: var(--text); margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid li { margin: 0; }
.footer-grid li a { font-size: 0.93rem; color: var(--muted); transition: color 0.2s; }
.footer-grid li a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--text); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* Cookie consent banner (js/analytics.js). z-index 45 sits just above the sticky header (40); nothing else is layered. */
.consent {
  position: fixed; z-index: 45; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(620px, calc(100% - 32px)); padding: 18px 20px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-surface); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 20px;
}
.consent-text { margin: 0; font-size: 0.93rem; line-height: 1.5; color: var(--muted); max-width: none; }
.consent-text a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 560px) { .consent { flex-direction: column; align-items: stretch; gap: 14px; } .consent-actions .btn { flex: 1; } }
@media (prefers-reduced-motion: no-preference) { .consent { animation: consent-in 0.5s var(--ease) both; } }
@keyframes consent-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Motion. Entry and scroll reveals only run when JS is present and the visitor allows motion. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero [data-enter] { opacity: 0; animation: rise 0.8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 60ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Contact form: Cloudflare Turnstile security check, reserving its height so the button doesn't jump when it appears. */
.form .cf-turnstile { margin: 4px 0 16px; min-height: 65px; }
