/* DIY Pilot — marketing site chrome
   Mirrors heyhabits-website structure.
   Loaded after css/tokens.css. */

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink-900); font-family: var(--font-body); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold-200); }

/* ---- Layout ---- */
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: clamp(16px, 3vw, 32px); }

/* ---- Skip link ---- */
.skip-link { position: absolute; left: -9999px; top: 1rem; z-index: 200; background: var(--navy-700); color: #fff; padding: 10px 20px; border-radius: var(--radius-md); font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 1rem; }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,250,247,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-subtle); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--navy-800); }
.brand img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--ink-700); }
.nav__links a:hover { color: var(--gold-700); }
.nav__cta { display: flex; align-items: center; gap: 12px; flex: none; }

/* Language switcher */
.nav__lang { display: flex; align-items: center; gap: 3px; padding: 3px; background: var(--ink-100); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); }
.nav__lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 28px; padding-inline: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-600); border-radius: var(--radius-pill); }
.nav__lang a:hover { color: var(--navy-800); background: var(--ink-50); }
.nav__lang a[aria-current] { background: var(--navy-700); color: #fff; }

/* Hamburger — pure CSS, no JS */
.nav__menu { display: none; position: relative; }
.nav__menu-toggle { width: 40px; height: 40px; border: 1px solid var(--border-default); border-radius: 12px; background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; list-style: none; }
.nav__menu-toggle::-webkit-details-marker { display: none; }
.nav__menu-toggle span { width: 16px; height: 2px; background: var(--ink-700); border-radius: 99px; display: block; }
.nav__menu-panel { position: absolute; top: calc(100% + 10px); right: 0; width: min(240px, calc(100vw - 32px)); padding: 10px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 2px; }
.nav__menu-panel a:not(.btn) { display: flex; align-items: center; min-height: 40px; padding-inline: 12px; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; color: var(--ink-800); }
.nav__menu-panel a:not(.btn):hover { background: var(--ink-100); }
.nav__menu-panel .btn { margin-top: 6px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 700; font-size: 15px; padding: 11px 20px; border: none; border-radius: var(--radius-md); cursor: pointer; text-decoration: none; transition: opacity .15s; }
.btn:hover { opacity: .88; }
.btn--sm  { font-size: 14px; padding: 9px 16px; }
.btn--lg  { font-size: 16px; padding: 14px 24px; }
.btn--block { display: flex; width: 100%; justify-content: center; }
.btn--accent { background: var(--gold-600); color: var(--navy-900); box-shadow: var(--shadow-accent); }
.btn--dark   { background: var(--navy-900); color: #fff; box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--navy-700); border: 1.5px solid var(--border-default); }
.btn--white  { background: #fff; color: var(--navy-900); box-shadow: var(--shadow-md); }

/* ---- Eyebrow ---- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow--pill { color: var(--gold-800); background: var(--gold-100); padding: 6px 12px; border-radius: var(--radius-pill); }
.eyebrow--plain { color: var(--gold-800); }
.eyebrow--gold  { color: var(--gold-400); }
.eyebrow--navy  { color: var(--navy-400); }

/* ---- Page header (legal / contact) ---- */
.phead { padding-block: clamp(48px, 7vw, 88px) 32px; }
.phead h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 5vw, 52px); line-height: 1.06; letter-spacing: -.025em; color: var(--navy-800); margin: 12px 0 0; }
.phead p  { font-size: 18px; line-height: 1.6; color: var(--ink-600); margin: 18px 0 0; max-width: 40em; }

/* ---- Generic section ---- */
.sec { padding-block: clamp(56px, 8vw, 104px); }
.sec--dark { background: var(--navy-800); }
.sec--tight { padding-block: clamp(32px, 4vw, 52px); }
.sec__head { max-width: 40em; }
.sec__head--center { margin-inline: auto; text-align: center; }
.sec__head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.02em; color: var(--navy-800); margin: 12px 0 0; }
.sec__head--dark h2 { color: #fff; }
.sec__head p { font-size: 17px; line-height: 1.6; color: var(--ink-600); margin: 16px 0 0; }
.sec__head--dark p { color: var(--navy-200); }

/* ---- Hero ---- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__copy h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.03em; color: var(--navy-800); margin: 20px 0 0; }
.hero__copy h1 em { font-style: normal; color: var(--gold-600); }
.hero__body { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-600); max-width: 30em; margin: 22px 0 0; }
.hero__note { font-family: var(--font-mono); font-size: 13px; color: var(--ink-500); margin: 20px 0 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---- Phone mock ---- */
.phone-wrap { display: flex; justify-content: center; }
.phone-shell { width: clamp(230px, 28vw, 285px); background: var(--navy-950); border-radius: 42px; padding: 11px; box-shadow: var(--shadow-lg); }
.phone-screen { border-radius: 32px; overflow: hidden; }
.phone-screenshot { width: 100%; height: auto; display: block; }

/* ---- Features grid ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; margin-top: clamp(32px, 4vw, 52px); }
.feature-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.feature-card__icon { width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--navy-50); color: var(--navy-700); display: flex; align-items: center; justify-content: center; }
.feature-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy-800); line-height: 1.25; margin: 18px 0 0; }
.feature-card p  { font-size: 15px; line-height: 1.55; color: var(--ink-600); margin: 10px 0 0; }

/* ---- Steps (how it works) ---- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 52px); }
.step-card { background: var(--navy-900); border: 1px solid var(--navy-700); border-radius: var(--radius-lg); padding: 24px; }
.step-card__num { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-600); color: var(--navy-900); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.step-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; margin: 16px 0 0; }
.step-card p  { font-size: 14px; line-height: 1.55; color: var(--navy-200); margin: 8px 0 0; }

/* ---- Pricing ---- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; max-width: 720px; margin: clamp(32px, 4vw, 52px) auto 0; }
.plan-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative; }
.plan-card__badge { position: absolute; top: -12px; left: 26px; background: var(--gold-600); color: var(--navy-900); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; }
.plan-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--navy-800); margin: 0; }
.plan-card__price { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.plan-card__price strong { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -.02em; color: var(--navy-900); }
.plan-card__price span { font-size: 14px; color: var(--ink-500); }
.plan-card__tagline { font-size: 15px; color: var(--ink-600); margin: 8px 0 0; }
.plan-card hr { border: none; border-top: 1px solid var(--border-subtle); margin: 20px 0; }
.plan-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink-700); }
.plan-card li svg { color: var(--gold-600); flex-shrink: 0; margin-top: 1px; }
.plan-card__note { font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); text-align: center; margin: 10px 0 0; min-height: 14px; }
.pricing-note { text-align: center; font-size: 14px; color: var(--ink-500); margin-top: 24px; }

/* ---- Download band ---- */
.download-card { background: var(--navy-800); border-radius: var(--radius-xl); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 40px; align-items: center; box-shadow: var(--shadow-lg); overflow: hidden; }
.download-card__copy .btn { margin-top: 26px; }
.download-note { font-family: var(--font-mono); font-size: 13px; color: var(--navy-300); margin: 18px 0 0; }
.download-card__logo { display: flex; justify-content: center; align-items: center; }
.download-card__logo img { width: clamp(120px, 18vw, 200px); border-radius: 50%; filter: drop-shadow(0 12px 28px rgba(14,32,50,.5)); }

/* ---- Legal prose ---- */
.legal { max-width: 680px; }
.legal h2 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--navy-800); margin-top: 2.25rem; margin-bottom: .5rem; }
.legal p, .legal ul, .legal li, .legal address { color: var(--ink-600); font-size: .95rem; line-height: 1.7; }
.legal ul { padding-left: 1.4rem; margin: .5rem 0; }
.legal li { margin-bottom: .25rem; }
.legal a { color: var(--navy-600); text-decoration: underline; }
.legal address { font-style: normal; }
.legal .updated { font-size: .85rem; color: var(--ink-400); margin-bottom: 2rem; }

/* ---- Back link ---- */
.back-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--navy-600); margin-bottom: 8px; }
.back-link:hover { color: var(--gold-700); }

/* ---- Footer ---- */
.footer { padding: 48px 0 60px; border-top: 1px solid var(--border-subtle); margin-top: 80px; }
.footer--dark { background: var(--navy-950); border-top-color: var(--navy-800); margin-top: 0; }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 44px); }
.footer--dark .brand { color: #fff; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { font-size: 14px; font-weight: 600; color: var(--navy-300); }
.footer__links a:hover { color: var(--gold-400); }
.footer small { font-size: 13px; color: var(--navy-400); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__menu  { display: block; }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav__in { min-height: 68px; }
  .nav__cta > .btn { display: none; }
  .hero__copy h1 { font-size: clamp(34px, 10vw, 48px); }
  .footer { margin-top: 56px; }
  .footer__links { gap: 14px 18px; }
  .footer__in { align-items: flex-start; }
}
