/* ==========================================================================
   HitGoals — marketing site styles
   Built on the HitGoals design system tokens
   (_ds/hitgoals-the-real-main-8b4e00c6-6f70-4fc8-bd92-96c5d314cf09/styles.css).
   Every colour, size and shadow below resolves to a design-system token.
   ========================================================================== */

/* --------------------------------------------------------------- base --- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream-100);
  color: var(--ink-900);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--red-600); text-decoration: none; }
a:hover { color: var(--red-500); }

.u-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Shared section rhythm */
.section { padding: 160px 24px 0; }
.section--tight { padding: 104px 24px 0; }
.section__inner { max-width: 1180px; margin: 0 auto; }

.eyebrow {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-500);
  margin-bottom: 18px;
}

/* ------------------------------------------------------------ buttons --- */
/* Mirrors the design system Button component: a chunky solid bottom edge that
   the button presses down onto. See components/forms/Button.jsx. */
.btn {
  --btn-edge: 4px;
  --btn-edge-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: 0 var(--btn-edge) 0 var(--btn-edge-color);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition:
    transform var(--dur-fast) var(--ease-standard),
    background var(--dur-fast),
    box-shadow var(--dur-fast);
}
.btn:active {
  transform: translateY(var(--btn-edge));
  box-shadow: 0 0 0 var(--btn-edge-color);
}
.btn:focus-visible { box-shadow: 0 var(--btn-edge) 0 var(--btn-edge-color), var(--ring); }

.btn--sm { --btn-edge: 3px; gap: 6px; padding: 8px 16px; min-height: 38px; font-size: var(--fs-body-sm); }
.btn--md { --btn-edge: 4px; gap: 8px; padding: 12px 22px; min-height: 48px; font-size: var(--fs-body); }

.btn--primary { --btn-edge-color: var(--red-700); background: var(--red-500); color: #fff; }
.btn--primary:hover { background: var(--red-600); color: #fff; }

/* --------------------------------------------------- app store badges --- */
.store-row { display: flex; gap: 14px; flex-wrap: wrap; }
.store-row--hero { margin-bottom: 18px; }
.store-row--center { justify-content: center; margin-top: 40px; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-900);
  color: var(--cream-50);
  border-radius: 12px;
  padding: 12px 22px 13px;
  box-shadow: 0 5px 0 rgba(42, 23, 18, .4);
  transition:
    transform var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast);
}
.store-btn:hover { color: var(--cream-50); }
.store-btn:active { transform: translateY(5px); box-shadow: 0 0 0 rgba(42, 23, 18, .4); }

.store-btn__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
}

/* Slightly smaller pair used under the comparison table */
.store-btn--compact .store-btn__label { font-size: 18px; }

/* Cream-on-red pair inside the final CTA card */
.store-btn--light {
  background: var(--cream-50);
  color: var(--ink-900);
  box-shadow: 0 5px 0 var(--red-700);
}
.store-btn--light:hover { color: var(--ink-900); }
.store-btn--light:active { box-shadow: 0 0 0 var(--red-700); }

