/* =====================================================================
   2U — styles.css
   Built directly from tokens.json. Values are copied, not approximated,
   so this stays a faithful implementation of the design system rather
   than a drifted re-creation of it.
   ===================================================================== */

@font-face { font-family:"Google Sans"; src:url("../fonts/GoogleSans-Regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Google Sans"; src:url("../fonts/GoogleSans-Medium.woff2") format("woff2"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Google Sans"; src:url("../fonts/GoogleSans-SemiBold.woff2") format("woff2"); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:"Google Sans"; src:url("../fonts/GoogleSans-Bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Google Sans"; src:url("../fonts/GoogleSans-Italic.woff2") format("woff2"); font-weight:400; font-style:italic; font-display:swap; }

:root {
  /* --- color: light theme --- */
  --surface-page: #FFFCF2;
  --surface-card: #FFFFFF;
  --surface-card-hover: #F5F1E4;
  --surface-sunken: #F5F1E4;
  --surface-container-highest: #EFE9D6;
  --border: #E7E1D1;
  --border-strong: #CCC5B9;
  --inverse-surface: #252422;
  --inverse-on-surface: #FFFCF2;
  --ink-900: #252422;
  --ink-800: #403D39;
  --warm-gray: #CCC5B9;
  --page-rim: var(--warm-gray);   /* outer edge of the body vignette */
  --cream: #FFFCF2;
  --text-primary: #252422;
  --text-secondary: #403D39;
  --text-muted: #8B8578;
  --text-on-accent: #FFFCF2;
  --text-on-dark-fill: #FFFCF2;
  --accent: #EB5E28;
  --accent-hover: #D14E1C;
  --accent-bg: #FBE7DC;
  --accent-border: #F0997B;
  --on-accent-container: #8A3212;
  --success: #2F7D5A;
  --success-bg: #E3F3EA;
  --on-success-container: #1F5E42;
  --danger: #C23B2E;
  --danger-bg: #FBE7E3;
  --on-danger-container: #8C2A20;
  --warning: #B4791A;
  --warning-bg: #FBEEDA;
  --on-warning-container: #7A4E10;

  --shadow-sm: 0 2px 8px rgba(37,36,34,0.06);
  --shadow-md: 0 8px 24px rgba(37,36,34,0.08);
  --shadow-lg: 0 16px 40px rgba(37,36,34,0.12);
  --shadow-inner: inset 0 2px 6px rgba(37,36,34,0.04);

  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px; --radius-pill: 9999px;
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:20px;
  --space-6:24px; --space-8:32px; --space-10:40px; --space-12:48px; --space-16:64px;

  --font-sans: "Google Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --eye-bg: var(--surface-card);
}

:root[data-theme="dark"] {
  --page-rim: #0F0E0D;
  --surface-page: #1C1B19;
  --surface-card: #252422;
  --surface-card-hover: #302E2A;
  --surface-sunken: #201F1C;
  --surface-container-highest: #3A372F;
  --border: #3A3733;
  --border-strong: #55514A;
  --inverse-surface: #FFFCF2;
  --inverse-on-surface: #252422;
  --text-primary: #FFFCF2;
  --text-secondary: #CCC5B9;
  --text-muted: #8B8578;
  --accent: #F17845;
  --accent-hover: #F68F63;
  --accent-bg: #3E2317;
  --accent-border: #C96A3C;
  --on-accent-container: #FFD9C2;
  --success: #6FCB9A; --success-bg:#1C3A2C; --on-success-container:#A8E6C4;
  --danger: #F0796A; --danger-bg:#4A2019; --on-danger-container:#FFC4BA;
  --warning: #E8A93D; --warning-bg:#4A3512; --on-warning-container:#FFE1B0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.30);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.38);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page-rim: #0F0E0D;
    --surface-page: #1C1B19; --surface-card:#252422; --surface-card-hover:#302E2A;
    --surface-sunken:#201F1C; --surface-container-highest:#3A372F;
    --border:#3A3733; --border-strong:#55514A;
    --text-primary:#FFFCF2; --text-secondary:#CCC5B9; --text-muted:#8B8578;
    --accent:#F17845; --accent-hover:#F68F63; --accent-bg:#3E2317; --accent-border:#C96A3C;
    --on-accent-container:#FFD9C2;
    --success:#6FCB9A; --success-bg:#1C3A2C; --on-success-container:#A8E6C4;
    --danger:#F0796A; --danger-bg:#4A2019; --on-danger-container:#FFC4BA;
    --warning:#E8A93D; --warning-bg:#4A3512; --on-warning-container:#FFE1B0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background-color: var(--surface-page); color: var(--text-primary);
  /* Soft vignette: page colour in the middle, warm gray toward the corners,
     pinned to the viewport so the bottom nav always sits on the darker rim. */
  background-image: radial-gradient(circle, var(--surface-page) 50%, var(--page-rim) 100%);
  background-size: contain;
  background-attachment: fixed;
  background-repeat: no-repeat;
  font-family: var(--font-sans); font-size: 15px; line-height: 22px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-5); }
.icon { display: inline-flex; width: 20px; height: 20px; flex-shrink: 0; }
.icon svg { width: 100%; height: 100%; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface-page) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: var(--space-2); }
.brand img { width: 28px; height: 28px; flex-shrink: 0; }
.header-tagline { font-size: 14px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; }
@media (max-width: 560px) { .header-tagline { display: none; } }

.menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--surface-sunken);
  color: var(--text-secondary); cursor: pointer; padding: 0;
}
.menu-toggle:hover { background: var(--surface-card-hover); }
.menu-toggle .icon { width: 18px; height: 18px; }

