/* ===========================================================
   AgentCron Wave 47 - Static Mockup Design System
   Tokens locked from spec. No production styling here yet.
   =========================================================== */

:root {
  --bg: #F6F5F3;
  --bg-alt: #FFFFFF;
  --bg-dark: #0E1430;
  --ink: #171717;
  --ink-2: #666666;
  --hairline: #E7E7E9;
  --teal: #0F766E;
  --teal-soft: #CCFBF1;
  --teal-deep: #134E4A;
  --navy: #0E1430;
  --amber: #B45309;
  --red: #B91C1C;
  --radius-card: 28px;
  --radius-pill: 10px;
  --radius-chip: 999px;
  --radius-input: 14px;
  --container: 1280px;
  --text-container: 860px;
  --pad-section-desktop: 112px;
  --pad-section-mobile: 80px;
  --shadow-card: 0 1px 0 rgba(23,23,23,0.04), 0 8px 24px rgba(23,23,23,0.04);
  --shadow-pop: 0 10px 30px rgba(15, 118, 110, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--teal); }

button { font-family: inherit; cursor: pointer; }

/* Keyboard access */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-card);
  transform: translateY(-200%);
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--teal-deep);
}

#main-content { scroll-margin-top: 72px; }

/* ----- Layout ----- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--text { max-width: var(--text-container); margin: 0 auto; padding: 0 24px; }

.section {
  padding: var(--pad-section-desktop) 0;
  position: relative;
}
.section--tight { padding: 64px 0; }
@media (max-width: 840px) {
  .section { padding: var(--pad-section-mobile) 0; }
}

.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #F4F4F5; }
.section--dark .eyebrow { color: rgba(244,244,245,0.7); }
.section--dark h2,
.section--dark h3 { color: #FFFFFF; }
.section--dark p { color: rgba(244,244,245,0.78); }

/* ----- Type scale ----- */
h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 500; /* medium, not bold */
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
  line-height: 1.08;
}

h1 { font-size: 56px; }
h2 { font-size: 40px; }
h3 { font-size: 24px; letter-spacing: -0.01em; line-height: 1.25; }
h4 { font-size: 18px; letter-spacing: -0.005em; line-height: 1.3; }

@media (max-width: 840px) {
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
}

p { margin: 0 0 16px; color: var(--ink-2); }
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.6; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.accent { color: var(--teal); }

