/* Jamboy site. Follows Sid's Jamboy marketing images: warm grey #D9DBCF background,
   white panels, Jamboy red, bold Helvetica Neue, lowercase words, short red labels. */

:root {
  --bg: #D9DBCF;
  --paper: #F1F2EC;
  --card: #FFFFFF;
  --line: #C7C9BC;
  --ink: #1D1D1B;
  --ink-mid: #3B3C38;
  --ink-muted: #5E605A;
  --ink-faint: #A6A89F;
  --red: #E94033;
  --red-deep: #D2352A;
  --red-press: #B92C22;
  --green: #00713C;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --track: -0.02em;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-mid);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--red-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--card);
  padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- type ---------- */

h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }

h1 {
  font-size: clamp(46px, 6.4vw, 84px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

p { margin: 0; }

.lede {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-mid);
  max-width: 30em;
}

/* green-dot pills, as in the Jamboy images */
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-mid);
  letter-spacing: var(--track);
}
.pill::before {
  content: "";
  flex: 0 0 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- buttons and form ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px;
  border-radius: 10px; border: 1px solid transparent;
  font: 600 17px/1 var(--font); letter-spacing: var(--track);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease;
}
.btn-primary { background: var(--red-deep); color: #fff; }
.btn-primary:hover { background: var(--red-press); }
.btn-primary:disabled { opacity: .6; cursor: progress; }

.signup { display: flex; gap: 10px; max-width: 520px; }
.signup input[type="email"] {
  flex: 1 1 auto; min-width: 0; min-height: 50px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink);
  font: 400 17px/1 var(--font); letter-spacing: -0.01em;
}
.signup input[type="email"]::placeholder { color: var(--ink-faint); }
.signup input[type="email"]:focus-visible { border-color: var(--red-deep); outline-offset: 1px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { margin-top: 12px; font-size: 15px; color: var(--ink-muted); }
.form-note[data-state="error"] { color: var(--red-press); }
.form-note[data-state="ok"] { color: var(--green); }
.signup-done { font-size: 19px; color: var(--ink); letter-spacing: var(--track); }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(217, 219, 207, 0.9);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-head[data-scrolled="true"] { border-bottom-color: var(--line); }

.head-row { display: flex; align-items: center; gap: 28px; height: 70px; }

.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 118px; transform: translateY(2px); }
.brand span { font-size: 14px; color: var(--ink-muted); letter-spacing: var(--track); }

.nav { display: flex; gap: 26px; }
.nav a { font-size: 16px; color: var(--ink-mid); text-decoration: none; letter-spacing: var(--track); }
.nav a:hover { color: var(--ink); }

.head-row .btn { min-height: 42px; padding: 0 16px; font-size: 16px; }

/* ---------- hero ---------- */

.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }

.hero-head {
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}
.hero-head h1 { max-width: 14ch; }
.hero-head .lede { max-width: 31em; text-wrap: balance; }
.hero-head .form-note { text-wrap: balance; }
.hero-head .form-wrap { width: 100%; max-width: 520px; margin-top: 6px; }
.hero-head .signup { margin: 0 auto; }

/* The screenshot file has a 60px shadow margin around a 1562px shot:
   scale it so the shot itself lines up with the text column edges. */
.hero-shot {
  width: 107.68%;
  max-width: none;
  margin: clamp(28px, 4vw, 56px) 0 0 -3.84%;
}

/* ---------- feature rows ---------- */

.feature { padding: clamp(56px, 8vw, 112px) 0; }
.feature + .feature { padding-top: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.feature-copy { display: grid; gap: 24px; justify-items: start; }

/* Apple-style: the feature name big and bold, then one large line,
   its first sentence dark and the rest grey. No small labels. */
.feature-copy h2 {
  font-size: clamp(52px, 7vw, 100px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  max-width: 9ch;
}
.feature-text {
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-muted);
  max-width: 21em;
}
.feature-text b { color: var(--ink); font-weight: 700; }
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-shot { order: 1; }

/* ---------- who it's for ---------- */

.who { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.who h2 { max-width: 15ch; margin-bottom: clamp(32px, 4vw, 48px); }
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.who-card {
  background: var(--card);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 36px);
  display: grid; gap: 10px; align-content: start;
}
.who-card p { color: var(--ink-muted); max-width: 26em; }

/* ---------- pricing ---------- */

.pricing { padding: clamp(56px, 8vw, 112px) 0; }
.pricing h2 { margin-bottom: clamp(28px, 4vw, 44px); }

.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(40, 42, 34, .35);
}
.price-main { padding: clamp(28px, 4vw, 52px); display: grid; gap: 14px; align-content: start; justify-items: start; }
.price-main img { width: 124px; margin-bottom: 8px; }
.price-amount { display: flex; align-items: baseline; gap: 10px; color: var(--ink); }
.price-amount b { font-size: clamp(56px, 6vw, 80px); line-height: 1; font-weight: 700; letter-spacing: -0.05em; }
.price-amount span { font-size: 20px; color: var(--ink-muted); }
.price-trial { font-size: 19px; color: var(--ink); font-weight: 600; letter-spacing: var(--track); }
.price-small { font-size: 15px; color: var(--ink-muted); }
.price-main .btn { margin-top: 10px; }

.price-list {
  list-style: none; margin: 0;
  padding: clamp(28px, 4vw, 52px);
  background: var(--paper);
  display: grid; gap: 14px; align-content: center;
  font-size: 18px;
}
.price-list li { padding-left: 30px; position: relative; color: var(--ink-mid); }
.price-list li::before {
  content: ""; position: absolute; left: 3px; top: 0.36em;
  width: 11px; height: 6px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

/* ---------- faq ---------- */

.faq-section { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.faq-section h2 { margin-bottom: clamp(24px, 3vw, 36px); }
.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: var(--track);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 14px; height: 14px;
  background:
    linear-gradient(var(--ink-mid), var(--ink-mid)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink-mid), var(--ink-mid)) center / 2px 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 36em; color: var(--ink-muted); }

/* ---------- closing ---------- */

.closing { padding: clamp(64px, 9vw, 120px) 0; background: var(--paper); }
.closing .wrap { display: grid; gap: 22px; justify-items: start; }
.closing .form-wrap { width: 100%; }

/* ---------- footer ---------- */

.site-foot { background: var(--ink); color: var(--ink-faint); padding: 40px 0; font-size: 15px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot-row .made { margin-right: auto; color: var(--bg); }
.foot-row a { color: var(--ink-faint); text-decoration: none; }
.foot-row a:hover { color: var(--paper); }

/* ---------- legal pages ---------- */

.doc { padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); background: var(--paper); }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 12px; }
.doc .updated { color: var(--ink-muted); font-size: 15px; margin-bottom: 40px; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--ink-mid); max-width: 38em; font-size: 17px; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 20px; margin: 12px 0 0; }
.doc li + li { margin-top: 8px; }
.doc .draft {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: 8px; padding: 14px 16px; margin-bottom: 32px; font-size: 15px;
}

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .nav { display: none; }
  .feature-grid, .price { grid-template-columns: 1fr; }
  .feature.flip .feature-copy, .feature.flip .feature-shot { order: 0; }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  .brand span { display: none; }
  .signup { flex-direction: column; }
  .who-grid { grid-template-columns: 1fr; }
  .head-row .btn { padding: 0 12px; font-size: 15px; }
  /* phone crop: 1055px file, 50px shadow margin around 955px shot */
  .hero-shot { width: 110.47%; margin-left: -5.24%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
