/* Faroesea website - plain CSS, no build step.
   Two palettes, built on the same Material blue as the SeaV app. The browser's
   own light/dark preference decides which one loads; the toggle in the header
   overrides it and is remembered per visitor. */

:root {
    /* Light: grey page, white cards, app blue. */
    --bg: #f4f6fa;
    --bg-2: #ffffff;
    --bg-3: #e9edf4;
    --surface: #ffffff;
    --surface-2: #e8edf5;
    --text: #1a1c1e;
    --muted: #545a63;
    --border: #d5dae2;
    --accent: #0061a4;
    --accent-hover: #00497d;
    --on-accent: #ffffff;
    --accent-2: #2e7d32;
    --on-accent-2: #ffffff;
    --glow: rgba(46, 125, 50, .22);
    --topbar: rgba(255, 255, 255, .78);
    --shadow: 0 6px 20px rgba(16, 24, 40, .06);
    --shadow-strong: 0 24px 50px rgba(16, 24, 40, .12);
    --tint-1: rgba(0, 97, 164, .10);
    --tint-2: rgba(46, 125, 50, .07);
    --teaser-border: rgba(46, 125, 50, .35);
    --teaser-1: rgba(46, 125, 50, .10);
    --teaser-2: rgba(0, 97, 164, .10);

    --logo-filter: invert(1);

    --radius: 18px;
    --max: 1080px;
}

/* Dark: the app's charcoal surfaces with its lighter blue and green. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #121316;
        --bg-2: #1a1c1e;
        --bg-3: #0d0e10;
        --surface: #1f2327;
        --surface-2: #2a2f34;
        --text: #e2e2e6;
        --muted: #b6bbc3;
        --border: rgba(226, 226, 230, .16);
        --accent: #9ecaff;
        --accent-hover: #bcd9ff;
        --on-accent: #003258;
        --accent-2: #81c784;
        --on-accent-2: #0a2911;
        --glow: rgba(129, 199, 132, .30);
        --topbar: rgba(18, 19, 22, .72);
        --shadow: 0 6px 20px rgba(0, 0, 0, .30);
        --shadow-strong: 0 24px 50px rgba(0, 0, 0, .45);
        --tint-1: rgba(158, 202, 255, .10);
        --tint-2: rgba(129, 199, 132, .08);
        --teaser-border: rgba(129, 199, 132, .35);
        --teaser-1: rgba(129, 199, 132, .16);
        --teaser-2: rgba(158, 202, 255, .14);
        --logo-filter: none;
    }
}

:root[data-theme="dark"] {
    --bg: #121316;
    --bg-2: #1a1c1e;
    --bg-3: #0d0e10;
    --surface: #1f2327;
    --surface-2: #2a2f34;
    --text: #e2e2e6;
    --muted: #b6bbc3;
    --border: rgba(226, 226, 230, .16);
    --accent: #9ecaff;
    --accent-hover: #bcd9ff;
    --on-accent: #003258;
    --accent-2: #81c784;
    --on-accent-2: #0a2911;
    --glow: rgba(129, 199, 132, .30);
    --topbar: rgba(18, 19, 22, .72);
    --shadow: 0 6px 20px rgba(0, 0, 0, .30);
    --shadow-strong: 0 24px 50px rgba(0, 0, 0, .45);
    --tint-1: rgba(158, 202, 255, .10);
    --tint-2: rgba(129, 199, 132, .08);
    --teaser-border: rgba(129, 199, 132, .35);
    --teaser-1: rgba(129, 199, 132, .16);
    --teaser-2: rgba(158, 202, 255, .14);
    --logo-filter: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(1200px 700px at 20% -10%, var(--tint-1), transparent 60%),
        radial-gradient(1400px 900px at 85% 40%, var(--tint-2), transparent 60%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 60%, var(--bg-3) 100%);
    background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.topbar {
    position: sticky; top: 0; z-index: 10;
    background: var(--topbar);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 32px; width: 32px; filter: var(--logo-filter); }
.brand-name { font-weight: 700; letter-spacing: .3px; font-size: 1.1rem; }
.navlinks { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.navlinks a { padding: 7px 12px; border-radius: 999px; color: var(--muted); border: 1px solid transparent; font-size: .95rem; }
.navlinks a:hover, .navlinks a[aria-current="page"] {
    color: var(--text); background: var(--surface-2); border-color: var(--border); text-decoration: none;
}
.navlinks a.nav-new { color: var(--accent-2); }
.navlinks a.nav-new[aria-current="page"] { color: var(--text); }

/* Sections */
.main { padding: 40px 0 72px; }
section + section { margin-top: 56px; }