.hairline { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* ----- Pill CTAs ----- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 0;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.pill--teal {
  background: var(--teal);
  color: #FFFFFF;
  box-shadow: var(--shadow-pop);
}
.pill--teal:hover { background: var(--teal-deep); color: #FFFFFF; transform: translateY(-1px); }

.pill--navy { background: var(--navy); color: #FFFFFF; }
.pill--navy:hover { background: #000018; color: #FFFFFF; transform: translateY(-1px); }

.pill--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.pill--ghost:hover { background: rgba(15,118,110,0.06); color: var(--ink); }

.pill--small { height: 40px; padding: 0 18px; font-size: 14px; }
.pill--xs { height: 32px; padding: 0 14px; font-size: 13px; }

/* ----- Sticky nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 243, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
/* Phase 1.8: new logo mark. SVG-driven A glyph with angled crossbar
   (clock-hand nod). Square teal tile, white glyph. Drop-shadow tightens
   the silhouette on hover. */
.nav__logo-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.nav__logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.nav__logo:hover .nav__logo-mark { box-shadow: 0 4px 10px rgba(15,118,110,0.28); }
.nav__links { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.nav__link {
  font-size: 14px;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
}
.nav__link:hover { background: rgba(15,118,110,0.06); color: var(--ink); }
.nav__spacer { flex: 1; }
.nav__signin { font-size: 14px; font-weight: 500; padding: 8px 14px; color: var(--ink); }
.nav__signin:hover { color: var(--teal); }

/* ----- Mobile nav hamburger + drawer ----- */
/* Phase 1.13 — mobile users below 760px previously lost access to
   Products / Pricing / Sign in because nav__links and nav__signin are
   hidden with no replacement. Hamburger button toggles a drawer panel
   that re-exposes those links. Min 44x44 hit target per A11y guidance. */
.nav__hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  flex: 0 0 44px;
}
.nav__hamburger:hover { background: rgba(15,118,110,0.08); }
.nav__hamburger svg { width: 24px; height: 24px; display: block; }
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 8px 24px rgba(23,23,23,0.06);
  z-index: 49;
  padding: 16px 24px 24px;
}
.nav__mobile-menu[data-open="true"] { display: block; }
.nav__mobile-menu a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 12px;
  border-radius: 12px;
  color: var(--ink);
  min-height: 44px;
}
.nav__mobile-menu a:hover { background: rgba(15,118,110,0.06); }
.nav__mobile-menu a.pill { background: var(--teal); color: #fff; text-align: center; margin-top: 8px; padding: 14px 16px; }
.nav__mobile-menu a.pill:hover { background: var(--teal-deep); color: #fff; }
.nav__mobile-menu hr { border: 0; border-top: 1px solid var(--hairline); margin: 8px 0; }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__signin { display: none; }
  .nav__hamburger { display: inline-flex; }
  .nav__cta { height: 44px; }
}
@media (max-width: 420px) {
  .nav__inner { gap: 12px; padding-inline: 12px; }
}
@media (max-width: 360px) {
  .nav__cta { display: none; }
}

/* ----- Hero ----- */
.hero { padding-top: 84px; padding-bottom: 96px; position: relative; overflow: hidden; }
.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}
.hero h1 .punch { color: var(--teal); }
.hero .lead {
  max-width: 620px;
  margin: 0 auto 36px;
  text-align: center;
  font-size: 18px;
}
.hero__ctas { display: flex; justify-content: center; gap: 12px; margin-bottom: 60px; flex-wrap: wrap; }
.hero__meta { text-align: center; color: var(--ink-2); font-size: 13px; }

@media (max-width: 840px) {
  .hero { padding-top: 56px; padding-bottom: 72px; }
  .hero h1 { font-size: 40px; }
}

/* ----- Faux macOS chrome ----- */
.mac {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(14, 20, 48, 0.18), 0 4px 16px rgba(14,20,48,0.08);
  background: #FFFFFF;
  border: 1px solid var(--hairline);
}
.mac__bar {
  display: flex; align-items: center;
  height: 36px;
  background: #1F2937;
  padding: 0 14px;
  gap: 8px;
}
.mac__dots { display: flex; gap: 6px; }
.mac__dot { width: 12px; height: 12px; border-radius: 50%; }
.mac__dot--red { background: #FF5F57; }
.mac__dot--amber { background: #FEBC2E; }
.mac__dot--green { background: #28C840; }
.mac__title { color: rgba(255,255,255,0.5); font-size: 12px; margin-left: 8px; font-weight: 500; }
.mac__body {
  background: #FAFAF9;
  min-height: 360px;
  padding: 0;
}

/* ----- Placeholder screenshot box ----- */
.shot {
  background: linear-gradient(135deg, #CCFBF1 0%, #E0E7FF 50%, #FDE68A 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--navy);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  min-height: 360px;
  padding: 32px;
}
.shot__label {
  background: rgba(255,255,255,0.85);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(14,20,48,0.08);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(14,20,48,0.08);
}
.shot--small { min-height: 220px; }
.shot--tall { min-height: 480px; }

/* ----- Manifesto ----- */
.manifesto {
  text-align: center;
  padding: 80px 0;
}
.manifesto p {
  font-size: 36px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
  max-width: 820px;
  margin: 0 auto;
}
@media (max-width: 840px) {
  .manifesto p { font-size: 24px; }
}

/* ----- Product grid ----- */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .grid-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-6 { grid-template-columns: 1fr; } }

/* Seven-card product grid (Phase 1.7). Layout: 3-3-1 with the 7th card
   centered in the middle column on desktop so the row 3 orphan reads as a
   deliberate emphasis card (CronAgents sits last by intent). */
.grid-products-7 > .card:nth-child(7) {
  grid-column: 2 / 3;
}
@media (max-width: 1000px) {
  .grid-products-7 > .card:nth-child(7) { grid-column: auto; }
}

.card {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

.card__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(15,118,110,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--teal);
  font-weight: 600;
}
.card__icon img { width: 24px; height: 24px; display: block; }
.card__title { font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em; }
.card__sub { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; line-height: 1.55; }
.card__shot {
  border-radius: 14px;
  background: linear-gradient(135deg, #ECFDF5 0%, #E0E7FF 100%);
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline);
  color: var(--navy);
  font-size: 12px;
  font-weight: 500;
}

/* ----- Mixed avatar channel (humans + virtual teammates) ----- */
.channel {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  border: 1px solid var(--hairline);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: stretch;
}
@media (max-width: 840px) {
  .channel { grid-template-columns: 1fr; padding: 24px; gap: 28px; }
}
.channel__list { display: flex; flex-direction: column; gap: 14px; }
.channel__row { display: flex; align-items: flex-start; gap: 12px; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  color: #FFFFFF;
  flex-shrink: 0;
}
.avatar--human-1 { background: #1E3A8A; }
.avatar--human-2 { background: #0F766E; }
.avatar--human-3 { background: #4338CA; }
.avatar--virtual {
  background: #FFFFFF;
  color: var(--navy);
  border: 1.5px dashed var(--navy);
}
.channel__row p { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.5; }
.channel__row .who { font-weight: 600; color: var(--ink); margin-right: 6px; }
.channel__row .ts { color: var(--ink-2); font-size: 12px; margin-left: 6px; }
.channel__doc {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: #FAFAF9;
  padding: 22px;
  font-family: 'Inter', sans-serif;
}
.channel__doc h3 { margin: 0 0 12px; font-size: 15px; letter-spacing: -0.005em; line-height: 1.3; }
.channel__doc .line { height: 8px; background: #E7E7E9; border-radius: 4px; margin-bottom: 8px; }
.channel__doc .line.short { width: 60%; }
.channel__doc .line.mid { width: 80%; }
.channel__doc .line.virtual { background: linear-gradient(90deg, rgba(15,118,110,0.25), rgba(67,56,202,0.25)); }

/* ----- Workflow strip ----- */
.workflow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 1100px) { .workflow { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .workflow { grid-template-columns: repeat(2, 1fr); } }
.workflow__step {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  position: relative;
}
.workflow__step .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
}
.workflow__step h3 { font-size: 14px; margin: 0; letter-spacing: -0.005em; line-height: 1.3; }
.workflow__step p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.workflow__nav {
  margin-top: auto;
  font-size: 11px;
  color: var(--ink-2);
  border-top: 1px dashed var(--hairline);
  padding-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.workflow__nav span {
  background: var(--bg);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--ink-2);
}
.workflow__nav span.on { background: var(--navy); color: #FFFFFF; }

/* ----- Mobile section ----- */
.phone {
  width: 280px;
  margin: 0 auto;
  border-radius: 36px;
  background: var(--navy);
  padding: 12px;
  box-shadow: 0 30px 60px rgba(14,20,48,0.25);
}
.phone__screen {
  background: linear-gradient(180deg, #ECFDF5 0%, #E0E7FF 100%);
  border-radius: 26px;
  /* Height matches a 390:844 source screenshot at the 256px-wide
     inner screen so the bottom-nav labels survive without object-fit
     cropping. 256 * (844 / 390) ≈ 554. */
  height: 554px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--navy);
  padding: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* ----- Stacks ----- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.stack-card {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}
.stack-card .tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}
.stack-card h3 { margin: 0; font-size: 17px; letter-spacing: -0.005em; line-height: 1.3; }
.stack-card p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.stack-card .mini-channel {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stack-card .mini-channel .avatar { width: 24px; height: 24px; font-size: 10px; }

.stack-card__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
/* Phase 1.11 — small per-template glyph in the head row, brand navy +
   teal so the four Apps & DB cards still read as four distinct things
   now that the screenshot crops have been pulled. */
.stack-card__icon {
  flex: 0 0 auto;
  display: block;
}
.chip-soon {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--hairline);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}
.stack-card__cta {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
  opacity: 0.55;
  cursor: not-allowed;
}
.stack-card__cta:hover { transform: none; background: transparent; }

/* ----- Pricing ----- */
.price-toggle {
  display: inline-flex;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 40px;
  align-items: center;
}
.price-toggle button {
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--ink-2);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.price-toggle button.is-on { background: var(--navy); color: #FFFFFF; }
.price-toggle .save { font-size: 11px; color: var(--teal); margin-left: 6px; font-weight: 600; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1100px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .price-card { min-width: 0; }
  .price-card .pill {
    white-space: normal;
    height: auto;
    min-height: 52px;
    text-align: center;
  }
}

.price-card {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.price-card.is-highlight {
  border: 2px solid var(--teal);
  box-shadow: 0 10px 30px rgba(15,118,110,0.12);
  position: relative;
}
.price-card .badge {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--teal);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.price-card h3 { margin: 0; font-size: 20px; }
.price-card .amount { font-size: 38px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.price-card .amount small { font-size: 14px; color: var(--ink-2); font-weight: 400; }
.price-card .tag-row { font-size: 13px; color: var(--ink-2); }
.price-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.price-card ul li { font-size: 14px; color: var(--ink); display: flex; gap: 8px; line-height: 1.5; }
.price-card ul li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--teal-soft); flex-shrink: 0; margin-top: 4px; box-shadow: inset 0 0 0 2px var(--teal); }
.price-card ul li.x { color: var(--ink-2); }
.price-card ul li.x::before { background: transparent; box-shadow: inset 0 0 0 1px var(--hairline); }
.price-card .pill { margin-top: auto; justify-content: center; width: 100%; }

/* ----- FAQ ----- */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details,
.faq__item {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 18px 22px;
}
.faq details[open],
.faq__item[data-open="true"] { box-shadow: var(--shadow-card); }
.faq summary,
.faq__question {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}
.faq__question {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after,
.faq__question::after { content: "+"; color: var(--teal); font-size: 22px; font-weight: 400; transition: transform 0.2s ease; }
.faq details[open] summary::after,
.faq__question[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq details p,
.faq__item p { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* ----- Final CTA ----- */
.final {
  text-align: center;
  padding: 120px 0;
  background: var(--bg);
}
.final h2 { font-size: 48px; max-width: 720px; margin: 0 auto 32px; }
.final h2 .punch { color: var(--teal); }
@media (max-width: 840px) {
  .final { padding: 80px 0; }
  .final h2 { font-size: 32px; }
}

/* ----- Footer (Phase 1.9: minimal) -----
   Layout is brand (1.4fr) + 3 link columns (1fr each).
   No newsletter form, no socials, no "coming soon" stubs.
   Pages with the bare minimum (plan-picker, auth-signup, usage-page) use
   only `.footer__bottom` and do not render the grid. */
.footer {
  background: #FFFFFF;
  border-top: 1px solid var(--hairline);
  padding: 56px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px)  { .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 540px)  { .footer__grid { grid-template-columns: 1fr; gap: 24px; } }
.footer__col h2 {
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col li a { font-size: 14px; color: var(--ink); }
.footer__col li a:hover { color: var(--teal); }
.footer__brand .nav__logo { font-weight: 600; color: var(--ink); font-size: 16px; }
.footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-2);
}

@media (max-width: 540px) {
  .footer__col li a {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
  }
}

/* ----- Decorative blurred gradient ----- */
.blob {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(116px);
  opacity: 0.7;
  z-index: 0;
}
.blob--pale {
  background: radial-gradient(circle, #BFDBFE 0%, #DDD6FE 35%, #CCFBF1 65%, transparent 80%);
}
.blob--top { top: -200px; right: -120px; }
.blob--mid { top: 50%; left: -180px; transform: translateY(-50%); }
.blob--pricing { top: 0; left: 50%; transform: translateX(-50%); opacity: 0.55; }

.section > .container { position: relative; z-index: 1; }

/* ----- Scroll-fade keyframes (stand-in for Framer Motion) ----- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.fade-up.d1 { animation-delay: 0.08s; }
.fade-up.d2 { animation-delay: 0.16s; }
.fade-up.d3 { animation-delay: 0.24s; }
.fade-up.d4 { animation-delay: 0.32s; }

/* ----- Form (auth + plan picker) ----- */
.form {
  max-width: 420px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 36px;
}
.form h2 { font-size: 26px; margin-bottom: 8px; }
.form p.sub { font-size: 14px; color: var(--ink-2); margin-bottom: 24px; }
.form label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; margin-top: 14px; }
.form input[type=email],
.form input[type=password],
.form input[type=text] {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #FAFAF9;
  outline: none;
}
.form input:focus { border-color: var(--teal); background: #FFFFFF; }
.form .pill { margin-top: 24px; width: 100%; justify-content: center; }
.form .small { font-size: 12px; color: var(--ink-2); text-align: center; margin-top: 16px; }

/* ----- Usage bar ----- */
.usage-bar {
  background: var(--hairline);
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.usage-bar__fill { height: 100%; background: var(--teal); border-radius: 999px; }
.usage-bar__fill.warn { background: #B45309; }
.usage-bar__fill.crit { background: #B91C1C; }

/* ----- Watermark visual ----- */
.wm-doc {
  max-width: 720px;
  margin: 40px auto;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  padding: 60px 80px;
  position: relative;
  box-shadow: 0 10px 30px rgba(14,20,48,0.08);
}
.wm-badge {
  position: absolute;
  bottom: 20px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15,118,110,0.08);
  color: var(--teal);
  font-size: 11px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,118,110,0.18);
}
.wm-badge .dot { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }

.wm-slide {
  width: 480px;
  height: 270px;
  margin: 40px auto;
  border-radius: 12px;
  background: linear-gradient(135deg, #0F766E, #0E1430);
  color: #FFFFFF;
  padding: 30px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wm-slide h3 { color: #FFFFFF; font-size: 28px; margin: 0 0 8px; }
.wm-slide p { color: rgba(255,255,255,0.7); margin: 0; }
.wm-slide .wm-badge {
  background: rgba(255,255,255,0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.2);
}
.wm-slide .wm-badge .dot { background: #CCFBF1; }

.wm-pdf {
  max-width: 640px;
  margin: 40px auto;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 48px 56px 24px;
  box-shadow: 0 10px 30px rgba(14,20,48,0.08);
}
.wm-pdf hr { border: 0; border-top: 1px solid var(--hairline); margin: 24px 0 12px; }
.wm-pdf .footer-line {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--ink-2);
}

/* ----- Banner / micro hint ----- */
.banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15,118,110,0.08);
  color: var(--teal);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(15,118,110,0.18);
  margin-bottom: 16px;
}

/* ----- Plan picker grid (3 plans) ----- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 1100px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plan-grid { grid-template-columns: 1fr; } }

/* ----- Helpers ----- */
.tac { text-align: center; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ----- Real screenshot host (replaces gradient placeholders in Phase 1.5) ----- */
.shot--img {
  padding: 0;
  background: #FFFFFF;
  overflow: hidden;
}
.shot--img img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: top left;
  display: block;
}
.card__shot--img {
  padding: 0;
  background: #FFFFFF;
  overflow: hidden;
}
.card__shot--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}
.phone__screen--img {
  padding: 0;
  background: #0E1430;
  overflow: hidden;
}
.phone__screen--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ----- Annual price toggle visuals (Phase 1.5 wires this up) ----- */
.amount-meta {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: -8px;
  min-height: 18px;
  transition: opacity 0.2s ease;
}
.amount[data-pricing] {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.amount[data-flash="1"] {
  opacity: 0;
  transform: translateY(4px);
}
.price-toggle button:not(.is-on):hover { color: var(--ink); }

/* ===========================================================
   Phase 1.8 additions
   =========================================================== */

/* ----- Pricing strike-through + SAVE 50% badge (Phase 1.8) -----
   The Pro card shows the original $19 with a strike, the live $9.50 in
   teal weight-600, plus a small rotated "SAVE 50%" pill that gently
   bounces. The badge auto-hides in annual mode via .price-card[data-period="annual"]
   set by pricing.js. */
.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: -4px;
}
.price-strike {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: line-through;
  text-decoration-color: rgba(115, 115, 115, 0.65);
  text-decoration-thickness: 2px;
  letter-spacing: -0.01em;
}
.price-live {
  font-size: 40px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-live small {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 400;
  margin-left: 4px;
  letter-spacing: 0;
}
.price-note {
  font-size: 12px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.4;
}
.price-hook {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  margin: 0;
  letter-spacing: -0.005em;
}
.price-badge-save {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--teal);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  transform: rotate(4deg);
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.28);
  animation: priceBadgeBounce 2.6s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  z-index: 2;
  white-space: nowrap;
}
@keyframes priceBadgeBounce {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-4px); }
}
/* Hide the SAVE 50% badge when the user toggles annual: the deal is
   month-only, the annual price reflects its own 20% discount instead. */
.price-card[data-period="annual"] .price-badge-save,
.price-card[data-period="annual"] .price-strike,
.price-card[data-period="annual"] .price-hook,
.price-card[data-period="annual"] .price-note { display: none; }
.price-card[data-period="annual"] .price-live { font-size: 38px; color: var(--ink); }
.price-card[data-period="annual"] .price-row { margin-top: 0; }

/* ----- Composed product imagery (Phase 1.8) -----
   Goal: make screenshots feel like product photography, not raw OS captures.
   Approach: layered HTML/CSS over the original PNGs. Hero gets the full
   composed treatment (faded background + zoomed-in detail + floating card
   overlay). Cards get a subtler treatment (mask fade + drop shadow +
   rounded corners). Apps grid tiles share the card treatment. */

/* Hero shot (Phase 1.9) ----------------------------------------------------
   Single clean product screenshot inside the existing .mac chrome wrapper.
   No blurred bed, no floating overlay cards, no translucency. The Mac drop
   shadow is owned by the .mac rule above; .shot-hero only positions the
   image flush inside the body. */
.shot-hero {
  position: relative;
  width: 100%;
  background: #FAFAF9;
  line-height: 0; /* kill the inline-element baseline gap under the image */
}
.shot-hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* Product cards (Phase 1.9): now using physically-cropped source PNGs
   (`-crop.png`), so CSS no longer has to mask edges or push object-position
   off-center to hide blank document body. Each tile is a clean white card,
   the cropped image fills it edge to edge, a soft drop shadow gives the
   product-photo finish. */
.shot-card-product {
  position: relative;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  box-shadow: 0 8px 20px rgba(14, 20, 48, 0.08),
              0 1px 2px rgba(14, 20, 48, 0.04);
  isolation: isolate;
}
.shot-card-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* Phase 1.11 — `.shot-app-tile` removed. The four CRM / Project
   Tracker / OKR Dashboard / Inventory cards no longer carry a
   screenshot because every tile was leaning on the same fallback
   image. The cards now lead with a small per-template glyph (see
   `.stack-card__icon` rule above) and trust copy to carry the rest. */

/* Mobile phone screen: keep using the existing phone__screen--img but
   tighten the inner radius and add a subtle inner glow so it looks like
   a composed product shot rather than a raw screenshot. */
.phone__screen--img {
  position: relative;
}
.phone__screen--img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 22%, rgba(14,20,48,0.08) 100%);
  border-radius: inherit;
}

/* Space Grotesk by Florian Karsten, SIL OFL 1.1 (bundled beside the font). */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/marketing/fonts/SpaceGrotesk.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
h1, h2, h3, .nav__logo { font-family: 'Space Grotesk', 'Inter', sans-serif; }

.pill { font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 600; }
