/* ============================================================
   That One Time — marketing site
   Brand system from "ThatOneTime — Theme Refresh (TOT Logo)"
   ============================================================ */

:root {
  /* Brand ramp (straight from the logo gradient) */
  --brand-gold:    #f9b233;
  --brand-orange:  #f2683a;
  --brand-coral:   #ef5d34;
  --brand-red:     #e0392b;
  --brand-deep:    #d8392b;
  --brand-magenta: #d81e6a;
  --brand-plum:    #3a1220;

  /* Semantic */
  --primary:        #ef5d34;
  --primary-deep:   #d8392b;
  --accent:         #d81e6a;
  --gold:           #f9b233;

  --ink:            #2b1b24;
  --ink-muted:      rgba(43, 27, 36, .62);
  --ink-faint:      rgba(43, 27, 36, .45);

  --surface:        #fbf6ee;
  --surface-raised: #ffffff;
  --surface-sunken: #f3ebdd;
  --line:           rgba(58, 18, 32, .08);
  --line-strong:    rgba(58, 18, 32, .14);

  /* Gradients */
  --gradient-brand:      linear-gradient(135deg, #f9b233 0%, #f2683a 42%, #e0392b 66%, #d81e6a 100%);
  --gradient-brand-soft: linear-gradient(135deg, #fff2d6 0%, #ffe0cf 55%, #ffd6e4 100%);
  --gradient-recap:      linear-gradient(120deg, #d81e6a, #d8392b);

  --shadow-sm: 0 1px 2px rgba(58, 18, 32, .06), 0 2px 8px rgba(58, 18, 32, .05);
  --shadow-md: 0 6px 18px rgba(58, 18, 32, .10), 0 2px 6px rgba(58, 18, 32, .06);
  --shadow-lg: 0 24px 60px rgba(216, 57, 43, .18), 0 8px 24px rgba(58, 18, 32, .12);

  --radius:    18px;
  --radius-lg: 28px;
  --maxw:      1120px;

  font-size: 18px; /* on-the-road readability, per the app */
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
p { margin: 0 0 1em; }
a { color: var(--primary-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.eyebrow {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin: 0 0 .8em;
}
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.section-head p { font-size: 1.08rem; color: var(--ink-muted); margin: 0; }
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1rem;
  padding: .8em 1.5em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-md); background-size: 140% 140%; }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-deep); }
.btn-light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.32); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255,255,255,.26); }
.btn-lg { font-size: 1.08rem; padding: .95em 1.8em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--ink); font-weight: 700; font-size: .95rem; }
.nav__links a:hover { color: var(--primary-deep); text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: var(--gradient-brand-soft); filter: blur(40px); opacity: .7;
  border-radius: 50%; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero__logo { width: 100%; max-width: 432px; height: auto; margin-bottom: 24px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--surface-raised); border: 1px solid var(--line-strong);
  color: var(--ink-muted); font-weight: 700; font-size: .82rem;
  padding: .4em .9em; border-radius: 999px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #20a464; box-shadow: 0 0 0 3px rgba(32,164,100,.18); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-muted); max-width: 30ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note { font-size: .9rem; color: var(--ink-faint); margin: 18px 0 0; }

/* Phone mockup */
.phone {
  position: relative; width: min(300px, 78%); margin: 0 auto;
  border-radius: 44px; padding: 10px; background: var(--brand-plum);
  box-shadow: var(--shadow-lg); rotate: 2.5deg;
}
.phone::after { /* glow */
  content: ""; position: absolute; inset: -8% -8% -12% -8%; z-index: -1;
  background: var(--gradient-brand); filter: blur(48px); opacity: .35; border-radius: 50%;
}
.phone img { border-radius: 34px; width: 100%; display: block; }
.hero__phone { display: flex; justify-content: center; }

/* trust row */
.trust { display: flex; flex-wrap: wrap; gap: 26px 38px; justify-content: center; margin-top: 8px; }
.trust__item { display: flex; align-items: center; gap: .55em; color: var(--ink-muted); font-weight: 700; font-size: .95rem; }
.trust__item svg { width: 20px; height: 20px; color: var(--primary); flex: none; }

/* ---------- Problem ---------- */
.problem { background: var(--surface-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.problem__list { display: grid; gap: 14px; }
.problem__list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
}
.problem__list .x { color: var(--accent); font-weight: 800; flex: none; font-size: 1.1rem; line-height: 1.4; }
.problem__list li div { font-style: italic; }
.problem h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.problem .lede { font-size: 1.12rem; color: var(--ink-muted); }
.problem .resolve { font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--primary-deep); font-size: 1.15rem; margin-top: 18px; }

/* ---------- Value props ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value {
  background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gradient-brand); color: #fff; margin-bottom: 16px;
}
.value__icon svg { width: 24px; height: 24px; }
.value h3 { font-size: 1.2rem; }
.value p { color: var(--ink-muted); margin: 0; font-size: .98rem; }

/* ---------- Features ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px);
  align-items: center; padding: clamp(36px, 5vw, 64px) 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-child(even) .feature__media { order: -1; }
.feature__tag {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary-deep);
  background: rgba(239, 93, 52, .1); padding: .35em .85em; border-radius: 999px; margin-bottom: 16px;
}
.feature h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.feature p { color: var(--ink-muted); font-size: 1.05rem; }
.feature__media { display: flex; justify-content: center; }
.feature__media .phone { rotate: -2deg; width: min(280px, 74%); }
.feature:nth-child(even) .feature__media .phone { rotate: 2deg; }
.feature__mini { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.feature__mini span {
  font-size: .85rem; font-weight: 700; color: var(--ink-muted);
  background: var(--surface-sunken); border: 1px solid var(--line);
  padding: .4em .8em; border-radius: 999px;
}

/* ---------- How it works ---------- */
.how { background: var(--brand-plum); color: #fff; }
.how .section-head h2 { color: #fff; }
.how .section-head p { color: rgba(255,255,255,.72); }
.how .eyebrow { color: var(--gold); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 32px 28px; position: relative;
}
.step__num {
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.1rem;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gradient-brand); color: #fff; margin-bottom: 18px;
}
.step h3 { color: #fff; font-size: 1.3rem; }
.step p { color: rgba(255,255,255,.72); margin: 0; }

/* ---------- Pricing ---------- */
.pricing { background: var(--surface-raised); border-top: 1px solid var(--line); }
.pricing__note {
  display: inline-flex; align-items: center; gap: .6em; margin: 0 auto 14px;
  background: rgba(249, 178, 51, .16); border: 1px solid rgba(249, 178, 51, .4);
  color: #9a5b00; font-weight: 700; font-size: .9rem;
  padding: .5em 1.1em; border-radius: 999px;
}
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; max-width: 920px; margin: 0 auto; }
.tier {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; position: relative;
}
.tier--featured {
  border-color: transparent; background: var(--surface-raised);
  box-shadow: var(--shadow-lg); outline: 2px solid var(--primary);
}
.tier__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-brand); color: #fff;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .35em 1em; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow-sm);
}
.tier__name { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.25rem; margin-bottom: 4px; }
.tier__price { display: flex; align-items: baseline; gap: 4px; margin: 8px 0 2px; }
.tier__price .amt { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 2.4rem; color: var(--ink); }
.tier__price .per { color: var(--ink-faint); font-weight: 700; font-size: .9rem; }
.tier__tagline { color: var(--ink-muted); font-size: .92rem; min-height: 2.6em; margin-bottom: 16px; }
.tier__feats { display: grid; gap: 10px; margin: 0 0 22px; }
.tier__feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink); }
.tier__feats svg { width: 18px; height: 18px; color: var(--primary); flex: none; margin-top: 3px; }
.tier .btn { width: 100%; justify-content: center; margin-top: auto; }
.pricing__fine { text-align: center; color: var(--ink-faint); font-size: .85rem; margin-top: 26px; }

