/* ==========================================================================
   Hoofiness — design system (Bootstrap 5 + custom brand layer)

   Structure is CorePaw's; the palette is not. Every brand token below was
   sampled straight out of design/hoofiness-logo.png rather than picked by eye:

     #BF6A20  chestnut coat        → --brand
     #3B2417  wordmark brown       → --ink
     #6E7E38  tagline olive        → --olive
     #F7C98A  muzzle tan           → --tan
     #5F6163  horseshoe steel      → --steel
     #FAF3E8  icon cream           → --surface

   Chestnut leads because it is the loudest thing in the mark; olive is the
   support colour (checks, rules, "done" states) and tan is for warm fills.
   Edit brand tokens in :root — nothing below hardcodes a brand colour.
   ========================================================================== */

:root {
  /* Brand palette — sampled from the logo */
  --brand: #BF6A20;          /* chestnut */
  --brand-deep: #96500F;     /* chestnut, shadowed */
  --brand-soft: #F0DCC4;     /* chestnut at 15% on cream */
  --olive: #6E7E38;
  --olive-deep: #566329;
  --tan: #F7C98A;
  --steel: #5F6163;
  --ink: #3B2417;
  --surface: #FAF3E8;

  /* Semantic */
  --foreground: var(--ink);
  --muted-foreground: #7A6555;
  --border: #E8DCC9;
  --card: #FFFFFF;
  --success: var(--olive);

  --radius: 1rem;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #C87428, #96500F);
  --gradient-hero:
    radial-gradient(60% 80% at 70% 20%, rgba(191,106,32,0.20), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(110,126,56,0.16), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--surface));
  --gradient-soft: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);

  /* Shadows */
  --shadow-elegant: 0 30px 60px -30px rgba(150,80,15,0.40);
  --shadow-card: 0 1px 2px rgba(59,36,23,.05), 0 12px 32px -16px rgba(59,36,23,.16);
  --shadow-phone: 0 50px 80px -30px rgba(150,80,15,.35), 0 30px 60px -30px rgba(59,36,23,.30);

  /* Bootstrap overrides */
  --bs-primary: #BF6A20;
  --bs-body-color: #3B2417;
  --bs-body-font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --bs-link-color: #96500F;
  --bs-link-hover-color: #7A400B;
}

* { border-color: var(--border); }

html { scroll-behavior: smooth; }

body {
  font-family: var(--bs-body-font-family);
  color: var(--foreground);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { letter-spacing: -0.025em; font-weight: 700; }

a { text-decoration: none; }

.text-muted-fg { color: var(--muted-foreground) !important; }

/* ---- Layout helpers ---- */
.container-px { max-width: 1280px; }
.section { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .section { padding-top: 7rem; padding-bottom: 7rem; } }
.bg-surface { background: var(--surface); }
.bg-hero { background: var(--gradient-hero); }

/* Centred, text-only page heroes: tighter padding + a balanced gradient. The
   default .bg-hero blob sits behind the homepage phone mockup, off to one side,
   which reads as lopsided on a centred hero. */
.bg-hero.hero-center {
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(191,106,32,0.18), transparent 70%),
    radial-gradient(50% 60% at 50% 100%, rgba(110,126,56,0.12), transparent 70%),
    linear-gradient(180deg, #ffffff, var(--surface));
}
.hero-center .section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 768px) {
  .hero-center .section { padding-top: 5rem; padding-bottom: 4rem; }
}
.bg-ink { background: var(--ink); color: #fff; }
.bg-ink .text-muted-fg { color: rgba(255,255,255,0.72) !important; }

/* ---- Brand text & gradients ---- */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-brand { background: var(--gradient-brand); }

/* ---- Shadows ---- */
.shadow-elegant { box-shadow: var(--shadow-elegant); }
.shadow-card { box-shadow: var(--shadow-card); }
.shadow-phone { box-shadow: var(--shadow-phone); }

/* ---- Rounded ---- */
.rounded-2xl { border-radius: 1.25rem; }
.rounded-3xl { border-radius: 1.75rem; }
.rounded-4xl { border-radius: 2.25rem; }

/* ---- Cards ---- */
.card-soft {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1.75rem;
  box-shadow: var(--shadow-card);
}

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: .25rem .75rem;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-foreground);
}
.eyebrow::before {
  content: "";
  width: .375rem; height: .375rem;
  border-radius: 999px;
  background: var(--brand);
}