/* ------------------------------------------------------------- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 245, 235, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--border-subtle);
}
.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.03em;
  color: var(--ink-900);
}
.brand:hover .brand__word { color: var(--ink-900); }
.brand__hit { color: var(--red-500); }

.site-nav { display: flex; align-items: center; gap: 26px; margin-left: 8px; flex-wrap: nowrap; flex-shrink: 0; }
.site-nav a { font-weight: 700; font-size: 14.5px; color: var(--ink-700); white-space: nowrap; }
.site-nav a:hover { color: var(--red-500); }

/* --------------------------------------------------------------- hero --- */
.hero { position: relative; padding: 76px 24px 0; overflow: hidden; }
.hero__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1;
  letter-spacing: -.045em;
  margin: 0 0 24px;
}
.hero__title span { white-space: nowrap; }
.hero__sub {
  font-weight: 600;
  font-size: clamp(17px, 1.5vw, 19.5px);
  line-height: 1.55;
  color: var(--ink-500);
  max-width: 520px;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero__note { font-weight: 700; font-size: 13px; color: var(--ink-400); margin: 0; }

.hero__visual { position: relative; display: flex; justify-content: flex-end; align-items: flex-end; }
.hero__glow {
  position: absolute;
  right: 2%;
  top: 6%;
  width: clamp(300px, 34vw, 460px);
  aspect-ratio: 1;
  border-radius: var(--radius-pill);
  background: var(--red-100);
  opacity: .55;
}
.hero__mascot {
  position: relative;
  z-index: 3;
  width: clamp(200px, 24vw, 290px);
  /* height:auto so the width/height attributes only supply the aspect ratio
     (they are presentational hints and would otherwise fix the height). */
  height: auto;
  object-fit: contain;
  margin-right: -64px;
  margin-bottom: -6px;
  flex-shrink: 0;
}

/* --------------------------------------------------------- phone mock --- */
.phone {
  position: relative;
  z-index: 2;
  width: min(270px, 60vw);
  flex-shrink: 0;
  aspect-ratio: 9 / 19.5;
  border: 8px solid var(--ink-900);
  border-radius: 38px;
  background: var(--cream-50);
  box-shadow: 0 40px 70px -34px rgba(42, 23, 18, .55);
  overflow: hidden;
  margin-left: auto;
  margin-right: 2%;
  display: flex;
  flex-direction: column;
}
.phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 22px 6px;
  font-weight: 800;
  font-size: 12.5px;
  color: var(--ink-900);
}
.phone__status-icons { letter-spacing: .12em; color: var(--ink-500); }

.phone__head { display: flex; align-items: flex-start; gap: 12px; padding: 8px 18px 14px; }
.phone__menu { display: flex; flex-direction: column; gap: 4px; padding-top: 7px; }
.phone__menu span { width: 17px; height: 2px; background: var(--ink-900); border-radius: 2px; }
.phone__menu span:last-child { width: 12px; }
.phone__greeting { flex: 1; min-width: 0; }
.phone__greeting-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: -.01em;
  color: var(--ink-400);
}
.phone__greeting-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.phone__avatar { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; margin-top: -4px; }

.phone__body { padding: 0 18px; flex: 1; min-height: 0; display: flex; flex-direction: column; }

.chat { display: flex; flex-direction: column; gap: 7px; flex: 1; min-height: 0; overflow: hidden; }
.chat__row { display: flex; align-items: flex-end; gap: 6px; }
.chat__avatar { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.chat__bubble {
  background: var(--cream-200);
  border-radius: 11px 11px 11px 4px;
  padding: 6px 9px;
  font-weight: 700;
  font-size: 10.5px;
  line-height: 1.3;
  max-width: 220px;
}
.chat__bubble p { margin: 0 0 3px; }
.chat__bubble p:last-child { margin-bottom: 0; }
.chat__bubble--user {
  align-self: flex-end;
  background: var(--red-500);
  color: #fff;
  border-radius: 11px 11px 4px 11px;
  max-width: 150px;
}
.chat__bubble--user-wide { max-width: 170px; }

.phone__tabs {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px 14px;
  border-top: 1.5px solid var(--cream-200);
  gap: 4px;
}
.phone__tab { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink-400); }
.phone__tab span { font-weight: 700; font-size: 10px; }
.phone__tab--active { color: var(--red-500); }
.phone__tab--active span { font-weight: 800; }

/* ------------------------------------------------------------ compare --- */
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -.04em;
  margin: 0 0 20px;
}

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  border: 1.5px solid var(--border-default);
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 2px 0 rgba(42, 23, 18, .04);
}
.compare__col { padding: clamp(28px, 4vw, 44px); }
.compare__col--without { border-right: 1.5px solid var(--border-subtle); background: var(--red-50); }
.compare__label {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.compare__label--without { color: var(--red-600); }
.compare__label--with { color: var(--green-600); }
.compare__list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.compare__item { display: flex; gap: 11px; align-items: flex-start; }
.compare__mark { font-weight: 800; font-size: 16px; line-height: 1.4; }
.compare__mark--without { color: var(--red-500); }
.compare__mark--with { color: var(--green-600); }
.compare__text { font-weight: 700; font-size: 15.5px; line-height: 1.5; }
.compare__text--without { color: var(--ink-500); }
.compare__text--with { color: var(--ink-900); }

/* ------------------------------------------------------- how it works --- */
.how__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.how__heading { display: flex; align-items: center; min-height: 100%; }
.how__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 0;
  text-wrap: balance;
}
.steps { border-top: 2.5px solid var(--ink-900); }
.step {
  border-bottom: 1.5px solid var(--border-subtle);
  padding: 28px 4px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: start;
}
.step__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .06em;
  padding-top: 7px;
  color: var(--red-500);
}
.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 2.5vw, 29px);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0 0 10px;
}
.step__text { font-weight: 600; font-size: 16px; line-height: 1.55; color: var(--ink-500); margin: 0; max-width: 460px; }

