/* Craft Studios, mockup stylesheet. Plain CSS, no build, opens from file://.
   Tokens live on :root. Everything else reads from them.

   Design read: agency portfolio for prospective clients, thoughtbot statement x Lickability product
   showcase, minimalist, native CSS. Dials: variance 6, motion 4, density 3.
   Brand: none exists yet. Monochrome cool neutrals + one cobalt accent (links, CTA, focus, mark).
   Product colour is NOT a page token: it arrives inside each Higgsfield-staged screenshot.
   Shapes: surfaces and stages 20px, controls are pills, phone frames follow the device.
   Type: Schibsted Grotesk (variable, latin), self-hosted (assets/fonts, SIL OFL). Mono is the system's. */

@font-face { font-family: "Schibsted Grotesk"; src: url("assets/fonts/SchibstedGrotesk-Variable.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --bg: #fafafa;
  --band: #f1f1f3;
  --surface: #ffffff;
  --ink: #111113;
  --muted: #5c5c66;
  --line: #e4e4e8;
  --accent: #2340e6;
  --accent-hover: #1a32c4;
  --on-accent: #ffffff;
  --ph: #e6e6ea;
  --ph-ink: #5c5c66;
  --cream: #ecebe1;
  --danger: #c0262d;
  --danger-tint: #fdecec;
  --r: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0f;
    --band: #151518;
    --surface: #1a1a1e;
    --ink: #f2f2f4;
    --muted: #a0a0ab;
    --line: #27272c;
    --accent: #8ea0ff;
    --accent-hover: #b0bcff;
    --on-accent: #0d0d0f;
    --ph: #202024;
    --ph-ink: #a0a0ab;
    --cream: #17171a;
    --danger: #ff8a8a;
    --danger-tint: #2a1416;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); letter-spacing: -0.045em; line-height: 1; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lead { color: var(--muted); font-size: 1.2rem; max-width: 52ch; }
.mono { font-family: var(--mono); font-size: 0.85rem; }

/* Placeholder for an image we do not have yet: says what goes there and at what ratio. */
.ph { background: var(--ph); color: var(--ph-ink); border-radius: var(--r); display: grid; place-content: center; gap: 4px; text-align: center; padding: 24px; font: 0.85rem/1.5 var(--mono); }

/* Controls */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 0.2s var(--ease), transform 0.2s var(--ease); }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn.small { padding: 8px 16px; font-size: 0.95rem; }
.link { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.link:hover { text-decoration-thickness: 2px; }

/* Header */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 24px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 2; }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.02em; text-decoration: none; font-size: 1.1rem; }
.wordmark::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .nav { gap: 20px; } }

