/* ============================================================
   "Coast" design system — light, cool-neutral, single teal accent.
   ============================================================ */
:root {
    --bg: #f5f6f4;
    --surface: #ffffff;
    --ink: #15181b;
    --muted: #5c646b;
    --line: #e4e7e3;
    --accent: #0b6e84;         /* darkened teal — WCAG AA on white text and on --bg */
    --accent-ink: #ffffff;
    --accent-soft: #e4f3f5;    /* selected chip background */
    --hero-bg: #e9edeb;
    --hero-muted: #586066;
    --tile: #c4c7c9;
    --danger: #a32d2d;
    --radius: 14px;
    --radius-sm: 10px;
    --display: 'Schibsted Grotesk', sans-serif;
    --body: 'IBM Plex Sans', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; color: var(--ink); }
p { margin: 0 0 1rem; }

/* ---------- accessibility: skip link + focus ---------- */
.kt-skip {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.kt-skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ---------- layout ---------- */
.kt-container { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.kt-container--narrow { max-width: 760px; }
.kt-container--mid { max-width: 1000px; }
.kt-main { width: 100%; }
.kt-main--constrained { max-width: 1180px; margin: 0 auto; padding: 32px 40px 64px; }

/* ---------- header / nav ---------- */
.kt-header {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    padding: 18px 40px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.kt-brand {
    font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em;
    display: inline-flex; align-items: center; gap: 6px; color: var(--ink);
}
.kt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.kt-nav { display: flex; align-items: center; gap: 24px; }
.kt-nav a { font-family: var(--body); font-size: 14.5px; color: var(--ink); transition: color .15s ease; white-space: nowrap; }
.kt-nav a:hover { color: var(--accent); }
.kt-nav form { display: inline; }
.kt-linkbtn { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.kt-linkbtn:hover { color: var(--accent); }
.kt-cart-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color .15s ease;
}
.kt-cart-btn:hover { border-color: var(--accent); }
.kt-cart-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    background: var(--accent); color: var(--accent-ink);
    font-family: var(--mono); font-size: 11px;
}
/* mobile nav toggle (checkbox hack, no JS) */
.kt-nav-toggle { display: none; }
.kt-burger { display: none; cursor: pointer; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); position: relative; }
.kt-burger span, .kt-burger span::before, .kt-burger span::after {
    content: ""; position: absolute; left: 10px; width: 18px; height: 2px; background: var(--ink);
}
.kt-burger span { top: 19px; }
.kt-burger span::before { top: -6px; } .kt-burger span::after { top: 6px; }

/* ---------- footer ---------- */
.kt-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.kt-footer-cols {
    max-width: 1180px; margin: 0 auto; padding: 56px 40px;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.kt-footer-cols h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 500; }
.kt-footer-cols a { display: block; color: var(--ink); font-size: 14.5px; padding: 4px 0; transition: color .15s ease; }
.kt-footer-cols a:hover { color: var(--accent); }
.kt-footer-cols p { color: var(--muted); font-size: 14.5px; max-width: 320px; }
.kt-footer-signup {
    border-top: 1px solid var(--line);
    max-width: 1180px; margin: 0 auto; padding: 28px 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.kt-footer-signup h4 { font-family: var(--display); font-size: 17px; font-weight: 700; margin: 0 0 2px; }
.kt-signup-form { display: flex; gap: 10px; flex: 1; max-width: 460px; }
.kt-signup-form .kt-input { flex: 1; }
.kt-signup-form .kt-btn { white-space: nowrap; padding: 11px 20px; }
@media (max-width: 760px) { .kt-signup-form { max-width: none; flex-basis: 100%; } }
.kt-footer-bottom {
    border-top: 1px solid var(--line);
    max-width: 1180px; margin: 0 auto; padding: 18px 40px;
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    font-family: var(--mono); font-size: 12px; color: var(--muted);
}

/* ---------- buttons ---------- */
.kt-btn {
    font-family: var(--body); font-size: 15px; border-radius: var(--radius-sm);
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; line-height: 1; text-align: center;
    transition: opacity .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.kt-btn-accent { background: var(--accent); color: var(--accent-ink); padding: 15px 26px; }
.kt-btn-accent:hover { opacity: .9; color: var(--accent-ink); }
.kt-btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 13px 24px; }
.kt-btn-outline:hover { background: var(--ink); color: var(--bg); }
.kt-btn-lg { padding: 16px 32px; font-size: 16px; }
.kt-btn-sm { padding: 9px 16px; font-size: 14px; }
.kt-btn-block { width: 100%; }
.kt-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- forms ---------- */
.kt-field { margin-bottom: 18px; }
.kt-label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.kt-input, .kt-select, .kt-textarea {
    width: 100%; font-family: var(--body); font-size: 15px; color: var(--ink);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 11px 13px; transition: border-color .15s ease, box-shadow .15s ease;
}
.kt-input:focus, .kt-select:focus, .kt-textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.kt-input::placeholder { color: #9aa0a4; }
.kt-textarea { min-height: 120px; resize: vertical; }
.kt-form-error, .field-validation-error, .text-danger { color: var(--danger); font-size: 13px; }
.kt-validation-summary ul { margin: 0; padding-left: 18px; color: var(--danger); font-size: 14px; }
.kt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- notices ---------- */
.kt-notice { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14.5px; margin-bottom: 20px; background: var(--surface); }
.kt-notice--warn { border-left-color: #ba7517; }
.kt-notice--error { border-left-color: var(--danger); }

/* ---------- bits ---------- */
.kt-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-block; }
.kt-eyebrow--accent { color: var(--accent); }
.kt-pill { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.kt-mono { font-family: var(--mono); }
.kt-secure { font-family: var(--mono); font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* ---------- product tile (grey panel; multiply blend hides the render's grey bg) ---------- */
.kt-tile { background: var(--tile); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.kt-tile img { mix-blend-mode: multiply; object-fit: contain; width: 100%; height: 100%; }

/* ---------- hero ---------- */
.kt-hero { background: var(--hero-bg); padding: 84px 40px 92px; }
.kt-hero-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.kt-hero h1 { font-size: 60px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; margin: 18px 0; }
.kt-hero p { font-size: 18px; color: var(--hero-muted); max-width: 440px; margin: 0 0 26px; }
.kt-hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.kt-hero .kt-tile { aspect-ratio: 1 / 0.92; padding: 24px; }

/* ---------- trust strip ---------- */
.kt-trust { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.kt-trust div { padding: 18px 40px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-align: center; }
.kt-trust div + div { border-left: 1px solid var(--line); }

/* ---------- sections ---------- */
.kt-section { padding: 88px 40px; }
.kt-section--surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 80px 40px; }
.kt-section-inner { max-width: 1180px; margin: 0 auto; }
.kt-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.kt-section-head h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- how it works ---------- */
.kt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.kt-step { border-top: 2px solid var(--accent); padding-top: 22px; }
.kt-step-num { font-family: var(--mono); color: var(--accent); font-size: 13px; }
.kt-step h3 { font-size: 21px; font-weight: 600; margin: 10px 0 8px; }
.kt-step p { color: var(--muted); margin: 0; }

/* ---------- size cards (shop / home) ---------- */
.kt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kt-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s ease; }
.kt-card:hover { border-color: var(--accent); }
.kt-card .kt-tile { aspect-ratio: 1 / 1; border-radius: 0; }
.kt-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.kt-card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kt-card-row h3 { font-size: 20px; font-weight: 600; }
.kt-card-price { font-family: var(--mono); font-size: 18px; }
.kt-card-blurb { color: var(--muted); font-size: 15px; margin: 0; }
.kt-card-actions { display: flex; gap: 10px; margin-top: 4px; }
.kt-card-actions .kt-btn { flex: 1; padding: 11px 14px; font-size: 14.5px; }

/* ---------- split / story ---------- */
.kt-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.kt-placeholder {
    aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line);
    background: repeating-linear-gradient(45deg, #eceeec, #eceeec 12px, #e4e7e3 12px, #e4e7e3 24px);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-family: var(--mono); font-size: 12px;
}
.kt-textlink { display: inline-block; font-family: var(--body); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.kt-link-mono { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.kt-link-mono:hover { color: var(--accent); }

/* ---------- product detail ---------- */
.kt-product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.kt-gallery { position: sticky; top: 110px; }
.kt-gallery .kt-tile { aspect-ratio: 1 / 0.92; padding: 36px; }
.kt-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.kt-thumbs .kt-tile { aspect-ratio: 1 / 1; padding: 8px; border: 1px solid var(--line); }
.kt-buybox h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.kt-price { font-family: var(--mono); font-size: 24px; margin: 8px 0 16px; }
.kt-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kt-size {
    border: 2px solid var(--line); background: var(--bg); border-radius: var(--radius-sm);
    padding: 12px; cursor: pointer; text-align: center; font-family: var(--body);
    display: flex; flex-direction: column; gap: 3px; transition: border-color .15s ease;
}
.kt-size:hover { border-color: var(--muted); }
.kt-size .n { font-weight: 600; font-size: 15px; }
.kt-size .p { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.kt-size.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.kt-size.is-selected .p { color: var(--ink); }
.kt-size[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- quantity stepper ---------- */
.kt-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.kt-stepper button { width: 44px; border: none; background: var(--surface); font-size: 18px; cursor: pointer; color: var(--ink); font-family: var(--mono); }
.kt-stepper button:hover { background: var(--bg); }
.kt-stepper input { width: 46px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-family: var(--mono); font-size: 15px; }
.kt-stepper input::-webkit-outer-spin-button, .kt-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kt-stepper input { -moz-appearance: textfield; }

.kt-inbox { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.kt-inbox li { list-style: none; padding: 5px 0; color: var(--muted); }
.kt-inbox li::before { content: "— "; color: var(--accent); font-family: var(--mono); }
.kt-inbox ul { padding: 0; margin: 0; }

/* ---------- cart ---------- */
.kt-cart { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kt-cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.kt-cart-line .kt-tile { width: 88px; height: 88px; }
.kt-cart-line .meta small { color: var(--muted); }
.kt-cart-line .right { text-align: right; font-family: var(--mono); }
.kt-cart-controls { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.kt-remove { background: none; border: none; cursor: pointer; font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 0; }
.kt-remove:hover { color: var(--accent); }
.kt-cart-foot { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: var(--surface); }
.kt-cart-foot .total { font-family: var(--display); font-size: 24px; font-weight: 700; }

/* ---------- summary panel ---------- */
.kt-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.kt-panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kt-panel-row { display: flex; justify-content: space-between; padding: 10px 20px; }
.kt-panel-row.total { font-weight: 700; border-top: 1px solid var(--line); }
.kt-panel-row .kt-mono, .kt-panel-row span:last-child { font-family: var(--mono); }

/* ---------- specs table ---------- */
.kt-table { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.kt-table thead th { background: var(--ink); color: var(--bg); font-family: var(--display); font-weight: 600; font-size: 16px; text-align: left; padding: 14px 18px; }
.kt-table tbody td { border-bottom: 1px solid var(--line); padding: 13px 18px; font-size: 15px; }
.kt-table tbody th { border-bottom: 1px solid var(--line); padding: 13px 18px; text-align: left; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* ---------- badges (order status) ---------- */
.kt-badge { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); text-transform: uppercase; }
.kt-badge--paid { color: #0f6e56; border-color: #9fe1cb; background: #e1f5ee; }
.kt-badge--pending { color: var(--muted); }
.kt-badge--cancelled, .kt-badge--refunded { color: var(--danger); border-color: #f0999b; background: #fcebeb; }
.kt-badge--fulfilled { color: var(--accent); border-color: #9fd8e1; background: var(--accent-soft); }

/* ---------- prose (content / legal pages) ---------- */
.kt-prose { font-size: 16px; color: var(--ink); }
.kt-prose h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.kt-prose h2 { font-size: 22px; font-weight: 700; margin: 32px 0 10px; }
.kt-prose p, .kt-prose li { color: var(--muted); line-height: 1.7; }
.kt-prose a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.kt-draft { border: 1px dashed #ba7517; border-radius: var(--radius-sm); background: #faeeda; color: #633806; padding: 10px 14px; font-size: 13px; margin-bottom: 24px; }

/* ---------- marketing landing (UniRide-style scaffold) ---------- */
.kt-land-hero { text-align: center; padding: 72px 20px 40px; background: var(--hero-bg); }
.kt-land-hero h1 { font-size: 52px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; max-width: 820px; margin: 14px auto; }
.kt-land-hero .sub { font-size: 18px; color: var(--hero-muted); max-width: 560px; margin: 0 auto 26px; }
.kt-land-img { max-width: 1000px; margin: 0 auto; }
.kt-land-img img { width: 100%; height: auto; object-fit: contain; }
.kt-video-ph {
    max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 9;
    background: #1c2126; border-radius: var(--radius); border: 2px dashed #3a444d;
    display: flex; align-items: center; justify-content: center; text-align: center;
    color: #9aa7b0; font-family: var(--mono); font-size: 14px; padding: 24px;
}
.kt-video-ph::before { content: "▶  "; color: var(--accent); }
.kt-band { padding: 80px 20px; }
.kt-band--surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kt-band--dark { background: var(--ink); color: var(--bg); }
.kt-band--dark h2, .kt-band--dark h3 { color: var(--bg); }
.kt-band-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.kt-band-head h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.kt-band-head p { color: var(--muted); margin-top: 12px; }
.kt-band--dark .kt-band-head p { color: #b9c2c9; }
.kt-lineup { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.kt-lineup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.kt-lineup-row .img { background: var(--tile); min-height: 260px; display: flex; align-items: center; justify-content: center; }
.kt-lineup-row .img img { max-height: 300px; object-fit: contain; mix-blend-mode: multiply; }
.kt-lineup-row .txt { padding: 28px 32px 28px 0; }
.kt-lineup-row .txt .kt-eyebrow { margin-bottom: 6px; }
.kt-stat { font-family: var(--display); font-size: 64px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.kt-press { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; max-width: 900px; margin: 0 auto; opacity: .8; }
.kt-press img { max-height: 200px; max-width: 100%; object-fit: contain; }
@media (max-width: 760px) {
    .kt-land-hero h1 { font-size: 36px; }
    .kt-lineup-row { grid-template-columns: 1fr; }
    .kt-lineup-row .txt { padding: 0 24px 24px; }
    .kt-stat { font-size: 44px; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .kt-product { grid-template-columns: 1fr; gap: 32px; }
    .kt-gallery { position: static; }
}
@media (max-width: 760px) {
    .kt-hero-inner, .kt-split { grid-template-columns: 1fr; gap: 32px; }
    .kt-hero h1 { font-size: 40px; }
    .kt-steps, .kt-cards, .kt-trust, .kt-row { grid-template-columns: 1fr; }
    .kt-trust div + div { border-left: none; border-top: 1px solid var(--line); }
    .kt-footer-cols { grid-template-columns: 1fr; gap: 28px; }
    .kt-section, .kt-section--surface, .kt-hero { padding-left: 20px; padding-right: 20px; }
    .kt-main--constrained { padding: 24px 20px 48px; }
    .kt-header { padding: 14px 20px; }
    .kt-burger { display: block; }
    .kt-nav {
        flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 4px;
        max-height: 0; overflow: hidden; transition: max-height .2s ease;
    }
    .kt-nav-toggle:checked ~ .kt-nav { max-height: 420px; margin-top: 12px; }
    .kt-nav a, .kt-nav .kt-cart-btn, .kt-nav form { padding: 8px 0; }
}
