/* Leafy Bolt: Color Sort - Sunlit Botanical Workshop theme (mobile first) */

:root {
  --birch: #F7F0E3;
  --plywood: #FFFBF3;
  --plywood-edge: #E3D3B6;
  --ink: #2A2317;
  --ink-soft: #594C38;
  --fern: #2E6A2B;
  --fern-deep: #1F4D1D;
  --fern-light: #CFE6BF;
  --petal: #E77AA8;
  --petal-text: #A3335F;
  --walnut: #3A2A1D;
  --walnut-deep: #2A1E14;
  --cream-text: #F6EBD9;
  --steel: #B9B2A5;
  --steel-dark: #7C7468;
  --soon-gray: #2A2A2A;

  --bolt-red: #D9443A;
  --bolt-blue: #2F6FD1;
  --bolt-yellow: #E9B524;
  --bolt-green: #3E9B3A;
  --bolt-purple: #8B5CC7;
  --bolt-pink: #E77AA8;

  --font-display: "Arial Rounded MT Bold", "Nunito", "Varela Round", "Trebuchet MS", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 48px;
  --radius: 14px;
  --shadow-plate: 0 2px 0 var(--plywood-edge), 0 10px 24px rgba(58, 42, 29, 0.10);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--birch);
  /* faint plywood grain */
  background-image: repeating-linear-gradient(176deg, rgba(185, 150, 100, 0.06) 0 2px, transparent 2px 22px);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--fern); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--fern); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--bolt-blue); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--petal-text);
}

/* Plate: a plywood panel fixed with two bolt heads at its top corners */
.plate {
  position: relative;
  background: var(--plywood);
  border: 1px solid var(--plywood-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-plate);
}
.plate::before, .plate::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:
    linear-gradient(var(--steel-dark), var(--steel-dark)) center / 8px 2px no-repeat,
    radial-gradient(circle at 35% 35%, #F1EEE8, var(--steel) 70%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  transform: rotate(var(--bolt-turn, 0deg));
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}
.plate::before { left: 10px; }
.plate::after { right: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(247, 240, 227, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--plywood-edge);
  z-index: 50;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand-icon { width: 32px; height: 32px; border-radius: 8px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.site-nav { display: none; }

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fern);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.2s, transform 0.2s;
}
.header-cta-icon { width: 20px; height: 20px; }
.header-cta-text { display: none; }
.header-cta:hover { background: var(--fern-deep); }
.header-cta:active { background: var(--fern-deep); transform: scale(0.95); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 28px) 0 40px; }
.hero-grid { display: grid; gap: 28px; }
.hero h1 { font-size: 34px; }
.h1-accent { color: var(--fern); }
.hero-lead { margin: 0 0 24px; font-size: 17px; color: var(--ink-soft); }

.hero-points { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points li {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fern-light);
  color: var(--fern-deep);
}

.hero-board { margin: 0; padding: 30px 12px 12px; }
.hero-banner { width: 100%; border-radius: 10px; aspect-ratio: 1024 / 500; object-fit: cover; }
.hero-icon {
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 72px;
  height: 72px;
  margin-left: -36px;
  border-radius: 18px;
  border: 4px solid var(--plywood);
  box-shadow: 0 6px 16px rgba(58, 42, 29, 0.25);
  animation: leaf-sway 4s ease-in-out infinite;
  transform-origin: 50% 100%;
}

/* Color-sort tray */
.sort-tray {
  margin-top: 52px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 999px;
  background: var(--walnut);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.35);
}
.hole {
  position: relative;
  width: clamp(30px, 9vw, 40px);
  height: clamp(30px, 9vw, 40px);
  border-radius: 50%;
  border: 4px solid var(--c);
  background: var(--walnut-deep);
  display: grid;
  place-items: center;
}
.bolt {
  width: 62%;
  height: 62%;
  border-radius: 50%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)) center / 14px 3px no-repeat,
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.6), var(--c) 60%);
  animation: bolt-twist 3.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.hole--red { --c: var(--bolt-red); --d: 0s; }
.hole--blue { --c: var(--bolt-blue); --d: 0.3s; }
.hole--yellow { --c: var(--bolt-yellow); --d: 0.6s; }
.hole--green { --c: var(--bolt-green); --d: 0.9s; }
.hole--purple { --c: var(--bolt-purple); --d: 1.2s; }
.hole--pink { --c: var(--bolt-pink); --d: 1.5s; }

/* ---------- Features ---------- */
.features { padding: 56px 0; }
.features h2, .download h2, .about h2 { font-size: 28px; }
.feature-grid { display: grid; gap: 16px; margin-top: 24px; }
.feature-card { padding: 34px 20px 22px; }
.feature-card h3 { font-size: 20px; }
.feature-card p { margin: 0; color: var(--ink-soft); }
.feature-chip {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 5px solid var(--c);
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)) center / 14px 3px no-repeat,
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.6), var(--c) 60%);
  background-clip: padding-box;
  box-shadow: 0 0 0 3px var(--plywood), 0 0 0 5px var(--plywood-edge);
}
.chip--red { --c: var(--bolt-red); }
.chip--blue { --c: var(--bolt-blue); }
.chip--yellow { --c: var(--bolt-yellow); }
.chip--green { --c: var(--bolt-green); }
.chip--purple { --c: var(--bolt-purple); }
.chip--pink { --c: var(--bolt-pink); }

/* ---------- Download band ---------- */
.download {
  padding: 56px 0;
  background: var(--walnut);
  background-image: repeating-linear-gradient(176deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 18px);
  color: var(--cream-text);
  text-align: center;
}
.download-inner { display: flex; flex-direction: column; align-items: center; }
.download-icon { width: 88px; height: 88px; border-radius: 22px; margin-bottom: 20px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
.download-lead { margin: 0 0 28px; max-width: 520px; }
.store-buttons--center { width: 100%; }
.download .soon-tag { background: var(--cream-text); }

/* ---------- About ---------- */
.about { padding: 56px 0; }
.about-inner { padding: 36px 20px 24px; max-width: 760px; }
.about-inner p { color: var(--ink-soft); }
.about-contact { margin-bottom: 0; }
.about-contact a { font-weight: 700; word-break: break-all; display: inline-block; padding: 10px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--walnut-deep); color: var(--cream-text); padding: 32px 0 24px; }
.footer-inner { display: grid; gap: 14px; justify-items: start; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-footer a { color: var(--cream-text); }
.footer-mail, .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer a:hover, .site-footer a:active { color: var(--fern-light); }
.copyright { margin: 0; font-size: 14px; color: #D9CBB4; }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--plywood);
  border-top: 1px solid var(--plywood-edge);
  box-shadow: 0 -6px 18px rgba(58, 42, 29, 0.12);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta img { width: 40px; height: 40px; border-radius: 10px; }
.sticky-cta-text { flex: 1; font-family: var(--font-display); font-weight: 800; line-height: 1.1; }
.sticky-cta-text small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--fern);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.sticky-cta-btn:hover, .sticky-cta-btn:active { background: var(--fern-deep); }