/* Hero: one sentence, an intro, one CTA. The product cards right under it are the visuals. */
.hero { display: grid; gap: 28px 64px; padding-top: 88px; padding-bottom: 72px; align-items: end; }
@media (min-width: 960px) { .hero { grid-template-columns: 7fr 5fr; } }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); letter-spacing: -0.045em; line-height: 1; max-width: 13ch; }
.hero .lead { color: var(--ink); font-size: 1.25rem; }
.hero .lead strong { color: var(--accent); font-weight: 600; }
.hero .btn { margin-top: 28px; }
@media (max-width: 640px) { .hero { padding-top: 48px; padding-bottom: 48px; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Product cards: the product's hue, pastel, with deep text of the same hue. */
.work { padding-bottom: 120px; }
.cards { display: grid; grid-auto-flow: column; grid-auto-columns: min(85vw, 380px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 24px 8px; scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .cards { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); max-width: 1200px; margin: 0 auto; overflow: visible; } }
.card { --tint: #eee; --deep: var(--ink); scroll-snap-align: center; background: var(--tint); color: var(--deep); border-radius: 28px; padding: 28px 28px 0; display: flex; flex-direction: column; overflow: hidden; }
.card.wasalni { --tint: #ffb9ae; --deep: #7d1010; --shape: #f2453a; }
.card.superloc { --tint: #b4f0c8; --deep: #0b4f26; --shape: #1d9b3f; }
.card.lilybite { --tint: #ffe873; --deep: #5a3f00; --shape: #ff6f61; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.app-icon.round { background: #fff3c4; }
.card h3 { margin-top: 18px; font-size: 1.9rem; letter-spacing: -0.03em; font-weight: 600; }
.card p { margin-top: 10px; font-size: 1.05rem; line-height: 1.5; }
.card .status { margin-top: 14px; font-size: 0.9rem; font-weight: 550; }
.card-media { margin: 32px -28px 0; margin-top: auto; padding-top: 32px; }
.card-media img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--shape); }
/* Three frames, one per product: an arch, a pill window, a scalloped edge. CSS only. */
.card-media.arch img { border-radius: 50% 50% 0 0 / 34% 34% 0 0; }
.card-media.pill { padding-left: 24px; padding-right: 24px; }
.card-media.pill img { border-radius: 999px 999px 0 0; }
.card-media.scallop img { --s: 22px; mask: radial-gradient(var(--s) at 50% 0, #0000 98%, #000) 50% 0 / calc(var(--s) * 2) 100% repeat-x; }

/* What we do: cream band, a cobalt block, then capability groups. No cards inside cards. */
.services-band { background: var(--cream); padding: 96px 0; }
.services { display: grid; gap: 48px 64px; }
@media (min-width: 960px) { .services { grid-template-columns: 4fr 7fr; align-items: start; } }
.services-lead { background: var(--accent); color: var(--on-accent); border-radius: 28px; padding: 36px; }
.services-lead h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
.services-lead p { margin-top: 16px; font-size: 1.1rem; max-width: 34ch; }
.services-lead img { margin-top: 28px; width: 100%; height: auto; border-radius: 18px; }
.groups { display: grid; gap: 40px 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.groups h3 { font-size: 1.3rem; }
.groups ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }

/* FAQ: native <details>, tinted rows, + / x marker */
.faq { padding-top: 120px; padding-bottom: 40px; }
.qa-list { display: grid; gap: 12px; margin-top: 48px; }
.qa { background: var(--band); border-radius: var(--r); }
.qa summary { list-style: none; cursor: pointer; display: flex; gap: 20px; align-items: baseline; padding: 24px 28px; font-size: 1.2rem; font-weight: 550; letter-spacing: -0.015em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "+"; width: 1ch; flex: none; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.qa[open] summary::before { content: "\00D7"; }
.qa p { padding: 0 28px 28px calc(28px + 1ch + 20px); color: var(--muted); max-width: 66ch; }
@media (max-width: 640px) { .qa summary { padding: 20px; font-size: 1.05rem; } .qa p { padding: 0 20px 24px; } }

/* Contact: one sentence, one address */
.contact { padding-top: 120px; padding-bottom: 144px; }
.contact h2 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -0.045em; max-width: 12ch; }
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 6fr; gap: 80px; } }
.contact .lead { margin-top: 24px; }
.direct { margin-top: 24px; color: var(--muted); overflow-wrap: anywhere; }

/* Form. Labels above, errors below, one column. */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 550; font-size: 0.95rem; padding: 0; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 140px; }
.needs { display: flex; flex-wrap: wrap; gap: 10px; }
.needs legend { margin-bottom: 8px; }
.needs label { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 450; cursor: pointer; }
.needs label:has(input:checked) { border-color: var(--accent); color: var(--accent); }
.needs input { accent-color: var(--accent); margin: 0; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.err { color: var(--danger); font-size: 0.9rem; }
.form-alert { padding: 12px 16px; border-radius: 12px; background: var(--danger-tint); color: var(--danger); font-weight: 550; }
.form .btn { justify-self: start; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { padding: 32px; border-radius: var(--r); background: var(--band); }
.sent p { color: var(--muted); margin-top: 10px; }
.sent .link { display: inline-block; margin-top: 20px; }
.sent:focus { outline: none; } /* focused as the URL target; role=status announces it */
/* Mockup only: states shown with :target (home.html#form-error, #sent). The build renders one. */
.form-wrap > .state { display: none; }
.form-wrap > .state:target { display: grid; }
.form-wrap > .state:target ~ .default { display: none; }
@media (max-width: 640px) { .contact { padding-top: 96px; padding-bottom: 96px; } }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-top: 32px; padding-bottom: 48px; display: grid; gap: 16px 48px; color: var(--muted); font-size: 0.9rem; }
@media (min-width: 760px) { .site-foot { grid-template-columns: 1fr auto; } }
.site-foot address { font-style: normal; }
.site-foot nav { display: flex; gap: 24px; }
.site-foot nav a { text-underline-offset: 4px; }

/* Entry motion: scroll-driven, CSS only. Tells the eye a new product starts. Off under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes rise { from { opacity: 0; transform: translateY(32px); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Legal pages: one readable column */
.legal { max-width: 720px; padding-top: 72px; padding-bottom: 120px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.04em; }
.legal .updated { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }
.legal h2 { font-size: 1.35rem; margin-top: 44px; }
.legal p, .legal address { margin-top: 12px; max-width: 65ch; font-style: normal; }

/* Contents page tiles (design/index.html only). */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 16px; }
.tile { display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; }
.tile p { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }
.tile[aria-disabled="true"] { border-style: dashed; background: transparent; }
