/* HostToHost — visual system v2 (post ui-ux-pro-max review).
   Mobile-first 375 → 768 → 1024 → 1440.
   Type scale: 12 14 16 18 22 28 36 48 64.
   Brand: cream surface, coral primary, sage alt, ink text. Fredoka + DM Sans. */

:root {
  /* Palette (locked M1) */
  --cream:       #fbf2e9;
  --cream-warm:  #f6e8d8;
  --pale-sage:   #ebf1db;
  --coral:       #ee7954;
  --coral-deep:  #d6603c;
  --orange:      #f15f2a;
  --peach:       #f39878;
  --gold:        #fab95b;
  --blue:        #597bbd;
  --periwinkle:  #96a1d2;
  --sage:        #989c6f;
  --ink:         #403e3f;
  --ink-soft:    #6b6869;
  --ink-mute:    #908b8c;
  --line:        rgba(64, 62, 63, 0.10);
  --line-strong: rgba(64, 62, 63, 0.18);

  /* Modular type scale */
  --t-xs:   12px;
  --t-sm:   14px;
  --t-base: 17px;
  --t-md:   18px;
  --t-lg:   22px;
  --t-xl:   28px;
  --t-2xl:  36px;
  --t-3xl:  48px;
  --t-4xl:  64px;

  /* Spacing scale (4/8 system) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --max-w:   1120px;
  --max-prose: 640px;
  --radius:   16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(64,62,63,0.05), 0 1px 3px rgba(64,62,63,0.06);
  --shadow-md: 0 4px 14px rgba(64,62,63,0.08), 0 2px 6px rgba(64,62,63,0.05);
  --shadow-lg: 0 14px 40px rgba(64,62,63,0.12), 0 6px 14px rgba(64,62,63,0.06);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 150ms;
  --dur: 220ms;

  /* Fonts */
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-script:  'Caveat', 'Fredoka', cursive;  /* handwritten accent — annotations, pull-quote attributions, asides */
}

/* Hand-drawn motif helpers (used with SVG <use href="#d-..."> from sprite) */
.hand {
  color: var(--coral);
  display: inline-block;
  pointer-events: none;
}
.hand--arc-wide  { width: 100%; max-width: 320px; height: 50px; }
.hand--arc-bow   { width: 100%; max-width: 380px; height: 90px; }
.hand--squiggle  { width: 100%; max-width: 220px; height: 14px; }
.hand--underline { width: 100%; max-width: 200px; height: 12px; }
.hand--circle    { width: 130px; height: 76px; }
.hand--arrow     { width: 80px; height: 40px; }

.script {
  font-family: var(--font-script);
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--coral-deep);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-4);
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5.5vw + 1rem, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.4rem); }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--coral-deep); }

img, svg { max-width: 100%; display: block; }

::selection { background: var(--coral); color: var(--cream); }

/* Focus ring (visible only for keyboard) */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Layout primitives */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
@media (min-width: 768px) {
  .wrap { padding: 0 var(--s-7); }
}

section {
  padding: var(--s-8) 0;
  position: relative;
}
@media (min-width: 768px) {
  section { padding: var(--s-9) 0; }
}
@media (min-width: 1024px) {
  section { padding: var(--s-10) 0; }
}

.alt-bg   { background: var(--pale-sage); }
.cream-bg { background: var(--cream); }
.warm-bg  { background: var(--cream-warm); }

/* Section eyebrow + lead */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--coral-deep);
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}
.section-lead {
  font-size: var(--t-md);
  color: var(--ink-soft);
  max-width: var(--max-prose);
  margin-top: var(--s-3);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 242, 233, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-5);
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav-logo { display: inline-flex; }
.nav-logo img { height: 34px; width: auto; }

.nav-links {
  display: none;
  gap: var(--s-6);
}
.nav-links a {
  color: var(--ink);
  font-size: var(--t-sm);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

@media (min-width: 960px) {
  .nav-links { display: inline-flex; }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--orange);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--t-sm);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.nav-cta:hover { background: var(--coral-deep); color: var(--cream); }
.nav-cta:active { transform: translateY(1px); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  background: var(--orange);
  color: var(--cream);
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  font-size: var(--t-base);
  border: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
  min-height: 48px;
}
.btn:hover { background: var(--coral-deep); color: var(--cream); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }
.btn-arrow { width: 18px; height: 18px; flex: none; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: none;
}
.btn-secondary:hover { background: var(--ink); color: var(--cream); box-shadow: var(--shadow-sm); }

.text-link {
  color: var(--coral-deep);
  font-weight: 500;
  font-size: var(--t-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.text-link:hover { color: var(--orange); }
.text-link svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* Hero */
.hero { padding: var(--s-9) 0 var(--s-8); }
@media (min-width: 1024px) { .hero { padding: var(--s-10) 0 var(--s-9); } }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: rgba(238, 121, 84, 0.12);
  color: var(--coral-deep);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s-5);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--coral);
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: var(--s-5);
}
.hero h1 .accent {
  background: linear-gradient(180deg, transparent 65%, rgba(250,185,91,0.55) 65%);
  padding: 0 4px;
}

