/* Equee: product site styles.
 *
 * Hand-written, no build step. Every token below is lifted from the iOS app's
 * EqueeColors.swift so the site and the app read as one product: the warm
 * canvas, saddle-brown actions, and the gait ramp (walk, trot, canter, gallop).
 */

:root {
  --brown-50: #fbf3ec;
  --brown-100: #f4e2d2;
  --brown-200: #e7c3a2;
  --brown-300: #d49c6a;
  --brown-400: #bc7639;
  --brown-500: #a35b1e;
  --brown-600: #8c4512;
  --brown-700: #743910;
  --brown-800: #5a2d0e;
  --brown-900: #3f2009;

  --walk: #5b8dbf;
  --trot: #2fa37c;
  --canter: #d9a227;
  --gallop: #c24e2e;
  --halt: #9a9089;
  --sage: #6b8f5e;
  --gold: #b8870a;

  --canvas: #f6f2ee;
  --surface: #ffffff;
  --surface-2: #f1ece5;
  --surface-3: #e9e2d9;
  --line: #e7e0d7;
  --line-2: #d8cec2;
  --ink: #211e1a;
  --ink-2: #5c544b;
  --ink-3: #8c8478;

  --accent: var(--brown-600);
  --accent-text: var(--brown-600);
  --accent-soft: var(--brown-50);
  --button: linear-gradient(180deg, var(--brown-500), var(--brown-700));

  --shadow-card: 0 1px 2px rgba(63, 32, 9, 0.04), 0 10px 30px rgba(63, 32, 9, 0.07);
  --shadow-float: 0 14px 34px -12px rgba(63, 32, 9, 0.35);
  --shadow-phone: 0 50px 90px -40px rgba(63, 32, 9, 0.55), 0 20px 40px -24px rgba(33, 30, 26, 0.4);

  --radius: 20px;
  --radius-lg: 30px;
  --max: 1160px;
  --pad: clamp(20px, 5vw, 56px);
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #191512;
    --surface: #241f1a;
    --surface-2: #2c2620;
    --surface-3: #352e27;
    --line: #3a332c;
    --line-2: #4b433a;
    --ink: #f7f3ee;
    --ink-2: #bcb2a6;
    --ink-3: #94897c;
    --accent-text: var(--brown-300);
    --accent-soft: rgba(212, 156, 106, 0.1);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-float: 0 14px 34px -12px rgba(0, 0, 0, 0.7);
    --shadow-phone: 0 50px 90px -40px rgba(0, 0, 0, 0.85), 0 20px 40px -24px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 3px solid var(--brown-300); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

/* ---------------- Gait ribbon (the app's signature) ---------------- */

.ribbon {
  display: flex;
  gap: 3px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}
.ribbon span { flex: var(--w, 1) 1 0; border-radius: 999px; }
.ribbon .walk { background: var(--walk); }
.ribbon .trot { background: var(--trot); }
.ribbon .canter { background: var(--canter); }
.ribbon .gallop { background: var(--gallop); }

.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.dot.walk { background: var(--walk); }
.dot.trot { background: var(--trot); }
.dot.canter { background: var(--canter); }
.dot.gallop { background: var(--gallop); }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 2px 6px rgba(63, 32, 9, 0.25); }

nav.primary { display: flex; gap: 26px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
nav.primary a:hover { color: var(--ink); }

@media (max-width: 760px) { nav.primary { display: none; } }

/* ---------------- Buttons ---------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 8px 20px -10px rgba(116, 57, 16, 0.8);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 14px 28px -12px rgba(116, 57, 16, 0.9); }
.button.large { padding: 16px 30px; font-size: 17px; }
.button svg { width: 18px; height: 18px; }

.link-arrow { font-weight: 700; color: var(--accent-text); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------- Hero ---------------- */

.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 9vw, 110px) clamp(56px, 8vw, 96px); }

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 90%;
  background:
    radial-gradient(ellipse 50% 60% at 78% 30%, color-mix(in srgb, var(--brown-300) 26%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 10%, color-mix(in srgb, var(--canter) 12%, transparent), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
  margin-bottom: 22px;
}
.eyebrow img { width: 18px; height: 18px; border-radius: 5px; }

h1.headline {
  margin: 0 0 20px;
  font-size: clamp(44px, 7.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 900;
}
h1.headline em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brown-500) 10%, var(--canter) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .ribbon { max-width: 360px; margin: 0 0 26px; height: 10px; }

.lede { margin: 0 0 30px; font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-2); max-width: 36em; line-height: 1.55; }

