/* Goeze — Välkommen, the public intro page (goeze-ui/valkommen.php). Light and dark: the light
   tokens follow CLAUDE.md § Designstandard (accent #2563EB, hover #60A5FA on a filled button,
   navy #25476A, page #F3F2EF, radii 6/5); the dark ones are the app's own dark theme
   (web/goeze-ui/hem.css: #111827 / #1f2937 / #374151 / #f9fafb / #d1d5db / #9ca3af / #60a5fa).
   <head> sets data-theme before paint; without script the device setting decides (media block). */
:root {
  --bg: #F3F2EF;
  --surface: #ffffff;
  --ink: #0F172A;
  --text: #334155;
  --muted: #475569;
  --line: #dddddd;
  --divider: #eeeeee;
  --control: #b0bccc;
  --hover: #F3F5F8;
  --accent: #2563EB;
  --accent-hover: #60A5FA;
  --on-accent: #ffffff;
  --accent-soft: #DFECFE;
  --accent-soft-hover: #BFDBFE;
  --field-bg: #ffffff;
  --field-line: #64748B;
  --placeholder: #64748B;
  --header-bg: rgba(243,242,239,.88);
  --header-line: rgba(15,23,42,.06);
  --hero-end: #EEF2F8;
  --glow-1: rgba(37,99,235,.20);
  --glow-2: rgba(13,153,255,.14);
  --glow-3: rgba(37,71,106,.14);
  --stand-1: #A9B1BC; --stand-2: #E2E6EB; --stand-3: #C9CFD6; --foot-1: #D6DBE1; --foot-2: #AEB6C0;
  --bezel-line: rgba(15,23,42,.6);
  --shadow: 0 0 1px rgba(34,53,72,.08), 0 1px 2px rgba(105,110,120,.09), 0 10px 20px -8px rgba(105,110,120,.11);
  --wordmark-filter: none;
  --wrap: 1180px;
  --gutter: 24px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111827;
  --surface: #1f2937;
  --ink: #f9fafb;
  --text: #d1d5db;
  --muted: #9ca3af;
  --line: #374151;
  --divider: #2b3646;
  --control: #4b5563;
  --hover: #273244;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --on-accent: #0f172a;
  --accent-soft: rgba(96,165,250,.16);
  --accent-soft-hover: rgba(96,165,250,.28);
  --field-bg: #111827;
  --field-line: #4b5563;
  --placeholder: #9ca3af;
  --header-bg: rgba(17,24,39,.86);
  --header-line: rgba(255,255,255,.06);
  --hero-end: #0b1220;
  --glow-1: rgba(96,165,250,.20);
  --glow-2: rgba(13,153,255,.12);
  --glow-3: rgba(96,165,250,.08);
  --stand-1: #2b3442; --stand-2: #4b5563; --stand-3: #374151; --foot-1: #374151; --foot-2: #1f2937;
  --bezel-line: rgba(255,255,255,.10);
  --shadow: 0 0 0 1px #2b3646, 0 10px 20px -8px rgba(0,0,0,.5);
  --wordmark-filter: brightness(0) invert(1);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111827; --surface: #1f2937; --ink: #f9fafb; --text: #d1d5db; --muted: #9ca3af; --line: #374151;
    --divider: #2b3646; --control: #4b5563; --hover: #273244; --accent: #60a5fa; --accent-hover: #93c5fd;
    --on-accent: #0f172a; --accent-soft: rgba(96,165,250,.16); --accent-soft-hover: rgba(96,165,250,.28);
    --field-bg: #111827; --field-line: #4b5563; --placeholder: #9ca3af; --header-bg: rgba(17,24,39,.86);
    --header-line: rgba(255,255,255,.06); --hero-end: #0b1220; --glow-1: rgba(96,165,250,.20);
    --glow-2: rgba(13,153,255,.12); --glow-3: rgba(96,165,250,.08);
    --stand-1: #2b3442; --stand-2: #4b5563; --stand-3: #374151; --foot-1: #374151; --foot-2: #1f2937;
    --bezel-line: rgba(255,255,255,.10); --shadow: 0 0 0 1px #2b3646, 0 10px 20px -8px rgba(0,0,0,.5);
    --wordmark-filter: brightness(0) invert(1);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
img.wordmark { filter: var(--wordmark-filter); }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 5px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
svg { flex: none; }

/* Buttons: ≥42px tall → 6px radius; the header ones are under 42px → 5px. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; min-height: 48px; padding: 0 22px; border-radius: 6px; font: 600 16px/1 inherit; font-family: inherit; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s; }
.button:hover { text-decoration: none; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { background: var(--surface); color: var(--ink); border-color: var(--control); }
.button-secondary:hover { background: var(--accent-soft); border-color: var(--accent); }
.button-small { min-height: 38px; padding: 0 16px; font-size: 15px; border-radius: 5px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--header-line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img:first-child { width: 26px; height: 26px; }
.brand img.wordmark { width: 83px; height: 20px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.nav .nav-login { display: none; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Language: round flags. The pressed one carries the accent ring; the others sit back a little. */
.lang { display: none; align-items: center; gap: 4px; }
.js .lang { display: inline-flex; }
.flag { width: 34px; height: 34px; padding: 3px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; transition: transform .15s; }
.flag svg { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(15,23,42,.18); opacity: .62; transition: opacity .15s; }
.flag:hover svg { opacity: 1; }
.flag:hover { transform: scale(1.06); }
.flag[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.flag[aria-pressed="true"] svg { opacity: 1; }
.flag:focus-visible { outline-offset: 1px; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .flag, .flag:hover { transition: none; transform: none; } }

/* Theme: moon in light (go dark), sun in dark (go light). */
.theme-toggle { width: 38px; height: 38px; border-radius: 5px; border: 1px solid var(--control); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme-toggle:hover { background: var(--accent-soft-hover); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle { visibility: hidden; }
.js .theme-toggle { visibility: visible; }

.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--control); border-radius: 6px; background: var(--surface); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-toggle span[aria-hidden] { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero + showcase */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px; background:
  radial-gradient(42% 60% at 76% 55%, var(--glow-1), transparent 70%),
  radial-gradient(30% 40% at 62% 85%, var(--glow-2), transparent 70%),
  radial-gradient(30% 40% at 95% 30%, var(--glow-3), transparent 70%),
  linear-gradient(180deg, var(--bg) 0%, var(--hero-end) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hero-copy { max-width: 540px; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); font-weight: 700; letter-spacing: -.025em; }
.lede { margin-top: 20px; max-width: 500px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.markets { margin-top: 22px; font-size: 14px; font-weight: 500; color: var(--muted); }
.markets svg { display: inline-block; width: 18px; height: 18px; margin-right: 7px; vertical-align: -4px; fill: none; stroke: var(--accent); stroke-width: 1.8; }

.showcase { margin: 0; width: 100%; max-width: 620px; justify-self: end;
  pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.showcase img { -webkit-user-drag: none; }
.devices { position: relative; padding: 0 7% 9%; }
.monitor { position: relative; }
.monitor-screen { background: #0B1220; border-radius: 18px; padding: 1.3%; box-shadow: 0 30px 60px -28px rgba(0,0,0,.55), 0 0 0 1px var(--bezel-line); }
.monitor-screen img { border-radius: 6px; width: 100%; aspect-ratio: 1440 / 900; }
.monitor-neck { width: 13%; aspect-ratio: 3 / 2; margin: 0 auto; background: linear-gradient(90deg, var(--stand-1), var(--stand-2) 45%, var(--stand-3)); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.monitor-foot { width: 30%; height: 12px; margin: 0 auto; border-radius: 0 0 10px 10px; background: linear-gradient(180deg, var(--foot-1), var(--foot-2)); box-shadow: 0 14px 24px -12px rgba(0,0,0,.45); }
.phone { position: absolute; bottom: 0; width: 23%; background: #0B1220; border-radius: 13% / 6%; padding: 1.6%; box-shadow: 0 26px 50px -20px rgba(0,0,0,.6), 0 0 0 1px var(--bezel-line); }
.phone::before { content: ''; position: absolute; top: 3.2%; left: 50%; width: 28%; height: 2.6%; transform: translateX(-50%); background: #0B1220; border-radius: 999px; z-index: 1; }
.phone img { border-radius: 11% / 5.3%; width: 100%; aspect-ratio: 320 / 660; }
.phone-left { left: 0; }
.phone-right { right: 0; }
.showcase figcaption { margin-top: 14px; text-align: center; font-size: 12px; color: var(--muted); }

/* Sections */
.section { padding: 80px 0; }
.features h2, .contact h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.02em; }
.features h2 { margin-bottom: 34px; }

.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border-radius: 6px; box-shadow: var(--shadow); padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.feature-icon { width: 44px; height: 44px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.08rem; margin: 2px 0 4px; }
.feature p { color: var(--muted); font-size: .95rem; line-height: 1.5; }


.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact-intro > p:not(.eyebrow):not(.copy-status) { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }
.email-row { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.email-address { font-size: 1.35rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--control); text-underline-offset: 6px; }
.email-address:hover { text-decoration-color: var(--accent); }
.copy-email { width: 40px; height: 40px; border-radius: 5px; border: 1px solid var(--control); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.copy-email:hover { background: var(--accent-soft-hover); border-color: var(--accent); }
.copy-email svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.copy-status { min-height: 1.6em; margin-top: 8px; font-size: 14px; color: var(--muted); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--surface); border-radius: 6px; box-shadow: var(--shadow); padding: 30px; }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; border: 1px solid var(--field-line); border-radius: 6px; background: var(--field-bg); color: var(--ink); font: 400 16px/1.4 inherit; font-family: inherit; padding: 10px 12px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.form-note { font-size: 14px; color: var(--muted); flex: 1 1 240px; }
.form-status { min-height: 1.6em; font-size: 14px; color: var(--ink); }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.footer-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand img { width: 83px; height: 20px; }
.footer-brand p { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

/* ≤ 980: two-column blocks stack */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 640px; margin-inline: auto; text-align: center; }
  .lede { margin-inline: auto; }
  .actions { justify-content: center; }
  .showcase { justify-self: center; max-width: 540px; }
}
/* ≤ 760: the menu folds into the toggle, the phones shrink under the monitor */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .header-inner { gap: 10px; min-height: 60px; }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px var(--gutter) 14px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--divider); font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }
  .nav .nav-login { display: block; color: var(--accent); font-weight: 600; }
  .header-tools { gap: 6px; }
  .header-tools .button-small { display: none; }
  .hero { padding: 44px 0 52px; }
  .showcase { max-width: 420px; }
  .monitor-screen { border-radius: 10px; }
  .section { padding: 60px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 22px 18px; }
}
@media (max-width: 389px) {
  .brand img.wordmark { display: none; }
  .flag { width: 32px; height: 32px; }
  .flag svg { width: 24px; height: 24px; }
}