/* ---------------------------------------------------------------- faq --- */
.faq__inner { max-width: 820px; margin: 0 auto; }
.faq__head { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; }
.faq__mascot { width: 99px; height: 99px; object-fit: contain; flex-shrink: 0; }
.faq__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.06;
  letter-spacing: -.035em;
  margin: 0;
}
.faq__list { display: flex; flex-direction: column; gap: 11px; }
.faq__item {
  background: var(--paper);
  border: 1.5px solid var(--border-default);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 2px 0 rgba(42, 23, 18, .04);
}
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  list-style: none;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__toggle {
  color: var(--red-500);
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-standard);
}
.faq__item[open] .faq__toggle { transform: rotate(45deg); }
.faq__a { font-weight: 600; font-size: 15.5px; line-height: 1.6; color: var(--ink-500); margin: 14px 0 0; }

/* ---------------------------------------------------------------- cta --- */
.cta__card {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--red-500);
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 0 var(--red-700), 0 40px 70px -40px rgba(179, 33, 23, .7);
}
.cta__sheen {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 90% 10%, rgba(255, 255, 255, .16), transparent 65%);
  pointer-events: none;
}
.cta__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  align-items: center;
}
.cta__copy { padding: clamp(40px, 6vw, 72px); }
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 0 0 16px;
  color: #fff;
  text-wrap: balance;
}
.cta__visual { display: flex; align-items: flex-end; justify-content: center; height: 100%; padding-top: 24px; }
.cta__mascot { width: clamp(220px, 26vw, 360px); height: auto; object-fit: contain; }

/* ------------------------------------------------------------- footer --- */
.site-footer { margin-top: 100px; border-top: 1.5px solid var(--border-subtle); background: var(--cream-200); }
.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.site-footer__brand { display: flex; align-items: center; gap: 11px; }
.site-footer__mark { width: 38px; height: 38px; object-fit: contain; }
.site-footer__word { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.03em; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1.5px solid var(--border-default);
  border-radius: 10px;
  padding: 11px 18px;
  box-shadow: 0 3px 0 var(--cream-300);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-900);
  transition:
    transform var(--dur-fast) var(--ease-standard),
    background var(--dur-fast),
    box-shadow var(--dur-fast);
}
.link-btn:hover { color: var(--ink-900); background: var(--cream-50); }
.link-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--cream-300); }

/* --------------------------------------------------------- responsive --- */
@media (max-width: 900px) {
  .compare__col--without { border-right: 0; border-bottom: 1.5px solid var(--border-subtle); }
}

@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .hero__mascot { margin-right: -40px; }
  .section { padding-top: 104px; }
  .section--tight { padding-top: 80px; }
  /* Tighten the bar so logo + nav + CTA still fit on one line at 360-390px. */
  .site-header__inner { gap: 12px; padding: 12px 20px; }
  .site-nav { gap: 14px; margin-left: 0; }
  .site-footer { margin-top: 72px; }
}

@media (max-width: 429px) {
  /* The headline keeps its two nowrap lines, so below ~430px it must scale
     down or the last words are clipped off the right edge. */
  .hero__title { font-size: clamp(28px, 8.6vw, 42px); }
}

@media (max-width: 400px) {
  /* Very narrow phones: scale the bar down so logo + nav + CTA stay on one row. */
  .site-header__inner { gap: 10px; padding: 10px 14px; }
  .brand__word { font-size: 17px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 13px; }
  .btn--sm { padding: 8px 12px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