.hero-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }

.hero-meta { display: flex; gap: 10px 22px; flex-wrap: wrap; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--sage); }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .ribbon, .lede { margin-inline: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
}

/* Phone frame around real screenshots */

.phone {
  position: relative;
  width: min(360px, 82vw);
  margin-inline: auto;
  padding: 11px;
  border-radius: 58px;
  background: linear-gradient(145deg, #3a302a, #15110e 60%);
  box-shadow: var(--shadow-phone), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone picture { display: block; }
.phone img { border-radius: 47px; width: 100%; background: var(--canvas); }
.phone.small { width: min(320px, 78vw); }

.hero-visual { position: relative; }
.hero-visual .phone { transform: rotate(2deg); }

.float-card {
  position: absolute;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: var(--shadow-float);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  animation: bob 6s ease-in-out infinite;
}
.float-card small { display: block; color: var(--ink-3); font-weight: 600; font-size: 12px; margin-bottom: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.float-card .row { display: flex; align-items: center; gap: 12px; }
.float-card .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  background: linear-gradient(160deg, var(--brown-400), var(--brown-600));
}
.float-card .health {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(160deg, #ff5f7e, #e0304f);
}
.float-card .health svg { width: 22px; height: 22px; }
.float-card .title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.float-card .meta { color: var(--ink-3); font-size: 13px; font-weight: 600; }
/* Over the phone's header and its empty lower half, never over the gait card. */
.float-card.horse { top: 3%; left: -12%; }
.float-card.health-card { bottom: 19%; right: -10%; animation-delay: -3s; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 940px) {
  .float-card.horse { left: 2%; top: 8%; }
  .float-card.health-card { right: 2%; }
}
@media (max-width: 520px) {
  .float-card { display: none; }
}

/* ---------------- Sections ---------------- */

section { padding-block: clamp(64px, 9vw, 112px); }

.section-head { text-align: center; max-width: 46em; margin: 0 auto clamp(40px, 5vw, 64px); }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.section-head h2 { margin: 0 0 16px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 900; }
.section-head p { margin: 0 auto; color: var(--ink-2); font-size: clamp(16px, 1.5vw, 19px); }

.band { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------------- Gaits ---------------- */

.gait-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.gait-card {
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  overflow: hidden;
}
.gait-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--c); }
.gait-card h3 { margin: 6px 0 4px; font-size: 26px; letter-spacing: -0.02em; font-weight: 900; color: var(--c); }
.gait-card .beat { font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.gait-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.gait-card .speed { margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.02em; }
.gait-card.walk { --c: var(--walk); }
.gait-card.trot { --c: var(--trot); }
.gait-card.canter { --c: var(--canter); }
.gait-card.gallop { --c: var(--gallop); }

.beats { display: flex; gap: 5px; margin-top: 2px; }
.beats i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); opacity: 0.9; }
.beats i.gap { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }

.gait-note {
  margin: 28px auto 0;
  max-width: 50em;
  text-align: center;
  color: var(--ink-2);
  font-size: 16px;
}

@media (max-width: 900px) { .gait-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gait-grid { grid-template-columns: 1fr; } }

/* ---------------- Feature rows ---------------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(72px, 9vw, 120px); }
.feature-row.flip .feature-text { order: 2; }

.feature-text .kicker { text-align: left; }
.feature-text h3 { margin: 0 0 16px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 900; }
.feature-text > p { margin: 0 0 22px; color: var(--ink-2); font-size: 18px; max-width: 32em; }

.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 16px; }
.checks li::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a35b1e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checks li strong { color: var(--ink); }

.pro-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  vertical-align: 2px;
}

.feature-art { position: relative; }
.feature-art::before {
  content: "";
  position: absolute;
  inset: 10% 8%;
  border-radius: 40px;
  background: var(--glow, var(--brown-300));
  filter: blur(70px);
  opacity: 0.32;
  z-index: 0;
}
.feature-art .phone { z-index: 1; }
.feature-art.live { --glow: var(--canter); }
.feature-art.logbook { --glow: var(--brown-400); }
.feature-art.replay { --glow: var(--trot); }
.feature-art.progress { --glow: var(--walk); }

@media (max-width: 860px) {
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; }
  .feature-row.flip .feature-text { order: 0; }
}

/* ---------------- Everywhere ---------------- */

.surfaces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.surface-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.surface-card svg { width: 26px; height: 26px; color: var(--accent-text); margin-bottom: 12px; }
.surface-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.surface-card p { margin: 0; color: var(--ink-2); font-size: 14px; }

@media (max-width: 1000px) { .surfaces { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .surfaces { grid-template-columns: 1fr 1fr; } }

/* ---------------- Privacy ---------------- */

.privacy-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, color-mix(in srgb, var(--sage) 16%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.privacy-card h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 900; }
.privacy-card > div > p { margin: 0 0 18px; color: var(--ink-2); font-size: 17px; }

.privacy-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.privacy-list li { display: flex; gap: 14px; align-items: flex-start; }
.privacy-list .icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--sage) 16%, transparent);
  color: var(--sage);
}
.privacy-list .icon svg { width: 20px; height: 20px; }
.privacy-list strong { display: block; font-size: 16px; margin-bottom: 2px; }
.privacy-list span { color: var(--ink-2); font-size: 15px; }

