/* Chopbook landing page -- faithful build of the designer's Figma
   (Chop book Landing page, web + mobile views). Single committed light
   theme: every surface and color painted explicitly. */

:root {
  --green: #06C167;
  --green-dark: #05A356;
  --black: #0B0B0B;
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --faint: #9A9AA0;
  --grey-bg: #F9F9F9;
  --card-line: #ECECEE;
  --orange: #F4502A;
  --radius-pill: 999px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Figtree", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; color: inherit; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */
.nav-wrap { background: var(--green); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; }
.nav-links { display: flex; gap: 44px; margin-left: auto; margin-right: 28px; }
.nav-links a { font-size: 15.5px; font-weight: 600; color: var(--black); }
.nav-links a:hover { opacity: 0.7; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.hamburger span { width: 24px; height: 3px; border-radius: 2px; background: var(--black); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: var(--radius-pill);
  padding: 15px 30px; font-size: 15.5px; font-weight: 700; line-height: 1;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-black { background: var(--black); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-greenfill { background: var(--green); color: #fff; }
.btn-wide { width: 100%; }
.nav-download { padding: 13px 24px; font-size: 14.5px; }

.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  border: 0; border-radius: 12px; padding: 11px 22px;
  text-align: left; transition: transform 0.12s ease;
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge span { display: flex; flex-direction: column; font-size: 17px; font-weight: 700; line-height: 1.15; }
.store-badge small { font-size: 10.5px; font-weight: 500; letter-spacing: 0.2px; }
.store-badge-black { background: var(--black); color: #fff; }
.store-badge-white { background: #fff; color: var(--black); }
.store-badge-green { background: var(--green); color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--green); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; }
.hero-copy { padding: 90px 0 110px; }
.hero-copy h1 { font-size: 58px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.08; }
.hero-copy p { margin-top: 26px; font-size: 17px; font-weight: 500; line-height: 1.55; max-width: 42ch; color: rgba(255,255,255,0.95); }
.store-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.trial-line { margin-top: 22px; font-size: 14px; font-weight: 700; font-style: italic; letter-spacing: 2px; }
.hero-art { align-self: end; display: flex; justify-content: flex-end; }
.hero-art img {
  width: min(680px, 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%);
  mask-image: linear-gradient(to right, transparent 0, #000 6%);
}

/* ---------- Generic sections ---------- */
.section { padding: 110px 0; background: #FFFFFF; }
.section-dark { background: var(--black); color: #fff; }
.section-grey { background: var(--grey-bg); }
.section-green { background: var(--green); color: #fff; }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.split-copy h2 { font-size: 42px; font-weight: 800; letter-spacing: -1px; line-height: 1.12; max-width: 16ch; }
.split-copy p { margin-top: 20px; font-size: 16.5px; font-weight: 500; line-height: 1.6; max-width: 46ch; color: var(--muted); }
.section-dark .split-copy p { color: rgba(255,255,255,0.72); }
.split-copy .btn { margin-top: 34px; }
.split-art { display: flex; justify-content: center; }
.split-art img { width: min(560px, 100%); }
.section-dark .split-art img { width: min(420px, 100%); }

/* ---------- Green cards section ---------- */
.center-head { text-align: center; }
.center-head h2 { font-size: 42px; font-weight: 800; letter-spacing: -1px; }
.center-head p { margin-top: 14px; font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.92); }
.center-head-dark p { color: var(--muted); }
.cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px; }
.quote-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 30px 28px; display: flex; flex-direction: column; gap: 16px; }
.quote-tag { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--green-dark); background: rgba(6,193,103,0.12); border-radius: var(--radius-pill); padding: 7px 14px; }
.quote-card p { font-size: 15px; font-weight: 500; line-height: 1.65; color: #3C3C41; }
.quote-who { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.quote-who strong { font-size: 14.5px; font-weight: 700; color: var(--black); }
.quote-who span { font-size: 12px; font-weight: 500; color: var(--faint); }
.cards-arrows { display: none; justify-content: center; gap: 6px; margin-top: 34px; }
.arrow-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--faint); font-size: 20px; }
.arrow-btn-dark { background: var(--black); color: #fff; }

/* ---------- Pricing ---------- */
.toggle-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 48px; }
.bill-toggle { display: flex; background: var(--grey-bg); border-radius: var(--radius-pill); padding: 5px; }
.bill-opt { border: 0; background: transparent; color: var(--muted); border-radius: var(--radius-pill); padding: 12px 30px; font-size: 15px; font-weight: 700; }
.bill-opt-active { background: var(--black); color: #fff; }
.save-note { font-size: 14.5px; font-weight: 700; color: var(--orange); }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; gap: 28px; margin-top: 44px; }
.price-card { border-radius: 22px; padding: 34px 32px 40px; display: flex; flex-direction: column; gap: 0; }
.price-card-light { background: #FDFDFD; border: 1px solid var(--card-line); }
.price-card-dark { background: var(--black); color: #fff; }
.price-name { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.price-card-dark .price-name { color: #fff; font-weight: 700; }
.price-amount { font-size: 56px; font-weight: 800; letter-spacing: -2px; margin-top: 8px; color: var(--black); }
.price-card-dark .price-amount { color: #fff; }
.price-per { font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--faint); }
.trial-note { font-size: 13px; font-weight: 700; color: #E9C46A; margin-top: 4px; }
.price-card .btn { margin-top: 26px; }
.feature-list { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.feature-list li { position: relative; padding-left: 30px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 7L10 17l-5-5' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}
.feature-list-dark li::before { background-color: var(--green); }
.cancel-note { text-align: center; font-size: 15px; font-style: italic; font-weight: 500; color: var(--muted); margin-top: 40px; }

/* ---------- FAQ ---------- */
.section-faq { padding-top: 60px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 1.6px; color: var(--faint); }
.faq-head h2 { font-size: 46px; font-weight: 800; letter-spacing: -1px; margin-top: 16px; }
.faq-head p { margin-top: 16px; font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--muted); max-width: 40ch; }
.faq-list details { border-bottom: 1px solid var(--card-line); }
.faq-list summary {
  list-style: none; display: flex; align-items: center; gap: 22px;
  padding: 26px 4px; font-size: 17px; font-weight: 700; color: var(--black); cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "+"; font-size: 22px; font-weight: 700; color: var(--green); line-height: 1; width: 20px; }
.faq-list details[open] summary::before { content: "−"; color: var(--orange); }
.faq-list details p { padding: 0 4px 26px 46px; font-size: 15px; font-weight: 500; line-height: 1.65; color: var(--muted); max-width: 58ch; }

/* ---------- Contact ---------- */
.section-contact { padding-top: 70px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: start; }
.contact-head h2 { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-top: 16px; max-width: 12ch; }
.social-row { display: flex; gap: 12px; margin-top: 26px; }
.social-btn { width: 52px; height: 52px; border-radius: 14px; background: var(--black); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.social-btn:hover { opacity: 0.85; }
.social-btn-small { width: 38px; height: 38px; border-radius: 11px; }
.contact-row { display: flex; gap: 18px; margin-top: 48px; align-items: flex-start; }
.contact-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(6,193,103,0.14); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-label { font-size: 11.5px; font-weight: 600; letter-spacing: 1px; color: var(--faint); }
.contact-value { display: inline-block; font-size: 19px; font-weight: 700; color: var(--black); margin-top: 3px; }
.contact-value:hover { color: var(--green-dark); }
.contact-small { font-size: 12px; font-weight: 500; color: var(--faint); margin-top: 2px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.contact-form input, .contact-form textarea {
  border: 1px solid var(--card-line); background: var(--grey-bg); border-radius: 12px;
  padding: 15px 16px; font-family: inherit; font-size: 15px; font-weight: 500; color: var(--ink); resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.form-status { font-size: 14px; font-weight: 600; color: var(--green-dark); }
.form-status[data-error] { color: var(--orange); }

/* ---------- CTA ---------- */
.cta { position: relative; background: #060606; color: #fff; overflow: hidden; }
.cta-doodle { position: absolute; top: 0; height: 100%; width: auto; }
.cta-doodle-left { left: 0; }
.cta-doodle-right { right: 0; }
.cta-inner { position: relative; text-align: center; padding: 150px 32px 170px; max-width: 760px; margin: 0 auto; }
.cta-inner h2 { font-size: 42px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.store-row-center { justify-content: center; margin-top: 40px; }
.cta-free { margin-top: 26px; font-size: 17px; font-weight: 700; color: var(--green); }

/* ---------- Footer ---------- */
.footer { background: #FFFFFF; border-top: 1px solid var(--card-line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.footer-copy { font-size: 13.5px; font-weight: 500; color: var(--faint); }
.footer-links { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.footer-links a:hover { color: var(--black); }
.footer-social { display: flex; gap: 10px; }

/* ---------- Waitlist modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(11,11,11,0.6);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; background: #fff; color: var(--ink); border-radius: 22px; padding: 38px 34px; max-width: 430px; width: 100%; }
.modal h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; color: var(--black); }
.modal p { margin-top: 10px; font-size: 14.5px; font-weight: 500; line-height: 1.6; color: var(--muted); }
.modal form { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.modal input {
  border: 1px solid var(--card-line); background: var(--grey-bg); border-radius: var(--radius-pill);
  padding: 15px 20px; font-family: inherit; font-size: 15px; font-weight: 500;
}
.modal input:focus { outline: 2px solid var(--green); border-color: var(--green); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--grey-bg); color: var(--black); font-size: 14px; }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .store-badge { transition: none; }
}

/* ---------- Mobile (matches the 393px design export) ---------- */
@media (max-width: 900px) {
  .container { padding: 0 22px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--green); margin: 0; padding: 8px 22px 22px; box-shadow: 0 18px 24px rgba(0,0,0,0.12); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px 0; font-size: 17px; border-bottom: 1px solid rgba(11,11,11,0.1); }
  .nav-download { display: none; }
  .hamburger { display: flex; }

  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 54px 0 40px; text-align: center; }
  .hero-copy h1 { font-size: 38px; margin: 0 auto; }
  .hero-copy p { margin: 18px auto 0; font-size: 15px; }
  .store-row { flex-direction: column; align-items: stretch; margin-top: 30px; }
  .store-badge { justify-content: center; }
  .trial-line { text-align: center; }
  .hero-art { justify-content: center; }
  .hero-art img { -webkit-mask-image: none; mask-image: none; }

  .section { padding: 70px 0; }
  .split-grid, .split-grid-reverse { grid-template-columns: 1fr; gap: 44px; }
  .split-grid-reverse .split-art { order: 2; }
  .split-grid-reverse .split-copy { order: 1; }
  .split-copy h2 { font-size: 30px; max-width: none; }
  .split-copy p { max-width: none; }

  .center-head h2 { font-size: 30px; }
  .cards-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-top: 40px; padding-bottom: 8px; }
  .quote-card { min-width: 82%; scroll-snap-align: center; }
  .cards-arrows { display: flex; }

  .price-grid { grid-template-columns: 1fr; }
  .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .faq-head h2, .contact-head h2 { font-size: 32px; }
  .form-2col { grid-template-columns: 1fr; }

  .cta-doodle { opacity: 0.5; }
  .cta-inner { padding: 90px 22px 110px; }
  .cta-inner h2 { font-size: 30px; }
  .footer-inner { flex-direction: column; gap: 14px; padding-top: 22px; padding-bottom: 26px; }
}
