/* pinecode.ca company page. Same visual system as the LandTheCall landing
   (scratch/mockups/landing-a.html): tokens on :root, dark mode guarded so an
   explicit data-theme="light" wins. Phone first. */
:root {
  --bg: #fbfbf8; --card: #ffffff; --ink: #15171a; --mute: #5e6168; --line: #e4e3dc;
  --accent: #2235f0; --accent-ink: #ffffff; --accent-tint: #e6e9ff;
  --pine: #1e5b43; --pine-tint: #ddefe4;
  --maple: #d7263d;
  --footer: #e6e9ff;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --text: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --radius: 12px; --radius-btn: 8px;
  --gutter: 16px; --max: 1040px;
  --shadow: 0 1px 2px rgba(21,23,26,.04), 0 8px 24px -12px rgba(21,23,26,.14);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121417; --card: #1b1e24; --ink: #f1efe8; --mute: #a3a7ae; --line: #2b2f36;
    --accent: #8e9bff; --accent-ink: #0b0f2a; --accent-tint: #232a52;
    --pine: #7fc7a4; --pine-tint: #17352a;
    --maple: #ff5a6e;
    --footer: #1b2146;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121417; --card: #1b1e24; --ink: #f1efe8; --mute: #a3a7ae; --line: #2b2f36;
  --accent: #8e9bff; --accent-ink: #0b0f2a; --accent-tint: #232a52;
  --pine: #7fc7a4; --pine-tint: #17352a;
  --maple: #ff5a6e;
  --footer: #1b2146;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
  color-scheme: dark;
}
@media (min-width: 40rem) { :root { --gutter: clamp(24px, 4vw, 40px); } }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.2rem, 7vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(40px, 6vw, 72px); }
.eyebrow { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pine); font-weight: 600; }
.lede { color: var(--mute); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 58ch; }
.head { display: grid; gap: 12px; margin-bottom: clamp(24px, 4vw, 40px); max-width: 62ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: var(--radius-btn); z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: var(--radius-btn); border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, border-color .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -8px var(--accent); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 9px 13px; font-size: .92rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.hdr__in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 26px; height: 26px; color: var(--pine); flex: 0 0 auto; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; line-height: 1; }
.hdr__cta { margin-left: auto; }
.nav { display: flex; gap: 2px; order: 3; flex-basis: 100%; margin-left: -10px; }
.nav a { color: var(--ink); padding: 6px 10px; border-radius: var(--radius-btn); font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--accent-tint); text-decoration: none; }
@media (min-width: 44rem) {
  .hdr__in { flex-wrap: nowrap; min-height: 64px; padding-block: 0; gap: 20px; }
  .nav { order: 0; flex-basis: auto; margin-left: 8px; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 10vw, 120px) clamp(32px, 6vw, 72px); }
.hero__in { display: grid; gap: 22px; }
.hero__in > * { max-width: 46rem; }
.hero h1 .accent { color: var(--accent); }
.built { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.built svg { width: 26px; height: 26px; color: var(--maple); flex: 0 0 auto; }
.built--sm svg { width: 20px; height: 20px; }

/* ---------- products ---------- */
.product {
  display: grid; gap: 22px; padding: clamp(22px, 4vw, 36px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (min-width: 52rem) { .product { grid-template-columns: 1.1fr 1fr; align-items: start; gap: 40px; } }
.product__top { display: grid; gap: 12px; }
.product__name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.product__by { color: var(--mute); font-size: .9rem; }
.product p { color: var(--mute); }
.product__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.feats { display: grid; gap: 12px; }
.feats li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.feats svg { width: 22px; height: 22px; color: var(--pine); margin-top: 2px; }
.pill {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: 2px;
  font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
  background: var(--accent-tint); color: var(--accent);
}

/* ---------- demo video (click-to-play facade; nothing from YouTube loads until the click) ---------- */
.vcard { margin: clamp(20px, 3vw, 32px) auto 0; width: 100%; max-width: 56rem; display: grid; gap: 10px; }
.vframe {
  position: relative; aspect-ratio: 16 / 9; min-width: 0; overflow: hidden; background: var(--card);
  border: 1.5px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow);
}
.vframe > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vframe > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.vplay { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.vplay[hidden] { display: none; }
.vplay:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: var(--radius); }
.vbtn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: 0 6px 24px rgba(20, 24, 40, .35);
  transition: transform .15s ease;
}
.vplay:hover .vbtn, .vplay:focus-visible .vbtn { transform: translate(-50%, -50%) scale(1.07); }
@media (prefers-reduced-motion: reduce) {
  .vbtn { transition: none; }
  .vplay:hover .vbtn, .vplay:focus-visible .vbtn { transform: translate(-50%, -50%); }
}
.vbtn svg { width: 26px; height: 26px; margin-left: 3px; }
.vdur {
  position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border-radius: 6px;
  font: 500 .75rem/1 var(--text); letter-spacing: .04em; color: #fff; background: rgba(20, 24, 40, .72);
}
.vcap { font-size: .9rem; color: var(--mute); text-align: center; }
.vcap a { white-space: nowrap; }

/* ---------- about ---------- */
.about__intro { color: var(--mute); margin: -16px 0 clamp(20px, 3vw, 28px); max-width: 62ch; }
.founder {
  display: grid; gap: 20px; padding: clamp(22px, 4vw, 32px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.portrait { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.about { display: grid; gap: 16px; max-width: 62ch; min-width: 0; }
.about p { color: var(--ink); }
.signature { display: grid; gap: 2px; justify-items: start; padding-top: 16px; border-top: 1px solid var(--line); }
.signature b { font: 700 1.1rem/1.3 var(--display); }
.signature span { color: var(--mute); font-size: .95rem; }
.signature .links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.signature .links a { padding: 6px 0; }
@media (min-width: 44rem) {
  .founder { grid-template-columns: 160px minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .signature { grid-column: 1 / -1; }
}

/* ---------- contact ---------- */
.contact {
  display: grid; gap: 16px; padding: clamp(22px, 4vw, 32px);
  background: var(--pine-tint); border-radius: var(--radius);
}
.contact__links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__mail { overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.ftr { background: var(--footer); margin-top: clamp(32px, 6vw, 72px); }
.ftr__in { display: grid; gap: 24px; padding-block: clamp(36px, 6vw, 56px) 20px; }
@media (min-width: 44rem) { .ftr__in { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.ftr__brand { display: grid; gap: 12px; align-content: start; }
.ftr__brand p { color: var(--mute); max-width: 34ch; }
.ftr__links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ftr__links a { color: var(--ink); font-weight: 500; }
.ftr__meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: .88rem; color: var(--mute); padding-block: 16px 24px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.ftr__meta .built { color: var(--mute); font-weight: 500; gap: 8px; }
.ftr__note { flex-basis: 100%; margin: 0; font-size: .82rem; max-width: 70ch; }
