/* ============================================================
   RollPunch — Shared Stylesheet
   Brand: Navy #1A237E · Orange #FF6B35 · Dark #0d0d0d
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --navy:      #1A237E;
  --navy-dark: #111766;
  --navy-light:#E8EAF6;
  --orange:    #FF6B35;
  --orange-dk: #e05a25;
  --white:     #ffffff;
  --off-white: #f8f9ff;
  --text:      #1a1a1a;
  --muted:     #666;
  --border:    #e5e7ef;
  --dark-bg:   #0d0d0d;
  --dark-card: #161616;
  --dark-border:#2a2a2a;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* prevent any element from causing horizontal scroll */
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ── Typography ── */
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.08; letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { font-size: 1rem; color: var(--muted); }

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

/* ── Layout ── */
.container  { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.section--sm { padding: 64px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius); font-size: 1rem;
  font-weight: 700; cursor: pointer; border: none; transition: all .18s ease;
  text-decoration: none; line-height: 1;
}
.btn--primary   { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,53,.35); }
.btn--navy      { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn--outline   { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn--outline-white:hover { background: rgba(255,255,255,.12); }
.btn--lg { padding: 18px 36px; font-size: 1.1rem; }
.btn--sm { padding: 10px 18px; font-size: .875rem; }

/* ── Navigation ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  width: 100%; max-width: 100vw; overflow: visible;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.35rem; font-weight: 900; color: var(--navy); white-space: nowrap;
}
.nav__logo-mark {
  width: 36px; height: 36px; background: var(--navy); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a { font-size: .9rem; font-weight: 600; color: var(--muted); transition: color .15s; }
.nav__links a:hover { color: var(--navy); }
.nav__cta { display: flex; gap: 10px; align-items: center; }

/* Mobile nav */
.nav__hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .2s; }
.nav__mobile-menu { display: none; flex-direction: column; gap: 16px; padding: 20px 24px 24px; border-top: 1px solid var(--border); }
.nav__mobile-menu a { font-size: 1rem; font-weight: 600; color: var(--text); }
.nav__mobile-menu.open { display: flex; }

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: block; }
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1866 60%, #1a0d3d 100%);
  color: #fff; padding: 100px 0 80px; overflow: hidden; position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,107,53,.2); color: var(--orange); padding: 6px 14px; border-radius: 100px; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 24px; border: 1px solid rgba(255,107,53,.3); }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--orange); }