@media (max-width: 800px) { .privacy-card { grid-template-columns: 1fr; } }

/* ---------------- Pricing ---------------- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; margin-inline: auto; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
}
.plan.pro { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 12%, transparent), var(--shadow-card); }
.plan h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.plan h3 svg { width: 24px; height: 24px; color: var(--gold); }
.plan .sub { margin: 0 0 22px; color: var(--ink-2); }
.plan .checks { margin-bottom: 24px; }
.plan .foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; font-weight: 600; }

.plan-options { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.plan-options span {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}
.plan-options span.best { background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }

.pricing-note { text-align: center; margin-top: 22px; color: var(--ink-3); font-size: 14px; }

@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* ---------------- FAQ ---------------- */

.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 10px; }

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
}
details.faq-item summary {
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "";
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c8478' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.2s ease;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item p { margin: 14px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
details.faq-item a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Final call to action ---------------- */

.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(ellipse 60% 90% at 85% 0%, rgba(217, 162, 39, 0.35), transparent 60%),
    linear-gradient(160deg, #a9601f 0%, #743910 55%, #3f2009 100%);
  box-shadow: 0 40px 80px -40px rgba(63, 32, 9, 0.7);
}
.final-cta img { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.final-cta h2 { margin: 0 0 14px; font-size: clamp(36px, 5.4vw, 60px); letter-spacing: -0.035em; line-height: 1; font-weight: 900; }
.final-cta p { margin: 0 auto 30px; max-width: 34em; color: rgba(255, 255, 255, 0.88); font-size: 18px; }
.final-cta .ribbon { width: min(280px, 70%); margin: 0 auto 28px; }
.final-cta .button { background: #fff; color: var(--brown-700); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5); }

/* ---------------- Footer ---------------- */

footer.site { border-top: 1px solid var(--line); padding-block: 28px 36px; color: var(--ink-3); font-size: 14px; }
footer.site .ribbon { height: 4px; max-width: 120px; margin-bottom: 18px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-row a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; }
footer.site .brand-line a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-visual .phone { transform: none; }
}