.kicker {
    display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-2); font-weight: 700; margin-bottom: 12px;
}
h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.08; margin: 0 0 16px; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
h3, h2.h3 { font-size: 1.15rem; line-height: 1.6; letter-spacing: 0; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 24px 0 8px; }
.hero-art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-strong); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.btn {
    display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 600;
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.glow { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent-2); box-shadow: 0 0 0 0 var(--glow); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--glow); } 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Cards and grids */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.grid > * { grid-column: span 6; }
.grid.cols-3 > * { grid-column: span 4; }
.grid.cols-4 > * { grid-column: span 3; }
.grid > .span-12 { grid-column: span 12; }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow);
}
.card .icon { width: 44px; height: 44px; margin-bottom: 14px; color: var(--accent-2); }
.card p:last-child { margin-bottom: 0; }

.panel {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}

/* Feature / product rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.feature.flip > .feature-art { order: 2; }
.feature-art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }

/* Teaser band */
.teaser {
    position: relative; overflow: hidden; border-radius: var(--radius); padding: 40px;
    border: 1px solid var(--teaser-border);
    background:
        radial-gradient(600px 300px at 90% 0%, var(--teaser-1), transparent 70%),
        radial-gradient(500px 300px at 0% 100%, var(--teaser-2), transparent 70%),
        var(--surface);
}
.teaser .badge {
    display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; background: var(--accent-2); color: var(--on-accent-2); margin-bottom: 14px;
}

/* Logos / integrations */
.logos { display: flex; flex-wrap: wrap; gap: 12px; }
.logos span {
    padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600;
}
.logos span.custom { border-style: dashed; border-color: var(--teaser-border); color: var(--accent-2); background: transparent; }

/* Steps */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 26px; }
.steps .card::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: -14px; left: 20px; width: 30px; height: 30px; border-radius: 50%;
    background: var(--accent); color: var(--on-accent); font-weight: 800; display: grid; place-items: center;
}

/* Lists */
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 800; }

/* Pricing */
.price { font-size: 1.7rem; font-weight: 800; margin: 6px 0 8px; letter-spacing: -.02em; line-height: 1.25; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); white-space: nowrap; }

/* Contact */
.contact-list p { margin: 4px 0; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .95rem; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Placeholder image caption */
.placeholder-note { font-size: .8rem; color: var(--muted); margin-top: 8px; text-align: center; }

@media (max-width: 860px) {
    .hero, .feature { grid-template-columns: 1fr; }
    .feature.flip > .feature-art { order: 0; }
    .grid > *, .grid.cols-3 > *, .grid.cols-4 > * { grid-column: span 12; }
    .teaser { padding: 28px 22px; }
    /* Logo and theme toggle share the first row; the links get one row below.
       Home is dropped to make them fit - the logo links there - and the row
       scrolls sideways on a screen that is still too narrow. */
    .nav { flex-wrap: wrap; gap: 6px 14px; padding: 10px 0 8px; }
    .navlinks {
        order: 3; flex: 0 0 100%; flex-wrap: nowrap; justify-content: space-between; gap: 0;
        overflow-x: auto; scrollbar-width: none;
    }
    .navlinks::-webkit-scrollbar { display: none; }
    .navlinks a { padding: 5px 8px; font-size: .85rem; white-space: nowrap; }
    .navlinks a:first-child { display: none; }
}

/* Theme toggle */
.theme-toggle {
    display: grid; place-items: center; width: 38px; height: 38px; flex: none; margin-left: 6px;
    border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
    color: var(--muted); cursor: pointer; padding: 0;
}
.theme-toggle:hover { color: var(--text); background: var(--surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }

/* Illustrations come in pairs: name.svg for dark, name-light.svg for light.
   An <img> cannot see the theme toggle, so both are in the page and one shows. */
.art-dark { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .art-dark { display: block; }
    :root:not([data-theme="light"]) .art-light { display: none; }
}
:root[data-theme="dark"] .art-dark { display: block; }
:root[data-theme="dark"] .art-light { display: none; }