/* ---- Buttons ---- */
.btn-brand {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .75rem 1.75rem;
  font-weight: 600;
  box-shadow: var(--shadow-elegant);
  transition: transform .15s ease;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-brand:hover { color: #fff; transform: scale(1.03); }
.btn-ghost {
  background: #fff;
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .75rem 1.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background .15s ease;
}
.btn-ghost:hover { background: var(--surface); color: var(--foreground); }
.btn-sm-pill { padding: .55rem 1.25rem; font-size: .875rem; }

/* ---- Navbar ---- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  transition: all .3s ease;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(255,253,249,.85);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232,220,201,.7);
}
.nav-link-brand {
  color: var(--muted-foreground);
  font-weight: 500;
  font-size: .9rem;
  padding: .4rem .25rem;
  transition: color .15s ease;
}
.nav-link-brand:hover, .nav-link-brand.active { color: var(--foreground); }
.nav-link-brand.dropdown-toggle::after { vertical-align: middle; margin-left: .3rem; opacity: .6; }
.navbar .dropdown-menu {
  border: 1px solid rgba(232,220,201,.95);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  padding: .4rem;
  margin-top: .5rem;
}
.navbar .dropdown-item {
  border-radius: .6rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted-foreground);
  padding: .5rem .75rem;
}
.navbar .dropdown-item:hover, .navbar .dropdown-item:focus {
  background: var(--surface);
  color: var(--foreground);
}
.navbar .dropdown-item.active {
  background: var(--surface);
  color: var(--brand-deep);
}

/* ---- Logo / brand lockup (app icon + "Hoofiness" + tagline) ----
   The type is set here rather than shipped as part of an image: the lockup's own
   tagline is 17% of the artwork's height, so at nav scale it renders about 8px
   tall and turns to mush. CSS type stays sharp at every size, and the icon
   carries the recognition — it is what appears on a home screen anyway.

   Sizes below are deliberate and were arrived at by comparison: a smaller
   wordmark reads as timid next to the icon, a larger one crowds the nav. */
.hf-logo { display: inline-flex; align-items: center; gap: .5rem; line-height: 1; text-decoration: none; }
/* No border-radius here: the icon's rounded square and its drop shadow are baked
   into the artwork on transparency, so clipping would eat the shadow. */
.hf-logo__mark { height: 2.5rem; width: auto; display: block; }
.hf-logo__text { display: flex; flex-direction: column; align-items: center; gap: .18rem; }
.hf-logo__word {
  font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em;
  line-height: 1; white-space: nowrap; color: var(--ink);
}
.hf-logo__tag {
  font-size: .62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--olive); white-space: nowrap; line-height: 1;
}
.hf-logo__sep { color: var(--brand); font-weight: 700; }
@media (min-width: 992px) {
  .hf-logo__mark { height: 2.85rem; }
  .hf-logo__word { font-size: 1.65rem; }
  .hf-logo__tag { font-size: .68rem; }
}
.bg-ink .hf-logo__word { color: #fff; }
.bg-ink .hf-logo__tag { color: var(--tan); }

/* ---- Section heading ---- */
.section-title { font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; }
.section-sub { font-size: 1.125rem; color: var(--muted-foreground); }

/* ---- Feature / stat cards ---- */
.icon-badge {
  display: grid; place-items: center;
  height: 2.5rem; width: 2.5rem;
  border-radius: 1rem;
  background: var(--gradient-brand);
  color: #fff;
}
.check-badge {
  display: grid; place-items: center;
  height: 1.5rem; width: 1.5rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--success);
  color: #fff;
}
.social-link {
  height: 2.25rem; width: 2.25rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(59,36,23,.10);
  transition: color .15s ease, background .15s ease, transform .15s ease;
}
.social-link:hover {
  color: var(--brand);
  background: #fff;
  transform: translateY(-1px);
}
.stat-tile {
  border-radius: 1.75rem;
  padding: 1.5rem;
  color: #fff;
  box-shadow: var(--shadow-elegant);
  background: var(--gradient-brand);
}
.stat-tile.olive { background: linear-gradient(135deg,#8A9B4E,#566329); }
.stat-tile.steel { background: linear-gradient(135deg,#7C8085,#4C4E50); }

/* ---- "Coming to Hoofiness" flag ----
   Every horse-specific feature is planned, not built. Anything not shipping in
   the app today is rendered with one of these two so a feature grid can never
   read as a list of things you can use tonight. */
.soon-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid var(--tan);
  background: #FEF6EA;
  color: var(--brand-deep);
  border-radius: 999px;
  padding: .15rem .6rem;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap;
}
.soon-pill::before {
  content: ""; width: .35rem; height: .35rem;
  border-radius: 999px; background: var(--brand);
}
.card-soon { border-style: dashed; background: linear-gradient(180deg,#fff, #FFFCF7); }

/* ---- Forms ---- */
.input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: .875rem;
  background: #fff;
  padding: .875rem 1rem;
  font-size: .95rem;
  outline: none;
}
.input:focus {
  box-shadow: 0 0 0 3px rgba(191,106,32,.25);
  border-color: var(--brand);
}
.input-pill { border-radius: 999px; padding: 1rem 1.5rem; }

/* ---- FAQ / accordion ---- */
details.faq { padding: 1.5rem; }
details.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  font-size: 1.125rem; font-weight: 600;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .toggle {
  display: grid; place-items: center;
  height: 2rem; width: 2rem; flex: 0 0 auto;
  border-radius: 999px;
  background: var(--surface);
  transition: transform .2s ease;
}
details.faq[open] summary .toggle { transform: rotate(45deg); }

/* ---- Pricing toggle ---- */
.toggle-pill {
  display: inline-flex; align-items: center; gap: .25rem;
  border: 1px solid var(--border); background: #fff;
  border-radius: 999px; padding: .25rem; box-shadow: var(--shadow-card);
}
.toggle-pill button {
  border: none; background: transparent;
  border-radius: 999px; padding: .5rem 1.25rem;
  font-size: .875rem; font-weight: 600; color: var(--muted-foreground);
}
.toggle-pill button.active { background: var(--gradient-brand); color: #fff; }

.plan-featured { border: 2px solid var(--brand) !important; box-shadow: var(--shadow-elegant); }

/* ---- Phone mockup ---- */
.phone {
  position: relative;
  width: 300px;
  margin-inline: auto;
}
@media (min-width: 576px) { .phone { width: 340px; } }
.phone::before {
  content: ""; position: absolute; inset: -2rem; z-index: -1;
  border-radius: 60px; opacity: .55; filter: blur(48px);
  background: var(--gradient-brand);
}
.phone-frame {
  position: relative;
  border-radius: 3rem;
  border: 10px solid #2A1A10;
  background: #2A1A10;
  box-shadow: var(--shadow-phone);
}
.phone-notch {
  position: absolute; left: 50%; top: .5rem; z-index: 20;
  height: 1.5rem; width: 7rem; transform: translateX(-50%);
  border-radius: 999px; background: #000;
}
.phone-screen {
  position: relative; overflow: hidden;
  border-radius: 2.2rem; background: #fff;
  aspect-ratio: 9 / 19;
}
.phone-screen > .screen-inner { position: absolute; inset: 0; display: flex; flex-direction: column; }

/* Real-screenshot variant: the device frame is baked into the (transparent)
   image, so there is no CSS frame — just the shared glow and a drop shadow. */
.phone-img .phone-shot {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 26px 42px rgba(59, 36, 23, .30));
}

/* phone screen internals */
.ps-pad { padding: 1.25rem; }
.ps-up { text-transform: uppercase; letter-spacing: .08em; font-size: .625rem; color: var(--muted-foreground); }
.ps-card { background: #fff; border-radius: 1.25rem; padding: 1rem; box-shadow: var(--shadow-card); }
.ps-soft { background: var(--surface); border-radius: 1.25rem; padding: 1rem; }
.ps-tabbar {
  margin-top: auto;
  display: grid; grid-template-columns: repeat(4,1fr); gap: .25rem;
  background: #fff; border-radius: 999px; padding: .375rem; box-shadow: var(--shadow-card);
}
.ps-tab { border-radius: 999px; padding: .375rem 0; text-align: center; font-size: .625rem; font-weight: 500; color: var(--muted-foreground); }
.ps-tab.active { background: var(--gradient-brand); color: #fff; }
.progress-thin { height: .375rem; border-radius: 999px; background: var(--surface); overflow: hidden; }
.progress-thin > span { display: block; height: 100%; border-radius: 999px; }

/* ---- Timeline (how it works) ---- */
.timeline { position: relative; max-width: 48rem; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; left: 1.5rem; top: .5rem; bottom: .5rem; width: 1px;
  background: linear-gradient(to bottom, var(--brand), var(--tan), var(--olive));
}
@media (min-width: 768px) { .timeline::before { left: 2rem; } }
.timeline-num {
  position: relative; z-index: 10;
  display: grid; place-items: center;
  height: 3rem; width: 3rem; flex: 0 0 auto;
  border-radius: 999px; color: #fff; font-weight: 700; font-size: .875rem;
  background: var(--gradient-brand); box-shadow: var(--shadow-elegant);
}
@media (min-width: 768px) { .timeline-num { height: 4rem; width: 4rem; font-size: 1rem; } }

/* ---- Animations ---- */
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.animate-float { animation: float-y 6s ease-in-out infinite; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fade-up .6s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .animate-float, .animate-fade-up { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- Misc ---- */
.divider { border-top: 1px solid var(--border); }
.prose p { margin-bottom: 0; }
.tag-pill { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: .35rem 1.25rem; font-size: .875rem; font-weight: 600; }
.cat-pill { display: inline-block; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: .35rem 1rem; font-size: .72rem; font-weight: 600; color: var(--muted-foreground); transition: border-color .15s ease, color .15s ease, transform .15s ease; }
a.cat-pill:hover { border-color: var(--brand); color: var(--brand-deep); transform: translateY(-1px); }
.cat-pill.active, a.cat-pill.active:hover { border-color: transparent; color: #fff; background: var(--gradient-brand); transform: none; }

/* ---- Store badges ---- */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1rem;
  border-radius: .875rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
  transition: transform .15s ease, opacity .15s ease;
}
.store-badge:hover { color: #fff; transform: scale(1.03); opacity: .92; }
.store-badge--invert { background: #fff; color: var(--ink); }
.store-badge--invert:hover { color: var(--ink); }
/* Compact variant for the nav header. */
.store-badge--sm { padding: .35rem .7rem; border-radius: .7rem; gap: .45rem; }
.store-badge--sm .store-badge-text small { font-size: .55rem; }
.store-badge--sm .store-badge-text strong { font-size: .85rem; }
.store-badge-icon { display: inline-flex; }
.store-badge-text { display: flex; flex-direction: column; }
.store-badge-text small { font-size: .62rem; opacity: .8; letter-spacing: .01em; }
.store-badge-text strong { font-size: .98rem; font-weight: 600; }
