/* Keebnest storefront — design system
   Brand: warm, cosy-desk, UK-first, beginner-welcoming.
   Palette: Oat / Ink / Ember / Sage / Clay / Stone.
   Type: Fraunces (display), Hanken Grotesk (body), Space Mono (labels). */

:root {
  --oat: #f4efe6;
  --oat-deep: #ece3d3;
  --oat-card: #fbf8f2;
  --ink: #26211c;
  --ink-soft: #5a5147;
  --ember: #b9602a;
  --ember-deep: #9d4e1f;
  --sage: #7c8b6f;
  --sage-deep: #5f6d54;
  --clay: #c98b6b;
  --stone: #b7ae9f;
  --line: rgba(38, 33, 28, 0.12);
  --line-strong: rgba(38, 33, 28, 0.22);

  --wrap: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px -24px rgba(38, 33, 28, 0.45);
  --shadow-sm: 0 8px 20px -14px rgba(38, 33, 28, 0.5);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--oat);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.mono { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; }
.eyebrow { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem; color: var(--ember-deep); display: inline-block; margin-bottom: 14px; }
.center { text-align: center; }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--ink);
  color: var(--oat);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  padding: 9px 16px;
}
.announce b { color: var(--clay); font-weight: 400; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(244, 239, 230, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.brand .cap { width: 26px; height: 26px; flex: 0 0 auto; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-size: 0.95rem; color: var(--ink-soft); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.bag { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line-strong); padding: 8px 13px; border-radius: 999px; cursor: pointer; background: transparent; color: var(--ink); }
.bag:hover { background: var(--oat-card); }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform 0.12s ease, background 0.15s, box-shadow 0.15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ember); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--ember-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--oat-card); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- hero ---------- */
.hero { padding: 60px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.15rem); font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--ember-deep); }
.hero p.lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 30ch; margin: 20px 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; color: var(--ink-soft); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); display: inline-block; }