.hero__sub { font-size: 1.2rem; color: rgba(255,255,255,.75); margin-bottom: 36px; max-width: 480px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual { display: flex; justify-content: center; }
.hero__phone {
  width: 240px; height: 480px; background: #1e1e2e; border-radius: 36px;
  border: 2px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px rgba(0,0,0,.5);
  overflow: hidden; position: relative; flex-shrink: 0;
}
.hero__phone-screen { padding: 16px 12px; }
.hero__phone-bar { background: var(--navy); padding: 10px 12px; margin: -16px -12px 12px; }
.hero__phone-bar-title { color: #fff; font-size: .75rem; font-weight: 800; text-align: center; }
.phone-card { background: #1A237E22; border-left: 3px solid var(--orange); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; }
.phone-card__name { color: #fff; font-size: .7rem; font-weight: 700; }
.phone-card__meta { color: rgba(255,255,255,.5); font-size: .6rem; margin-top: 2px; }
.phone-card__pay  { color: var(--orange); font-size: .65rem; font-weight: 700; margin-top: 4px; }
.phone-badge { display: inline-block; padding: 2px 6px; border-radius: 10px; font-size: .55rem; font-weight: 700; }
.phone-badge--paid { background: #1b3d1b; color: #4CAF50; }
.phone-badge--open { background: #3d1b0d; color: var(--orange); }

@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero__sub { margin: 0 auto 36px; }
  .hero__actions { justify-content: center; }
  .hero__visual { display: none; }
}

/* ── Stats bar ── */
.stats { background: var(--off-white); border-bottom: 1px solid var(--border); padding: 32px 0; }
.stats__inner { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat__number { font-size: 2rem; font-weight: 900; color: var(--navy); }
.stat__label  { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
@media (max-width: 480px) {
  .stats__inner { gap: 24px; }
  .stat__number { font-size: 1.6rem; }
}

/* ── Problem section ── */
.problem { background: var(--white); }
.problem__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.problem__card { background: #fff8f5; border: 1px solid #ffe0d4; border-radius: var(--radius); padding: 28px 24px; }
.problem__icon { font-size: 1.8rem; margin-bottom: 12px; }
.problem__card h3 { color: var(--text); margin-bottom: 8px; }
@media (max-width: 700px) { .problem__grid { grid-template-columns: 1fr; } }

/* ── Features ── */
.features { background: var(--off-white); }
.features__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; margin-top: 48px; }
.feature-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px 28px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.feature-card__icon {
  width: 52px; height: 52px; background: var(--navy-light); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.feature-card h3 { color: var(--text); }
@media (max-width: 700px) { .features__grid { grid-template-columns: 1fr; } }

/* ── How it works ── */
.how { background: var(--white); }
.how__tabs { display: flex; gap: 8px; margin-bottom: 48px; background: var(--off-white); border-radius: var(--radius); padding: 6px; width: fit-content; max-width: 100%; overflow-x: auto; }
.how__tab { padding: 10px 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: .9rem; cursor: pointer; border: none; background: transparent; color: var(--muted); transition: .15s; }
.how__tab.active { background: var(--navy); color: #fff; }
.how__panel { display: none; }
.how__panel.active { display: block; }
.how__steps { display: flex; flex-direction: column; gap: 0; }
.how__step { display: flex; gap: 24px; align-items: flex-start; padding-bottom: 36px; position: relative; }
.how__step:not(:last-child)::before { content: ''; position: absolute; left: 19px; top: 44px; bottom: 0; width: 2px; background: var(--border); }
.how__step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy);
  color: #fff; font-weight: 800; font-size: .95rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.how__step-body h3 { color: var(--text); margin-bottom: 6px; }

/* ── Coach guide page ── */
.coach-guide .how__step-num { background: var(--orange); }

/* ── Pricing ── */
.pricing { background: var(--off-white); }
.billing-toggle {
  display: flex; justify-content: center; gap: 10px;
  margin: 0 auto 48px; align-items: center;
  flex-wrap: wrap; max-width: 100%; padding: 0 8px;
}
.billing-btn {
  padding: 14px 32px; border-radius: var(--radius);
  border: 2px solid var(--border);
  background: #fff; font-size: 1rem; font-weight: 700;
  color: var(--muted); cursor: pointer; transition: all .2s;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .billing-btn { padding: 12px 20px; font-size: .9rem; }
  .billing-toggle { gap: 8px; }
}
.billing-btn--active {
  background: var(--navy); color: #fff;
  border-color: var(--navy);
}
.billing-btn:hover:not(.billing-btn--active) {
  border-color: var(--navy); color: var(--navy);
}
.save-badge {
  display: inline-block; background: var(--orange); color: #fff;
  font-size: .7rem; font-weight: 800; padding: 3px 10px;
  border-radius: 100px; margin-left: 8px; vertical-align: middle;
  text-transform: uppercase; letter-spacing: .04em;
}
.plan__billed { font-size: .85rem; color: var(--orange); font-weight: 600; min-height: 20px; margin-top: -8px; }
.pricing__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.plan {
  background: #fff; border-radius: var(--radius-lg); padding: 32px 28px;
  border: 2px solid var(--border); display: flex; flex-direction: column; gap: 20px;
  position: relative; transition: border-color .15s;
}
.plan:hover { border-color: var(--navy); }
.plan--featured { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,107,53,.08); }
.plan__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; font-size: .7rem; font-weight: 800;
  padding: 4px 14px; border-radius: 100px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
}
.plan__name  { font-size: .8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.plan__price { font-size: 2.8rem; font-weight: 900; color: var(--navy); line-height: 1; }
.plan__price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan__desc  { font-size: .9rem; color: var(--muted); }
.plan__features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan__features li { display: flex; gap: 10px; font-size: .9rem; color: var(--text); align-items: flex-start; }
.plan__features li::before { content: '✓'; color: var(--orange); font-weight: 800; flex-shrink: 0; }
.plan__location-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; font-style: italic; }
.plan .btn { margin-top: auto; }
@media (max-width: 820px) { .pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; } }

/* ── Founder's Story ── */
.founder { background: var(--white); }
.founder__quote {
  margin: 0;
  border-left: 4px solid var(--orange);
  padding-left: 36px;
}
.founder__quote p {
  font-size: 1.05rem; line-height: 1.8; color: #444;
  margin-bottom: 18px;
}
.founder__quote p:last-of-type { margin-bottom: 28px; }
.founder__sig {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.founder__sig strong { font-size: 1rem; color: var(--navy); }
.founder__sig span { font-size: .85rem; color: var(--muted); }
@media (max-width: 640px) {
  .founder__quote { padding-left: 20px; }
}

/* ── Promo code ── */
.promo-box {
  background: linear-gradient(135deg, var(--navy), #2d3ab0);
  border-radius: var(--radius-lg); padding: 40px 36px; text-align: center;
  color: #fff; margin-top: 48px;
}
.promo-box h3 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.promo-box p  { color: rgba(255,255,255,.7); margin-bottom: 24px; }
.promo-form   { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.promo-input  {
  flex: 1; padding: 14px 18px; border-radius: var(--radius); border: none;
  font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  outline: none; color: var(--navy);
}
.promo-input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: #aaa; }

/* ── FAQ ── */
.faq { background: var(--white); }
.faq__list { margin-top: 48px; display: flex; flex-direction: column; gap: 0; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; background: none; border: none; cursor: pointer;
  text-align: left; font-size: 1rem; font-weight: 700; color: var(--text); gap: 16px;
}
.faq__icon { font-size: 1.2rem; color: var(--orange); flex-shrink: 0; transition: transform .2s; }
.faq__item.open .faq__icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__item.open .faq__a { max-height: 300px; }
.faq__a p { padding-bottom: 20px; }

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1866 100%);
  color: #fff; text-align: center; padding: 100px 0;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,.7); font-size: 1.15rem; margin-bottom: 36px; }
.cta-section .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.footer {
  background: var(--dark-bg); color: rgba(255,255,255,.5); padding: 60px 0 32px;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer__brand { }
.footer__logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 900; color: #fff; margin-bottom: 12px; }
.footer__tagline { font-size: .875rem; line-height: 1.6; max-width: 260px; }
.footer__col h4 { color: #fff; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer__col a  { display: block; font-size: .875rem; color: rgba(255,255,255,.5); margin-bottom: 10px; transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--dark-border); font-size: .8rem; flex-wrap: wrap; gap: 12px; }
@media (max-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ── Form shared ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: .875rem; font-weight: 700; color: var(--text); }
.form-input, .form-select, .form-textarea {
  padding: 13px 16px; border: 2px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; font-family: inherit; color: var(--text); background: #fff;
  transition: border-color .15s; outline: none; width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--navy); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: .8rem; color: var(--muted); }
.form-error { font-size: .8rem; color: #e53935; }

/* ── Step indicator ── */
.steps-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 40px; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--border); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; flex-shrink: 0; }
.step-dot.active { background: var(--navy); color: #fff; }
.step-dot.done   { background: var(--orange); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--border); }
.step-line.done  { background: var(--orange); }

/* ── Page header (inner pages) ── */
.page-hero { background: linear-gradient(135deg, var(--navy), #0d1866); color: #fff; padding: 80px 0 64px; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 540px; margin: 0 auto; }

/* ── Utility ── */
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-navy   { color: var(--navy); }
.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--orange); margin-bottom: 12px;
}
.section-header { text-align: center; max-width: 640px; margin: 0 auto; margin-bottom: 8px; }
.section-header p { margin-top: 12px; font-size: 1.1rem; }
.divider { width: 48px; height: 4px; background: var(--orange); border-radius: 2px; margin: 16px auto 0; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 100px; font-size: .75rem; font-weight: 700; }
.tag--navy { background: var(--navy-light); color: var(--navy); }
.tag--orange { background: #fff0ea; color: var(--orange); }
.card { background: #fff; border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow); }

/* ── Alert ── */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: .9rem; font-weight: 600; }
.alert--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert--error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.alert--info    { background: var(--navy-light); color: var(--navy); border: 1px solid #c5cae9; }

/* ── Login page ── */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--off-white); padding: 40px 20px; }
.login-card { width: 100%; max-width: 440px; background: #fff; border-radius: var(--radius-lg); padding: 44px 40px; box-shadow: var(--shadow-lg); }
.login-logo { text-align: center; margin-bottom: 32px; }

/* ── Invite page ── */
.invite-wrap { min-height: 100vh; background: linear-gradient(135deg, var(--navy) 0%, #0d1866 100%); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.invite-card { width: 100%; max-width: 480px; background: #fff; border-radius: var(--radius-lg); padding: 44px 40px; box-shadow: var(--shadow-lg); text-align: center; }

/* ── Signup page ── */
.signup-wrap { min-height: 100vh; background: var(--off-white); padding: 60px 20px; }
.signup-card { max-width: 620px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); padding: 48px 44px; box-shadow: var(--shadow-lg); }
@media (max-width: 560px) { .signup-card { padding: 32px 24px; } }

.signup-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .signup-form-grid { grid-template-columns: 1fr; } }

/* ── Misc ── */
.badge-app { display: inline-flex; align-items: center; gap: 8px; background: #000; color: #fff; padding: 10px 18px; border-radius: 12px; font-size: .85rem; font-weight: 600; text-decoration: none; transition: opacity .15s; }
.badge-app:hover { opacity: .85; }