/* ---------------- Offcanvas menu ---------------- */
.offcanvas-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 90;
  opacity: 0; transition: opacity 0.2s ease;
}
.offcanvas-backdrop.is-visible { opacity: 1; }
.offcanvas-backdrop[hidden] { display: none; }

.offcanvas-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 300px; max-width: 86vw;
  background: var(--surface-card); z-index: 91; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.25s ease;
  overflow-y: auto;
}
.offcanvas-menu.is-open { transform: translateX(0); }
body.offcanvas-open { overflow: hidden; }

.offcanvas-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border);
}
.offcanvas-close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius-pill);
  border: none; background: var(--surface-sunken); color: var(--text-secondary); cursor: pointer;
}
.offcanvas-close .icon { width: 16px; height: 16px; }

.offcanvas-section { padding: var(--space-5); border-bottom: 1px solid var(--border); }
.offcanvas-top-row { display: flex; align-items: center; gap: var(--space-3); }
.offcanvas-spacer { flex: 1; }
.offcanvas-footer { border-bottom: none; border-top: 1px solid var(--border); margin-top: auto; }

.lang-switch { display: flex; gap: 2px; background: var(--surface-sunken); border-radius: var(--radius-pill); padding: 3px; }
.lang-switch button {
  border: none; background: transparent; color: var(--text-secondary);
  font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: var(--radius-pill); cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--surface-card); color: var(--text-primary); box-shadow: var(--shadow-sm); }

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-pill); flex-shrink: 0;
  border: 1px solid var(--border-strong); background: var(--surface-sunken);
  color: var(--text-secondary); cursor: pointer; padding: 0;
}
.theme-toggle:hover { background: var(--surface-card-hover); }
.theme-toggle .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-moon { display: inline-flex; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .theme-icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .theme-icon-moon { display: inline-flex; }
}

.install-btn {
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--accent-border); background: var(--accent-bg); color: var(--on-accent-container);
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.install-btn:hover { background: var(--accent); color: var(--text-on-accent); }
.install-btn .icon { width: 16px; height: 16px; }
.install-btn[hidden] { display: none; }
.oc-login {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface-card);
  color: var(--text-primary); font-size: 14px; font-weight: 500;
  text-decoration: none; margin-bottom: var(--space-3);
}
.oc-login:hover { background: var(--surface-sunken); }
.install-btn-block {
  width: 100%; height: 44px; border-radius: var(--radius-sm); justify-content: center; font-size: 14px;
}

/* ---------------- Hero ---------------- */
.hero { padding: var(--space-16) 0 var(--space-12); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-12); align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--on-accent-container); background: var(--accent-bg);
  border: 1px solid var(--accent-border); border-radius: var(--radius-pill);
  padding: 5px 12px; font-size: 13px; font-weight: 500; margin-bottom: var(--space-5);
}
.hero-title {
  font-size: 48px; line-height: 1.08; font-weight: 700; margin: 0 0 var(--space-5);
  white-space: pre-line; letter-spacing: -0.01em;
}
.hero-sub { font-size: 17px; line-height: 1.55; color: var(--text-secondary); max-width: 46ch; margin: 0 0 var(--space-6); }
.hero-cta {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--ink-900); color: var(--text-on-dark-fill);
  border: none; border-radius: var(--radius-sm); padding: 12px 22px;
  font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none;
}
.hero-cta:hover { opacity: 0.92; }
.trust-row { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-8); }
.trust-item { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; color: var(--text-secondary); }
.trust-item .icon { color: var(--accent); }