/* feedback strip */
.feedback {
  margin-top: 40px; background: var(--gradient-brand-soft);
  border: 1px solid rgba(216, 30, 106, .14); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px); text-align: center;
}
.feedback h3 { font-size: 1.4rem; }
.feedback p { color: var(--ink-muted); max-width: 52ch; margin: 0 auto 18px; }
.feedback__votes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.vote {
  background: var(--surface-raised); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: .6em 1.2em; font-family: "Fredoka", sans-serif; font-weight: 600;
  cursor: pointer; transition: .15s; color: var(--ink);
}
.vote:hover { border-color: var(--primary); transform: translateY(-2px); }
.vote.is-selected { background: var(--gradient-brand); color: #fff; border-color: transparent; }
.feedback__thanks { display: none; font-weight: 700; color: var(--primary-deep); margin-top: 14px; }
.feedback__thanks.show { display: block; }

/* ---------- Email capture / CTA ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-card {
  background: var(--gradient-brand); border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 72px); text-align: center; color: #fff; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-card h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-card p { color: rgba(255,255,255,.9); max-width: 46ch; margin: 0 auto 26px; font-size: 1.08rem; }
.signup { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 220px; min-width: 0; border: 0; border-radius: 999px;
  padding: .9em 1.3em; font-size: 1rem; font-family: inherit; color: var(--ink);
  box-shadow: var(--shadow-md);
}
.signup input:focus { outline: 3px solid rgba(255,255,255,.6); }
.signup .btn { background: var(--brand-plum); color: #fff; flex: none; }
.signup .btn:hover { background: #20070f; }
.signup__msg { margin: 14px 0 0; font-weight: 700; min-height: 1.4em; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer__grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer__brand img { height: 30px; margin-bottom: 12px; }
.footer__brand p { color: var(--ink-muted); max-width: 32ch; font-size: .95rem; }
.footer__links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer__col h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.footer__col a { display: block; color: var(--ink-muted); font-weight: 600; margin-bottom: 10px; font-size: .95rem; }
.footer__col a:hover { color: var(--primary-deep); text-decoration: none; }
.footer__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--ink-faint); font-size: .85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid, .problem__grid, .feature { grid-template-columns: 1fr; }
  .hero__phone { order: -1; }
  .feature:nth-child(even) .feature__media { order: 0; }
  .values, .steps { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .hero__sub { max-width: none; }
  .nav__links, .nav__cta .btn-ghost { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--surface-raised); padding: 20px 24px; gap: 18px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
}
@media (max-width: 560px) {
  :root { font-size: 17px; }
  .tiers { grid-template-columns: 1fr; }
  .footer__grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