/* hero visual: a stylised desk scene */
.scene { position: relative; aspect-ratio: 5 / 4.4; border-radius: var(--radius-lg); background: linear-gradient(150deg, #ede0cf, #dcc6ad); box-shadow: var(--shadow); overflow: hidden; padding: 26px; display: flex; align-items: center; justify-content: center; }
.scene .mat { width: 84%; height: 72%; }
.scene .mat-frame { position: absolute; inset: 16% 10% 12% 10%; border-radius: 16px; background: linear-gradient(160deg, #f6ede0, #e9d4bf); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), 0 10px 30px -12px rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; }
.scene .tag { position: absolute; top: 18px; left: 18px; }
.scene .tag .mono { background: rgba(38,33,28,0.82); color: var(--oat); padding: 6px 11px; border-radius: 999px; }

/* keyboard svg */
.kb { width: 78%; height: auto; }
.kb .k { fill: #fbf8f2; stroke: rgba(38,33,28,0.14); stroke-width: 0.6; }
.kb .k.accent { fill: var(--ember); }
.kb .k.sage { fill: var(--sage); }

/* ---------- trust bar ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 40px; background: var(--oat-deep); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--ember-deep); margin-top: 2px; }
.trust-item h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; margin: 0 0 2px; }
.trust-item p { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- sections ---------- */
.section { padding: 68px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 34px; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); max-width: 18ch; }
.section-head p { color: var(--ink-soft); max-width: 42ch; margin: 8px 0 0; }
.link-more { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember-deep); border-bottom: 1px solid var(--ember); padding-bottom: 3px; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--oat-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.16s ease, box-shadow 0.16s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .visual { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; position: relative; padding: 20px; }
.card .visual .pill { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(251,248,242,0.9); border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; }
.card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__body .type { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-deep); }
.card__body h3 { font-size: 1.16rem; font-weight: 600; }
.card__body .price { font-family: var(--font-mono); font-size: 0.92rem; margin-top: 2px; color: var(--ink); }
.card__body .desc { font-size: 0.86rem; color: var(--ink-soft); margin: 4px 0 0; }
.card__body .card-cta { margin-top: 14px; }

/* deskmat / product visuals */
.mat { width: 100%; height: 100%; border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4), 0 8px 22px -14px rgba(38,33,28,0.55); }
.mat--ember { background: linear-gradient(155deg, #e7a978, var(--ember)); }
.mat--moss  { background: linear-gradient(155deg, #a7b394, var(--sage-deep)); }
.mat--cloud { background: linear-gradient(155deg, #e9c3ac, var(--clay)); }
.mat--slate { background: linear-gradient(155deg, #9a9384, #6d665b); }
.mat .kb { width: 66%; }

/* real deskmat design artwork */
img.deskmat { display: block; width: 100%; height: auto; border-radius: 13px; box-shadow: 0 12px 28px -18px rgba(38, 33, 28, 0.6); }
.scene img.deskmat { width: 88%; }
.pdp .main img.deskmat { width: 100%; }
.pdp .main { background: var(--oat-deep); }
.pdp .thumbs img.t { object-fit: cover; padding: 0; }

/* cable + kit simple glyph visuals */
.glyph { width: 66%; color: var(--ink); }
.visual.bg-oat { background: var(--oat-deep); }
.visual.bg-clay { background: linear-gradient(150deg, #ecd3c2, var(--clay)); }
.visual.bg-sage { background: linear-gradient(150deg, #c3ccb6, var(--sage)); }

/* ---------- beginner block ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--ink); color: var(--oat); border-radius: var(--radius-lg); padding: 48px; }
.split h2 { color: var(--oat); font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.split .eyebrow { color: var(--clay); }
.split p { color: rgba(244,239,230,0.78); }
.split ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 12px; }
.split li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.98rem; }
.split li svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--clay); margin-top: 3px; }

/* ---------- sound teaser ---------- */
.sound { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.waves { display: flex; align-items: center; justify-content: center; gap: 7px; height: 200px; background: linear-gradient(150deg, var(--sage), var(--sage-deep)); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.waves span { width: 8px; background: var(--oat); border-radius: 999px; opacity: 0.9; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { height: 26px; } 50% { height: 120px; } }

/* ---------- email capture ---------- */
.capture { background: var(--oat-deep); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 46px; text-align: center; }
.capture h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.capture p { color: var(--ink-soft); max-width: 46ch; margin: 12px auto 24px; }
.capture form { display: flex; gap: 10px; max-width: 540px; margin: 0 auto; flex-wrap: wrap; }
.capture input { flex: 1 1 220px; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--oat-card); font-family: var(--font-body); font-size: 0.96rem; color: var(--ink); }
.wl-select { flex: 1 1 150px; padding: 13px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--oat-card); font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); cursor: pointer; }
.capture form .btn { flex: 1 1 100%; justify-content: center; }
.capture input:focus { outline: 2px solid var(--ember); outline-offset: 1px; }
.capture .small { font-size: 0.76rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(244,239,230,0.72); padding: 56px 0 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer h5 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; color: var(--clay); margin: 0 0 14px; }
.footer a { display: block; color: rgba(244,239,230,0.72); font-size: 0.9rem; padding: 4px 0; }
.footer a:hover { color: var(--oat); }
.footer .brand { color: var(--oat); margin-bottom: 12px; }
.footer .colophon { color: rgba(244,239,230,0.55); font-size: 0.85rem; max-width: 34ch; }
.footer-base { border-top: 1px solid rgba(244,239,230,0.14); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244,239,230,0.5); }

/* ---------- product detail page ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; padding: 46px 0; }
.pdp .gallery { position: sticky; top: 90px; }
.pdp .gallery .main { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; padding: 30px; }
.pdp .thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pdp .thumbs .t { width: 70px; height: 56px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.pdp h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 10px; }
.pdp .price-lg { font-family: var(--font-mono); font-size: 1.25rem; margin: 6px 0 18px; }
.pdp .opts { margin: 22px 0; }
.pdp .opts .label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); margin-bottom: 10px; }
.pdp .chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; font-size: 0.9rem; background: var(--oat-card); }
.chip.active { border-color: var(--ember); background: #fff; box-shadow: inset 0 0 0 1px var(--ember); }
.pdp .assurances { list-style: none; padding: 18px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.pdp .assurances li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.pdp .assurances svg { width: 18px; color: var(--sage-deep); flex: 0 0 auto; }
.explainer { background: var(--oat-deep); border-radius: var(--radius); padding: 18px 20px; margin-top: 22px; font-size: 0.9rem; color: var(--ink-soft); }
.explainer b { color: var(--ink); }

/* ---------- generic page header ---------- */
.page-head { padding: 56px 0 20px; }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.3rem); }
.page-head p { color: var(--ink-soft); max-width: 54ch; margin-top: 14px; font-size: 1.08rem; }
.prose { max-width: 66ch; }
.prose h2 { font-size: 1.5rem; margin: 34px 0 12px; }
.prose h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; margin: 24px 0 8px; }
.prose p { color: var(--ink-soft); margin: 0 0 14px; }
.prose ul { color: var(--ink-soft); padding-left: 20px; }
.faq { border-top: 1px solid var(--line); padding: 20px 0; }
.faq h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin: 0 0 6px; }
.faq p { margin: 0; color: var(--ink-soft); }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--ink); color: var(--oat); padding: 13px 22px; border-radius: 999px; font-size: 0.9rem; box-shadow: var(--shadow); transition: transform 0.3s ease; z-index: 60; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- mobile nav panel ---------- */
.mobile-panel { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .sound, .pdp, .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .grid, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .split, .capture { padding: 32px; }
  .pdp .gallery { position: static; }
  .footer-grid { gap: 26px; }
  .mobile-panel.open { display: block; border-bottom: 1px solid var(--line); background: var(--oat); }
  .mobile-panel.open a { display: block; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 1.02rem; }
}
@media (max-width: 540px) {
  .grid, .grid.cols-4, .trust-grid { grid-template-columns: 1fr; }
  .hero { padding: 34px 0 10px; }
  .section { padding: 48px 0; }
  .capture form { flex-direction: column; }
}