.hero-visual {
  background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: var(--space-8); box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center;
}
.hero-visual svg { width: 100%; max-width: 260px; }

/* ---------------- Generator ---------------- */
.generator { padding: var(--space-12) 0 var(--space-16); }
.generator-title { font-size: 28px; font-weight: 600; margin: 0 0 var(--space-8); text-align: center; }
.gen-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: var(--space-8);
  background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md); padding: var(--space-8);
}

.tabs { display: flex; gap: var(--space-2); border-bottom: 1px solid var(--border); margin-bottom: var(--space-6); }
.tab-btn {
  border: none; background: none; padding: var(--space-3) var(--space-1); margin-right: var(--space-5);
  font-size: 15px; font-weight: 500; color: var(--text-muted); cursor: pointer; position: relative; top: 1px;
  border-bottom: 2px solid transparent;
}
.tab-btn[aria-selected="true"] { color: var(--text-primary); border-bottom-color: var(--accent); }

.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-bottom: var(--space-6); }
.type-btn {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-1);
  border: 1px solid var(--border); background: var(--surface-page); border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-2); cursor: pointer; font-size: 12px; color: var(--text-secondary);
}
.type-btn .icon { color: var(--text-muted); }
.type-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-bg); color: var(--on-accent-container); }
.type-btn[aria-pressed="true"] .icon { color: inherit; }

.field-group { display: flex; flex-direction: column; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-1); }
.field label { font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-secondary); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="url"], .field input[type="number"], .field input[type="datetime-local"],
.field input[type="password"], .field input[type="search"], .field input[type="file"],
.field textarea, .field select,
.style-row select, .style-row input[type="number"] {
  font-family: inherit; font-size: 15px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface-sunken); color: var(--text-primary);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field textarea:focus, .field select:focus,
.style-row select:focus, .style-row input[type="number"]:focus { border-color: var(--accent); background: var(--surface-card); }

/* Standalone form controls.
   Everything above only applies INSIDE .field, which is right for stacked
   form rows but leaves inline controls -- a search box, an inline edit
   field, a dropdown sitting in an action row -- with the browser's default
   appearance. That gap is why such controls kept being hand-styled inline
   and kept drifting out of step. This class carries the same appearance
   for a control that has no .field wrapper. */
.ui-input {
  font-family: inherit; font-size: 15px; padding: 10px 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface-sunken); color: var(--text-primary);
  width: 100%; min-width: 0;
}
.ui-input:focus { border-color: var(--accent); background: var(--surface-card); }
/* Compact variant, sized to line up with .ui-btn-sm (32px). */
.ui-input-sm { height: 32px; padding: 0 10px; font-size: 13px; }
.ui-input-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.input-with-button { position: relative; display: flex; }
.input-with-button input { padding-right: 44px; }
.input-inline-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: none; border-radius: var(--radius-sm); background: var(--accent); color: var(--text-on-accent);
  cursor: pointer; padding: 0;
}
.input-inline-btn:hover { background: var(--accent-hover); }
.input-inline-btn .icon { width: 16px; height: 16px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }

/* Custom dd/mm/yyyy + hh:mm control (replaces native <input type="datetime-local">,
   whose date-segment order and calendar popup the browser/OS controls, not us). */
.dt-field { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dt-seg {
  font-family: inherit; font-size: 15px; text-align: center; padding: 10px 4px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface-sunken); color: var(--text-primary); flex: none;
}
.dt-seg:focus { border-color: var(--accent); background: var(--surface-card); outline: none; }
.dt-day, .dt-month, .dt-hour, .dt-minute { width: 2.6em; }
.dt-year { width: 4.2em; }
.dt-sep { color: var(--text-muted); font-size: 14px; }
.dt-gap { width: var(--space-3); }
.field-check { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; color: var(--text-secondary); }
.field-error { font-size: 12px; color: var(--danger); min-height: 16px; }

.style-row { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.style-row > label { font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.choice-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.choice-btn {
  border: 1px solid var(--border-strong); background: var(--surface-page); border-radius: var(--radius-sm);
  padding: 8px 14px; font-size: 13px; color: var(--text-secondary); cursor: pointer;
}
.choice-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-bg); color: var(--on-accent-container); }
.color-row { display: flex; gap: var(--space-4); }
.color-field { display: flex; align-items: center; gap: var(--space-2); }
.color-field input[type="color"] {
  width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  padding: 2px; background: var(--surface-card); cursor: pointer;
}
.color-field span { font-size: 13px; color: var(--text-secondary); font-family: ui-monospace, monospace; }

