/* Pinelynx Studio landing page. Colours come from the logo: pine green #1E4C3B and amber #F2A33A. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --pine: #1e4c3b;
  --pine-deep: #143528;
  --pine-soft: #e6eee8;
  --amber: #f2a33a;
  --amber-soft: #fdf0dc;
  --bg: #f7f4ec;
  --glass: rgba(247, 244, 236, 0.86);
  --surface: #ffffff;
  --ink: #13241c;
  --muted: #56675e;
  --line: rgba(19, 36, 28, 0.12);
  --accent: var(--pine);
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(19, 36, 28, 0.06), 0 8px 24px rgba(19, 36, 28, 0.07);
  --radius: 22px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1d16;
    --glass: rgba(14, 29, 22, 0.86);
    --surface: #15281f;
    --ink: #edf2ee;
    --muted: #a5b6ac;
    --line: rgba(237, 242, 238, 0.12);
    --pine-soft: #1b3328;
    --amber-soft: #2a2416;
    --accent: #f2a33a;
    --on-accent: #13241c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 100;
}
.skip:focus { left: 16px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 6px; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted);
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { color: var(--ink); background: var(--pine-soft); }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--amber); }
h1 {
  font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
  margin: 0 0 22px;
}
h1 .soft { color: var(--muted); font-weight: 700; }
.lead { font-size: 20px; color: var(--muted); max-width: 33em; margin: 0 0 32px; }
.lead strong { color: var(--ink); font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.hero-art {
  position: relative; aspect-ratio: 1 / 1; border-radius: 36px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #2a6a51 0%, var(--pine) 45%, var(--pine-deep) 100%);
  box-shadow: 0 30px 60px -20px rgba(20, 53, 40, 0.55);
}
@supports not (aspect-ratio: 1 / 1) {
  .hero-art::before { content: ""; display: block; padding-top: 100%; }
}
.hero-art .moon {
  position: absolute; width: 46%; aspect-ratio: 1; left: 27%; top: 9%; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 163, 58, 0.55) 0%, rgba(242, 163, 58, 0.12) 55%, transparent 72%);
}
.hero-art .mark { position: absolute; width: 50%; left: 25%; top: 17%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.25)); }
.hero-art .forest { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.95); color: #13241c; font-weight: 700; font-size: 14px;
  padding: 9px 14px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.chip-1 { left: 7%; top: 8%; }
.chip-2 { right: 6%; top: 34%; }
.chip-3 { left: 9%; bottom: 33%; }

/* Sections */
section { scroll-margin-top: 84px; }
.section { padding: 88px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 30em; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

/* Products */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card-top { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.card h3 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 800; }
.meta { margin: 2px 0 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.card p.desc { margin: 0; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.links a {
  font-size: 14px; font-weight: 700; text-decoration: none;
  padding: 7px 13px; border-radius: 999px; background: var(--pine-soft); color: var(--ink);
}
.links a:hover { background: var(--accent); color: var(--on-accent); }
.badge {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--amber-soft); color: var(--ink);
}
.card.featured { grid-column: span 2; flex-direction: row; gap: 28px; align-items: stretch; }
.card.featured .feature-body { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card.featured .app-icon { width: 120px; height: 120px; border-radius: 27px; }
.card.featured h3 { font-size: 30px; }
.feature-note {
  margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--amber-soft);
  font-size: 15px; font-weight: 600; color: var(--ink);
}

.subhead { margin: 56px 0 20px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; display: flex; align-items: center; gap: 12px; }
.soon .card { box-shadow: none; background: transparent; }

/* Story band */
.story { background: var(--pine); color: #f2f6f3; }
.story .kicker { color: rgba(242, 246, 243, 0.7); }
.story h2 { color: #fff; max-width: 15em; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.story-item { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 28px; }
.story-item svg { width: 44px; height: 44px; margin-bottom: 14px; }
.story-item h3 { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: #fff; }
.story-item p { margin: 0; color: rgba(242, 246, 243, 0.82); }
.story-quote { margin: 36px 0 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 650; color: #fff; }
.story-quote span { color: var(--amber); }

/* Contact */
.contact-card {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 48px; box-shadow: var(--shadow);
}
.contact-card p { color: var(--muted); margin: 14px 0 0; }
.mail {
  display: inline-block; margin-top: 22px; font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; letter-spacing: -0.01em;
  color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 6px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.contact-side { display: grid; gap: 14px; }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--pine-soft); }
.fact strong { display: block; font-size: 15px; }
.fact span { color: var(--muted); font-size: 15px; }
.fact svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }

/* Footer */
.site-footer { padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.site-footer .foot-brand { display: flex; align-items: center; gap: 12px; }
.site-footer .foot-brand img { width: 34px; height: auto; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

.dark-only { display: none; }
@media (prefers-color-scheme: dark) {
  .light-only { display: none; }
  .dark-only { display: block; }
}

/* Responsive */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.featured { grid-column: span 2; }
}
@media (max-width: 820px) {
  .hero { padding: 28px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 520px; width: 100%; margin: 0 auto; }
  .contact-card { grid-template-columns: 1fr; padding: 32px; }
  .story-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 64px; }
  .brand img { height: 32px; }
  .nav a:not(.nav-contact) { display: none; }
  .lead { font-size: 18px; }
  .section { padding: 64px 0; }
  .grid { grid-template-columns: 1fr; }
  .card.featured { grid-column: auto; flex-direction: column; gap: 16px; }
  .card.featured .app-icon { width: 88px; height: 88px; border-radius: 20px; }
  .card.featured h3 { font-size: 26px; }
  .chip { font-size: 12px; padding: 7px 11px; }
  .contact-card { padding: 24px; border-radius: 24px; }
}
