/* Bolt - Fabric Stash. Atelier aesthetic: cream muslin, rose clay, thread teal. */

:root {
  --cream: #f6f1e7;
  --cream-deep: #ede6d8;
  --ink: #332b26;
  --ink-soft: #6f665d;
  --rose: #b86b5e;
  --rose-deep: #9e564b;
  --teal: #387870;
  --lamplight: #f2b873;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(184, 107, 94, 0.18);
  --shadow: 0 14px 40px rgba(51, 43, 38, 0.10);
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .serif {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}
nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 1.25rem; font-weight: 700; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; }
.nav-links a.active { color: var(--rose); }
.nav-links a:hover { color: var(--rose); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 72px;
  text-align: center;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  max-width: 760px; margin: 0 auto 18px;
}
.hero h1 em { font-style: normal; color: var(--rose); }
.hero p.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 620px; margin: 0 auto 32px;
}
.hero-drift {
  position: absolute; z-index: -1; opacity: 0.5;
  animation: drift 14s ease-in-out infinite alternate;
}
.hero-drift.two { animation-duration: 18s; animation-delay: -6s; }
.hero-drift.three { animation-duration: 22s; animation-delay: -11s; }
@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(26px, -20px) rotate(6deg); }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-rose {
  background: var(--rose); color: #fff;
  box-shadow: 0 10px 26px rgba(184, 107, 94, 0.35);
}
.btn-rose:hover { background: var(--rose-deep); }
.btn-ghost {
  background: var(--glass); color: var(--ink);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Glass panels */
.panel {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

/* Sections */
section { padding: 56px 0; }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 10px; }
.section-sub { color: var(--ink-soft); max-width: 560px; margin-bottom: 34px; }
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card h3 { font-size: 1.15rem; margin: 14px 0 6px; }
.feature-card p { color: var(--ink-soft); font-size: 0.95rem; }
.feature-card .icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(184, 107, 94, 0.12);
}

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }

/* Device frame */
.device-row {
  display: flex; gap: 40px; align-items: center; justify-content: center;
  flex-wrap: wrap;
}
.device {
  width: 280px; height: 572px;
  border-radius: 44px;
  background: #221c18;
  padding: 12px;
  box-shadow: 0 30px 70px rgba(51, 43, 38, 0.30);
  flex-shrink: 0;
}
.device .screen {
  width: 100%; height: 100%;
  border-radius: 34px;
  background: var(--cream);
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}
.device .notch {
  position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 26px;
  background: #221c18; border-radius: 999px;
  z-index: 5;
}
.screen-header {
  padding: 48px 16px 8px;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 1.35rem; font-weight: 700;
}
.chip-row { display: flex; gap: 6px; padding: 6px 16px 10px; flex-wrap: wrap; }
.chip {
  font-size: 0.62rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: var(--cream-deep); color: var(--ink);
}
.chip.on { background: var(--rose); color: #fff; }
.chip.teal { background: var(--teal); color: #fff; }
.swatch-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; padding: 4px 16px 16px;
}
.swatch-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(51, 43, 38, 0.08);
  overflow: hidden;
}
.swatch-card .cloth { height: 64px; position: relative; }
.swatch-card .cloth::after {
  content: ""; position: absolute; inset: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.55);
  border-radius: 8px;
}
.swatch-card .meta { padding: 8px 9px 10px; }
.swatch-card .meta .name { font-size: 0.66rem; font-weight: 700; }
.swatch-card .meta .type { font-size: 0.56rem; color: var(--ink-soft); }
.bar { height: 4px; border-radius: 999px; background: var(--cream-deep); margin-top: 6px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; background: var(--teal); animation: fillbar 1.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.bar span.low { background: #c07030; }
@keyframes fillbar { from { width: 0; } }
.yard-label { font-size: 0.56rem; font-weight: 700; color: var(--teal); margin-top: 4px; }
.yard-label.low { color: #c07030; }

/* Weave texture for mock swatches */
.cloth.c1 { background: repeating-linear-gradient(45deg, #b86b5e, #b86b5e 6px, #ad6154 6px, #ad6154 12px); }
.cloth.c2 { background: repeating-linear-gradient(90deg, #387870, #387870 5px, #316a63 5px, #316a63 10px); }
.cloth.c3 { background: repeating-linear-gradient(0deg, #d9b98a, #d9b98a 5px, #cfae7e 5px, #cfae7e 10px); }
.cloth.c4 { background: repeating-linear-gradient(135deg, #5a6d94, #5a6d94 7px, #50628a 7px, #50628a 14px); }

/* Steps */
.step-num {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 2rem; color: var(--rose); font-weight: 700;
}

/* Prose pages (privacy, terms, support) */
.prose { max-width: 760px; margin: 0 auto; padding: 64px 24px 80px; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 8px; }
.prose .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 34px; }
.prose h2 { font-size: 1.35rem; margin: 34px 0 10px; }
.prose p, .prose li { color: #4c443c; margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose .panel { margin: 24px 0; }

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 36px 0 48px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--ink-soft); margin-right: 18px; }
footer a:hover { color: var(--rose); }

@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.85rem; }
  .hero { padding: 64px 0 48px; }
  section { padding: 40px 0; }
  .device { width: 250px; height: 512px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-drift, .bar span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
