/*
 * Tinyerg 2026.11: typography + responsive spatial system + real dark mode.
 * Craft references: Web Typography, Font Pairing, Emil Kowalski, Apple HIG,
 * Impeccable typeset/layout and Taste. No copied third-party CSS/assets.
 * Fonts are self-hosted OFL through scripts/copy-fonts.cjs.
 */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --page: #f8faf9;
  --panel: #ffffff;
  --panel-muted: #f1f8f5;
  --fg: #14282e;
  --text-secondary: #4b6469;
  --soft: #6b8083;
  --hairline: #dce8e5;
  --brand: #007f72;
  --brand-action: #007c70;
  --brand-action-hover: #005e56;
  --focus: #06796c;
  --ink: var(--fg);
  --slate: var(--text-secondary);
  --line: var(--hairline);
  color-scheme: light;
  font-family: "DM Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}
html[data-theme="dark"] {
  --page: #08191e;
  --panel: #10282e;
  --panel-muted: #15343a;
  --fg: #eef8f6;
  --text-secondary: #b5c8ca;
  --soft: #a4b9bd;
  --hairline: #2a4950;
  --brand: #67e9d1;
  --brand-action: #0b9b8a;
  --brand-action-hover: #0ab7a1;
  --focus: #a1f8df;
  color-scheme: dark;
}
html { scroll-padding-top: 28px; }
body {
  background: var(--page);
  color: var(--fg);
  font-family: "DM Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.56;
}
h1,h2,h3,h4,.brand-word,.service-entry strong {
  font-family: "Bricolage Grotesque", "Arial Rounded MT Bold", "Arial", sans-serif;
  text-wrap: balance;
  font-synthesis: none;
}
h1,h2,h3,h4 { color: var(--fg); letter-spacing: -.04em; }
p { text-wrap: pretty; }
.shell { width: min(1320px, calc(100% - clamp(36px, 7vw, 112px))); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.site-header { background: #09232b; border-bottom-color: rgba(140,207,205,.18); }
.site-header .header-inner { min-height: 86px; }
.brand-word { font-size: 30px; letter-spacing: -.06em; }
.site-header nav { gap: 24px; font-size: 15px; }
.site-header nav a { color: #d7f0e9; }
.site-header .nav-action { border: 1px solid rgba(178,227,217,.35); padding: 12px 17px; }
.site-header .nav-action:hover { background: rgba(255,255,255,.09); }
.theme-toggle {
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:44px; padding:8px 12px; background:transparent;
  border:1px solid rgba(178,227,217,.38); color:#effcf6;
  border-radius:12px; font-weight:750; font-size:14px;
}
.theme-toggle:hover { background:rgba(255,255,255,.09); }
.theme-toggle svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.theme-toggle .theme-sun { display:none; }
html[data-theme="dark"] .theme-toggle .theme-sun { display:block; }
html[data-theme="dark"] .theme-toggle .theme-moon { display:none; }
.hero {
  padding-top:clamp(68px,8vw,118px); padding-bottom:clamp(70px,8vw,124px);
  isolation:isolate;
}
.hero:before { right:15%; top:18%; width:650px; height:420px; background:radial-gradient(circle,#bcebe0 0,transparent 68%); opacity:.32; }
.hero-grid { display:grid; grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr); gap:clamp(32px,5vw,82px); align-items:center; }
.hero-content { min-width:0; }
.eyebrow,.kicker { color:var(--brand); font-size:12px; letter-spacing:1.9px; font-weight:800; }
.eyebrow-line { background:var(--brand); }
.hero h1 { margin:25px 0 24px; font-size:clamp(58px,6.3vw,96px); line-height:.99; letter-spacing:-.075em; font-weight:800; max-width:780px; }
.hero h1 em { color:var(--brand); }
.hero-copy { max-width:52ch; font-size:clamp(18px,1.7vw,21px); line-height:1.64; color:var(--text-secondary); }
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:21px; margin-top:34px; }
.button { min-height:48px; font-size:15px; font-weight:750; border-radius:11px; padding:12px 19px; }
.button.primary { background:var(--brand-action); color:white; }
.button.primary:hover:not(:disabled) { background:var(--brand-action-hover); }
.hero-primary { min-height:56px; padding:13px 24px; }
.hero-secondary { font-weight:750; font-size:15px; color:var(--brand); text-decoration:none; text-underline-offset:5px; }
.hero-secondary:hover { text-decoration:underline; }
.hero-pills { margin-top:31px; gap:10px; }
.hero-pills span { color:#285b54; background:#e3f4ed; border:1px solid #cde9df; padding:8px 12px; font-size:12px; font-weight:750; }
.hero-example {
  border:1px solid var(--hairline); border-radius:22px; background:var(--panel);
  box-shadow:0 32px 80px rgba(12,51,50,.1); overflow:hidden; min-width:0;
  transform:translateY(5px);
}
.hero-example-top {
  min-height:56px; display:flex; align-items:center; gap:14px; padding:0 20px;
  border-bottom:1px solid var(--hairline); color:var(--soft);
  font-size:10px; font-weight:850; letter-spacing:1.25px;
}
.example-lights { display:flex; gap:5px; }
.example-lights i { width:8px; height:8px; background:#c8ddda; border-radius:50%; }
.example-lights i:first-child { background:#3ac7ad; }
.example-ready { margin-left:auto; color:var(--brand); font-size:11px; }
.example-columns { padding:24px 20px; display:grid; grid-template-columns:minmax(0,1fr) 25px minmax(0,1fr); gap:10px; align-items:start; }
.example-caption { font-size:11px; letter-spacing:1.2px; font-weight:850; color:var(--soft); margin-bottom:13px; }
.example-caption span { color:var(--brand); }
.example-sheet { min-width:0; }
.sheet-table { border:1px solid var(--hairline); border-radius:10px; overflow:hidden; }
.sheet-row { display:grid; grid-template-columns:1fr 1.15fr; gap:0; min-height:39px; align-items:center; border-bottom:1px solid var(--hairline); font-size:12px; font-weight:650; }
.sheet-row:last-child { border-bottom:none; }
.sheet-row span { padding:8px 9px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sheet-row span+span { border-left:1px solid var(--hairline); }
.sheet-row.headings { background:var(--panel-muted); font-weight:800; color:var(--text-secondary); }
.sheet-row.example-duplicate { background:#fdf1e7; text-decoration:line-through; color:#95604b; }
.sheet-row.blank { color:var(--soft); }
.example-sheet p { color:var(--soft); font-size:11px; margin:13px 0 0; }
.example-arrow { font-size:21px; font-weight:800; color:var(--brand); padding-top:60px; text-align:center; }
.example-footer { border-top:1px solid var(--hairline); min-height:60px; display:flex; align-items:center; gap:9px; font-size:12px; color:var(--text-secondary); padding:12px 20px; }
.example-check { display:inline-grid; place-items:center; width:22px; height:22px; flex:none; background:#d5f6e8; color:#006c51; border-radius:50%; font-weight:950; }
.example-footer a { color:var(--brand); font-size:12px; font-weight:800; text-decoration:none; margin-left:auto; white-space:nowrap; }
.example-footer a:hover { text-decoration:underline; }
.service-section { padding-bottom:clamp(70px,8vw,100px); }
.service-intro { margin-bottom:24px; }
.service-intro h2,.section-title-row h2 { font-size:clamp(36px,4vw,53px); letter-spacing:-.05em; }
.subtitle { color:var(--text-secondary); font-size:17px; }
.service-list { grid-template-columns:minmax(0,1fr); }
.service-entry {
  border:1px solid var(--hairline); background:var(--panel);
  border-radius:17px; padding:25px 30px; min-height:150px;
  box-shadow:0 10px 22px rgba(20,59,54,.025);
}
.service-entry:hover { border-color:var(--brand); }
.service-entry-category { font-size:12px; color:var(--brand); }
.service-entry strong { font-size:27px; color:var(--fg); }
.service-entry-action { color:var(--brand); font-size:15px; }
.work-section { padding-bottom:clamp(80px,10vw,140px); }
.section-title-row { margin-bottom:25px; }
.service-tag { background:#e0f6e9; color:#125b43; font-size:13px; border-color:#bde8cd; }
.work-layout { grid-template-columns:minmax(0,1.65fr) minmax(330px,.85fr); gap:20px; }
.tool-card { background:var(--panel); border-color:var(--hairline); padding:clamp(25px,3vw,42px); box-shadow:0 15px 48px rgba(11,43,50,.05); }
.step-heading { gap:14px; margin-bottom:24px; }
.step-number { width:38px; height:38px; border-radius:10px; background:#e5f6ef; color:#006b5d; font-size:14px; }
.step-heading h3 { color:var(--fg); font-size:22px; margin-bottom:6px; }
.step-heading p { color:var(--text-secondary); font-size:14px; }
.drop-zone { padding:36px 20px 30px; background:var(--panel-muted); border-color:#8fbbb1; }
.drop-zone.dragging { background:#dcf4e9; border-color:var(--brand); }
.drop-icon { width:60px; height:60px; background:var(--panel); border-color:var(--hairline); color:var(--brand); margin-bottom:15px; }
.drop-title { font-size:19px; color:var(--fg); }
.drop-help { font-size:14px; color:var(--text-secondary); }
.button.secondary,.button.quiet { background:var(--panel); color:var(--brand); border-color:var(--hairline); }
.button.secondary:hover,.button.quiet:hover { background:var(--panel-muted); }
.sample-text { font-size:14px; color:var(--text-secondary); }
.text-button { color:var(--brand); font-size:14px; }
.selected-file { background:var(--panel-muted); border-color:var(--hairline); color:var(--brand); font-size:14px; }
.rule { background:var(--hairline); }
.option-grid { gap:12px; }
.option { background:var(--panel); border-color:var(--hairline); padding:16px; min-height:76px; }
.option:hover { border-color:var(--brand); }
.option strong { color:var(--fg); font-size:15px; font-weight:800; line-height:1.35; }
.option small { color:var(--text-secondary); font-size:13px; line-height:1.45; margin-top:6px; }
.option input { width:18px; height:18px; accent-color:var(--brand); }
.select-label { color:var(--fg); font-size:15px; margin-top:25px; }
select { color:var(--fg); background:var(--panel); border-color:var(--hairline); min-height:49px; font-size:15px; padding:11px 14px; max-width:330px; }
.microcopy { color:var(--text-secondary); font-size:13px; line-height:1.65; margin-top:13px; }
.actions { gap:12px; margin-top:24px; }
.actions .button.primary { min-width:200px; }
.feedback { font-size:14px; color:var(--text-secondary); margin-top:14px; }
.feedback.error { color:#ad2e36; }
.side-card { background:#092630; padding:clamp(28px,3vw,38px); border-color:#16414a; }
.side-topline { font-size:12px; }
.side-card h3 { font-size:clamp(28px,2.5vw,38px); }
.side-card p { font-size:15px; line-height:1.65; color:#c4d8d9; }
.side-benefits { font-size:14px; }
.privacy-note { font-size:13px; }
.result-card { background:var(--panel); border-color:var(--hairline); padding:clamp(22px,3vw,38px); }
.result-header h3 { color:var(--fg); font-size:25px; }
.stat { background:var(--panel-muted); border-color:var(--hairline); }
.stat strong { color:var(--fg); }
.stat span { color:var(--text-secondary); font-size:12px; }
.preview-title h4 { color:var(--fg); font-size:18px; }
.preview-title span { color:var(--text-secondary); font-size:13px; }
.table-scroll { background:var(--panel); border-color:var(--hairline); }
table { font-size:14px; }
th,td { border-bottom-color:var(--hairline); padding:13px 15px; }
th { background:var(--panel-muted); color:var(--text-secondary); }
.result-footer p { color:var(--text-secondary); font-size:14px; }
.how-section h2 { font-size:clamp(32px,4vw,50px); }
.how-grid article { border-top-color:var(--hairline); }
.how-number { color:var(--brand); font-size:13px; }
.how-grid h3 { color:var(--fg); font-size:23px; }
.how-grid p { color:var(--text-secondary); font-size:16px; line-height:1.65; max-width:37ch; }
.site-footer { background:var(--panel-muted); border-top-color:var(--hairline); }
.brand-footer .brand-word { color:var(--fg); }
.footer-tagline,.footer-inner p { color:var(--text-secondary); font-size:13px; }
html[data-theme="dark"] .site-header { background:#041519; }
html[data-theme="dark"] .hero:before { background:radial-gradient(circle,#105b59 0,transparent 69%); opacity:.43; }
html[data-theme="dark"] .hero-pills span { background:#163a3b; border-color:#315452; color:#c3ebe0; }
html[data-theme="dark"] .hero-example { box-shadow:0 29px 76px rgba(0,0,0,.25); }
html[data-theme="dark"] .sheet-row.example-duplicate { background:#4a302b; color:#ffcfbc; }
html[data-theme="dark"] .example-check { background:#125747; color:#d3fff0; }
html[data-theme="dark"] .service-tag { background:#164636; border-color:#286347; color:#b1f7cb; }
html[data-theme="dark"] .step-number { background:#174940; color:#b1ffdf; }
html[data-theme="dark"] .drop-zone { border-color:#3c7772; }
html[data-theme="dark"] .drop-zone.dragging { background:#23534b; }
html[data-theme="dark"] .side-card { background:#06232b; border-color:#315057; }
html[data-theme="dark"] .feedback.error { color:#ffadb0; }
html[data-theme="dark"] .result-check { background:#174d42; color:#a5f5da; }
html[data-theme="dark"] .illustration-file { background:#d8f3ed; }
html[data-theme="dark"] .illustration-head { background:#c3e5df; }
html[data-theme="dark"] .illustration-grid span { color:#315963; background:#fff; }
html[data-theme="dark"] .illustration-grid .strike { background:#d9eae5; color:#6e9292; }
html[data-theme="dark"] .footer-inner { color:var(--fg); }
html[data-theme="dark"] .result-card { box-shadow:0 10px 38px rgba(0,0,0,.12); }
html[data-theme="dark"] .button.primary:disabled { background:#3a6262; color:#c5d8d9; }
@media(max-width:1150px) {
  .hero-grid { grid-template-columns:1fr; gap:35px; }
  .hero-content { max-width:820px; }
  .hero-example { max-width:900px; width:100%; }
  .work-layout { grid-template-columns:minmax(0,1.4fr) minmax(300px,.8fr); }
}
@media(max-width:850px) {
  .work-layout { grid-template-columns:1fr; }
  .side-card { min-height:390px; }
  .hero-example { max-width:none; }
  .hero { padding-top:60px; padding-bottom:82px; }
  .service-section { padding-bottom:65px; }
  .nav-explainer { display:none; }
}
@media(max-width:620px) {
  .shell { width:calc(100% - 34px); }
  .site-header .header-inner { min-height:74px; }
  .site-header nav { gap:9px; }
  .brand-word { font-size:26px; }
  .theme-toggle { padding:10px; width:44px; }
  .theme-text { display:none; }
  .site-header .nav-action { padding:10px; font-size:12px; }
  .site-header nav>a:first-child { display:none; }
  .hero h1 { font-size:clamp(50px,12.5vw,70px); }
  .hero-copy { font-size:18px; }
  .hero-actions { gap:13px; }
  .hero-secondary { font-size:14px; }
  .hero-pills { gap:7px; }
  .hero-pills span { font-size:11px; }
  .example-columns { padding:18px 13px; grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr); gap:5px; }
  .sheet-row { font-size:11px; min-height:32px; }
  .sheet-row span { padding:6px 5px; }
  .example-arrow { font-size:15px; padding-top:55px; }
  .example-footer { flex-wrap:wrap; }
  .example-footer a { width:100%; margin-left:31px; }
  .tool-card,.side-card { padding:23px; }
  .option-grid { grid-template-columns:1fr; }
  .step-heading h3 { font-size:20px; }
  .result-footer { align-items:stretch; flex-direction:column; }
  .result-footer .button { width:100%; }
  .service-entry strong { font-size:25px; }
  .how-grid { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .hero-example, .service-entry, .button { transition:none!important; transform:none!important; }
}