.logo-drop {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); padding: var(--space-4);
  text-align: center; cursor: pointer; color: var(--text-muted); font-size: 13px;
}
.logo-drop:hover { border-color: var(--accent); color: var(--accent); }
.logo-preview-row { display: flex; align-items: center; gap: var(--space-3); }
.logo-preview-row img { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--border); }
.link-btn { background: none; border: none; color: var(--accent); font-size: 13px; cursor: pointer; padding: 0; }

.range-row { display: flex; align-items: center; gap: var(--space-3); }
.range-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.range-row output { font-size: 13px; color: var(--text-secondary); width: 3ch; text-align: right; }
/* The margin output is a single digit (width: 3ch fits it exactly); the
   error-correction slider's output is a full label ("Quartile (25%)"),
   so it needs its own width instead of being clipped to 3 characters. */
#ecLevelOut, #errorLevelOut { width: auto; min-width: 9em; text-align: left; white-space: nowrap; }

/* ---------------- Preview panel ---------------- */
.preview-panel { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.preview-stage { position: relative; width: 100%; }
.preview-frame {
  width: 100%; aspect-ratio: 1; background: var(--surface-sunken); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; padding: var(--space-5);
  box-shadow: var(--shadow-inner); position: relative;
}
.preview-frame svg { width: 100%; height: 100%; }
/* .preview-empty is a SIBLING of #previewFrame (not a child) so it survives
   app.js's previewFrame.innerHTML = '' on every empty/error render pass.
   Visibility is driven purely by the .is-empty class app.js already
   toggles on #previewFrame itself. */
.preview-empty {
  position: absolute; inset: 0; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--space-3);
  padding: var(--space-5); color: var(--text-muted); font-size: 13px;
  text-align: center; pointer-events: none;
}
.preview-empty .icon { width: 40px; height: 40px; opacity: 0.5; }
#previewFrame.is-empty ~ .preview-empty { display: flex; }

/* Label + hint share a line (both short); the button row gets a line of
   its own so it never has to fight them for width in the narrow preview
   column -- that fight was why "Custom" used to wrap onto its own row. */
.size-compact { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.size-compact-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.size-compact-label { font-size: 12px; font-weight: 500; color: var(--text-secondary); cursor: help; }
.size-compact-hint { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.choice-row-sm { flex-wrap: nowrap; }
.choice-row-sm .choice-btn { flex: 1; padding: 5px 6px; font-size: 12px; text-align: center; }

.contrast-banner {
  display: flex; gap: var(--space-2); align-items: flex-start; width: 100%;
  border-radius: var(--radius-sm); padding: var(--space-3); font-size: 13px;
}
.contrast-banner.warn { background: var(--warning-bg); color: var(--on-warning-container); }
.contrast-banner.ok { background: var(--success-bg); color: var(--on-success-container); }
.contrast-banner .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.contrast-banner strong { display: block; margin-bottom: 2px; }

.download-row { display: flex; gap: var(--space-3); width: 100%; }
.btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  border-radius: var(--radius-sm); padding: 10px 16px; font-size: 14px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--text-on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface-card); border-color: var(--border-strong); color: var(--text-primary); }
.btn-ghost:hover { background: var(--surface-card-hover); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ---------------- Upsell ---------------- */
.upsell { padding: var(--space-12) 0; }
.upsell-card {
  background: var(--ink-900); color: var(--cream); border-radius: var(--radius-xl);
  padding: var(--space-10); display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); align-items: center;
}
.upsell-card h2 { font-size: 24px; margin: 0 0 var(--space-2); }
.upsell-card p { color: var(--warm-gray); margin: 0; max-width: 52ch; }
.upsell-card .note { font-size: 12px; color: var(--warm-gray); margin-top: var(--space-3); opacity: 0.8; }
.upsell-card .btn-primary { white-space: nowrap; }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--border); padding: var(--space-8) 0; color: var(--text-muted); font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.footer-links { display: flex; gap: var(--space-5); }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text-primary); }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-title { font-size: 36px; }
  .gen-grid { grid-template-columns: 1fr; }
  .upsell-card { grid-template-columns: 1fr; text-align: center; }
  .upsell-card p { max-width: none; }
}
@media (max-width: 560px) {
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 30px; }
  .download-row { flex-direction: column; }
}