.hero-sub {
  font-size: var(--t-md);
  color: var(--ink-soft);
  max-width: 58ch;
  margin-bottom: var(--s-6);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  align-items: stretch;
}
.hero-ctas .btn { width: 100%; }
@media (min-width: 600px) {
  .hero-ctas { flex-direction: row; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
  .hero-ctas .btn { width: auto; }
}

.trust-strip {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  font-size: var(--t-sm);
  color: var(--ink-soft);
}
@media (min-width: 600px) {
  .trust-strip { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
}
.trust-item { display: flex; align-items: center; gap: var(--s-3); }
.trust-item svg { width: 18px; height: 18px; color: var(--coral); flex: none; }
.trust-item strong { color: var(--ink); font-weight: 600; }

/* Form blocks */
.form-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-6);
  max-width: 560px;
  box-shadow: var(--shadow-sm);
  margin-top: var(--s-6);
}
.alt-bg .form-block { background: var(--cream); }

.form-block input[type="email"],
.form-block input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  font-size: var(--t-base);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-family: inherit;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  min-height: 48px;
}
.form-block input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(238,121,84,0.15);
  outline: none;
}
.form-block .btn { width: 100%; margin-top: var(--s-3); }

.privacy-micro {
  font-size: var(--t-xs);
  color: var(--ink-mute);
  margin-top: var(--s-4);
  line-height: 1.5;
}
.privacy-micro a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.privacy-micro a:hover { color: var(--coral-deep); }

/* Shop grid */
.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: var(--s-7);
}
@media (min-width: 600px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .shop-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  padding: var(--s-4);
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  cursor: pointer;
  color: inherit;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(238,121,84,0.35);
  text-decoration: none;
}
.product-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.product-card .ph {
  background: linear-gradient(135deg, var(--pale-sage), var(--cream-warm));
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  margin-bottom: var(--s-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.product-card .ph::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.6), transparent 55%);
  pointer-events: none;
}

.product-card h3 {
  font-size: var(--t-lg);
  font-weight: 600;
  margin-bottom: var(--s-2);
  line-height: 1.2;
  letter-spacing: -0.005em;
  min-height: 3.2em;
}
.product-card .product-name {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s-3);
}
.product-card .price {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: var(--t-md);
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.product-card .card-link {
  margin-top: auto;
  color: var(--coral-deep);
  font-size: var(--t-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.product-card .card-link svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease); }
.product-card:hover .card-link svg { transform: translateX(3px); }

.section-cta { margin-top: var(--s-7); display: flex; justify-content: center; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-8); }
}
.about-photo {
  background: linear-gradient(160deg, var(--peach), var(--coral) 70%);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(251,242,233,0.9);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
  position: relative;
}
.about-photo::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle at 25% 20%, rgba(255,255,255,0.25), transparent 50%);
}
.about-body p { font-size: var(--t-base); color: var(--ink-soft); }
.about-body p strong { color: var(--ink); font-weight: 600; }
.about-body .btn { margin-top: var(--s-4); }

/* Coaching */
.coaching-soon {
  background: linear-gradient(135deg, var(--blue), #475e96);
  color: var(--cream);
  padding: var(--s-8) var(--s-6);
  border-radius: var(--radius);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.coaching-soon::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(250,185,91,0.35), transparent 65%);
  pointer-events: none;
}
.coaching-soon > * { position: relative; }
.coaching-soon h2 { color: var(--cream); margin-bottom: var(--s-4); }
.coaching-soon p { color: rgba(251,242,233,0.88); max-width: 56ch; margin-left: auto; margin-right: auto; }
.coaching-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--gold);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: var(--s-5);
  text-transform: uppercase;
}
.coaching-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: var(--s-7) auto 0;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: var(--s-3);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.faq details:hover { border-color: var(--line-strong); }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: rgba(238,121,84,0.3); }

.faq summary {
  padding: var(--s-4) var(--s-5);
  font-weight: 600;
  font-size: var(--t-base);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  color: var(--ink);
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .chev {
  width: 20px; height: 20px;
  color: var(--coral);
  flex: none;
  transition: transform var(--dur) var(--ease);
}
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p {
  padding: 0 var(--s-5) var(--s-5);
  color: var(--ink-soft);
  margin: 0;
  font-size: var(--t-base);
  line-height: 1.65;
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: var(--s-8) 0 var(--s-5);
}
.footer a {
  color: var(--cream);
  opacity: 0.82;
  transition: opacity var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.footer a:hover { opacity: 1; color: var(--gold); text-decoration: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-8); }
}
.footer-brand img { height: 40px; width: auto; margin-bottom: var(--s-4); }
.footer-tag { font-size: var(--t-sm); opacity: 0.78; line-height: 1.7; max-width: 36ch; }

.footer h4 {
  font-family: 'Fredoka', sans-serif;
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 var(--s-4);
  color: var(--gold);
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--s-2); font-size: var(--t-sm); }
.footer-social { display: inline-flex; align-items: center; gap: var(--s-2); }
.footer-social svg { width: 14px; height: 14px; }

.footer-bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(251,242,233,0.15);
  font-size: var(--t-xs);
  opacity: 0.65;
  text-align: center;
  letter-spacing: 0.04em;
}

/* Decorative dividers between sections */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  max-width: 200px;
  margin: 0 auto;
  border: none;
}

/* Manifesto strip */
.manifesto { padding: var(--s-8) 0; text-align: center; }
.manifesto .wrap { max-width: 880px; }
.manifesto-quote {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw + 0.5rem, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 var(--s-4);
}
.manifesto-quote .accent { color: var(--coral-deep); }
.manifesto-sub {
  font-size: var(--t-md);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

/* About — editorial pull-quote */
.about-pullquote {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: clamp(1.35rem, 1.4vw + 1rem, 1.8rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--coral-deep);
  border-left: 3px solid var(--coral);
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  margin: var(--s-5) 0;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
