:root {
  --page:      #FDFBF7;
  --page-deep: #FAF6EF;
  --card:      #FFFFFF;
  --ink:       #2B2A27;
  --text:      #8B8577;
  --muted:     #A39C8D;
  --line:      #DCD6C9;
  --line-soft: #EDE9E0;

  --w: 900px;                 /* one width for everything */
  --serif: Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html { background: var(--ink); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to top right, var(--page-deep), var(--page));
  background-attachment: fixed;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- navbar ---------- */
.nav-outer { position: sticky; top: 0; z-index: 50; padding: 16px 24px; }
.nav {
  max-width: var(--w); margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  box-shadow: 0 2px 16px rgba(43, 42, 39, 0.05);
}
.nav-logo img { height: 26px; display: block; position: relative; top: 4px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  font-size: 15px; color: var(--ink); font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.nav-links a:hover { opacity: 0.65; }

/* ---------- page content ---------- */
main { flex: 1; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 40px 28px 80px; }

h1 { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1.2; color: var(--ink); margin: 0 0 16px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.3; color: var(--ink); margin: 44px 0 10px; }
h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--ink); margin: 28px 0 6px; }
p { margin: 0 0 16px; }
a { color: var(--ink); }
ul { margin: 0 0 16px; padding-left: 20px; }
li { margin-bottom: 8px; }
.lead { font-size: 18px; line-height: 1.6; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px; margin: 28px 0;
}
.card p:last-child { margin-bottom: 0; }
.card strong { color: var(--ink); }
.meta { font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */
footer { background: var(--ink); color: rgba(253, 251, 247, 0.7); padding: 48px 24px 0; }
.foot-inner { max-width: var(--w); margin: 0 auto; }
.foot-links {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 24px; padding: 0 4px 28px;
  border-bottom: 1px solid rgba(253, 251, 247, 0.12);
  margin-bottom: 28px;
}
.foot-col { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-col a { color: rgba(253, 251, 247, 0.7); text-decoration: none; font-size: 15px; }
.foot-col a:hover { color: #FDFBF7; }

/* legal links sit quieter than the nav links */
.foot-col.legal a { color: rgba(253, 251, 247, 0.4); font-size: 13px; }
.foot-col.legal a:hover { color: rgba(253, 251, 247, 0.7); }

.foot-legal {
  max-width: var(--w); margin: -90px auto 0;
  padding: 0 4px 28px;
  position: relative; z-index: 1;
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: rgba(253, 251, 247, 0.4);
}
.foot-legal a { color: rgba(253, 251, 247, 0.4); text-decoration: none; }
.foot-legal a:hover { color: rgba(253, 251, 247, 0.7); }

.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(253, 251, 247, 0.3);
  color: rgba(253, 251, 247, 0.7);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.foot-social a:hover {
  border-color: rgba(253, 251, 247, 0.7); color: #FDFBF7;
}

/* big mark: fades in from transparent at the top to 5% at the bottom */
.foot-mark { max-width: var(--w); margin: 0 auto; padding-bottom: 24px; }
.foot-mark img {
  width: 100%; display: block; opacity: 0.05;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 100%);
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .nav-outer { padding: 12px 16px; }
  .nav { padding: 12px 18px; }
  .nav-logo img { height: 22px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 14px; }

  .wrap { padding: 28px 20px 60px; }
  h1 { font-size: 38px; }
  h2 { font-size: 20px; margin-top: 36px; }
  h3 { font-size: 22px; }
  .lead { font-size: 16px; }
  .card { padding: 22px; }

  footer { padding: 36px 16px 0; }
  .foot-links { flex-direction: column; gap: 16px; padding-bottom: 28px; }
  .foot-legal { margin-top: -46px; }
  .foot-col { gap: 18px; }
}

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--line-soft); }
.faq:first-of-type { border-top: 1px solid var(--line-soft); }

.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 2px; text-align: left;
  font-family: var(--serif); font-size: 18px; color: var(--ink);
}

.faq-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-icon::before,
.faq-icon::after {
  content: ''; position: absolute; background: var(--muted);
  transition: transform .2s ease;
}
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 1.5px; }
.faq-icon::after  { left: 7px; top: 0; width: 1.5px; height: 16px; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-q[aria-expanded="true"] .faq-icon::before,
.faq-q[aria-expanded="true"] .faq-icon::after { background: var(--ink); }

.faq-a { display: none; padding: 0 2px 20px; }
.faq-q[aria-expanded="true"] + .faq-a { display: block; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- buttons ---------- */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; border-radius: 12px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--ink);
}
.btn-primary { background: var(--ink); color: var(--page); }
.btn-primary:hover { opacity: .88; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(43,42,39,.05); }
.btn-store {
  background: transparent; color: #FDFBF7;
  border-color: rgba(253,251,247,.4);
}
.btn-store:hover { border-color: #FDFBF7; }

/* ---------- hero ---------- */
.hero { padding-bottom: 8px; }
.hero h1 { font-size: 52px; }
.hero-img { padding: 32px 28px 0; max-width: 1400px; margin: 0 auto; }
.hero-img img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  display: block; border-radius: 20px;
}

/* ---------- promise ---------- */
.promise {
  background: url('/assets/home-bg-pattern.png') center / cover no-repeat;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  padding: 40px; margin: 72px 0;
}
.promise-inner { max-width: 460px; text-align: center; }
.promise-inner h2 { margin-top: 0; }

/* ---------- features ---------- */
.features { padding-top: 0; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  margin-bottom: 88px;
}
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-img { order: 1; }
.feature-text h2 { margin-top: 0; }
.feature-img img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  display: block; border-radius: 16px;
}

/* ---------- what's included ---------- */
.included { padding-bottom: 24px; }
.incl-table { margin-top: 32px; border-top: 1px solid var(--line-soft); }
.incl-head, .incl-row {
  display: grid; grid-template-columns: 1fr 80px 80px;
  align-items: center; gap: 12px;
  padding: 14px 4px; border-bottom: 1px solid var(--line-soft);
}
.incl-head { font-size: 13px; color: var(--muted); padding: 10px 4px; }
.incl-head span:not(:first-child),
.incl-row span:not(:first-child) { text-align: center; }
.incl-row span:first-child { color: var(--ink); }

/* ---------- pricing ---------- */
.pricing { padding-top: 56px; }
.plan-toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; margin: 8px 0 24px;
}
.plan-btn {
  border: 0; background: none; cursor: pointer;
  padding: 8px 20px; border-radius: 999px;
  font-family: var(--sans); font-size: 14px; color: var(--text);
}
.plan-btn.active { background: var(--ink); color: var(--page); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px;
}
.plan-pro { border-color: var(--ink); }
.plan h3 { margin: 0 0 8px; }
.plan-price {
  font-family: var(--serif); font-size: 34px; color: var(--ink); margin: 0 0 8px;
}
.plan-star { font-size: 18px; vertical-align: super; color: var(--muted); }
.plan-note { font-size: 14px; margin: 0; }
.plan-foot { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- dark CTA ---------- */
.cta-dark {
  background: var(--ink); color: rgba(253,251,247,.7);
  border-radius: 20px; padding: 56px 40px; margin-top: 32px;
}
.cta-dark h2 { color: #FDFBF7; margin-top: 0; }
.cta-dark a { color: #FDFBF7; }

/* ---------- quotes ---------- */
.quotes { padding-top: 72px; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote-col { display: flex; flex-direction: column; gap: 16px; }
.quote-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px;
}
.quote-card h4 {
  font-family: var(--serif); font-weight: 400; font-size: 17px;
  line-height: 1.45; color: var(--ink); margin: 0 0 20px;
}
.quote-by { display: flex; align-items: center; gap: 10px; }
.quote-by img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.quote-by span { font-size: 14px; color: var(--muted); }

/* ---------- mobile ---------- */
@media (max-width: 780px) {
  .feature { grid-template-columns: 1fr; gap: 24px; margin-bottom: 64px; }
  .feature.reverse .feature-text { order: 1; }
  .feature.reverse .feature-img { order: 2; }
  .quote-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 44px; }
  .hero-img { padding: 24px 20px 0; }
  .hero-img img { border-radius: 14px; }
  .promise { aspect-ratio: auto; padding: 32px 24px; margin: 48px 0; }
  .cta-dark { padding: 48px 0; margin-top: 64px; }
  .btn { padding: 14px 22px; font-size: 15px; }
  .cta-row { width: 100%; }
  .cta-row .btn { flex: 1; }
}

.pricing-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 24px;
}
.pricing-head h2 { margin: 0; }
.pricing-head .plan-toggle { margin: 0; }

.quotes h2 { margin-top: 0; margin-bottom: 24px; }

@media (max-width: 640px) {
  .cta-dark { padding: 40px 24px; }
}

/* ---------- badges ---------- */
.badge {
  display: inline-block; border-radius: 999px;
  padding: 3px 12px; font-size: 13px; font-weight: 600;
  line-height: 1.5;
}
.badge-pro { background: var(--ink); color: var(--page); }
.badge-free { background: var(--page-deep); color: var(--ink); border: 1px solid var(--line); }

/* ---------- tick check icons ---------- */
.tick {
  width: 20px; height: 20px;
  display: block; margin: 0 auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A8C56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12l3 3 5-6'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}

/* ---------- plan card tweaks ---------- */
.plan .badge { margin-bottom: 12px; }
.plan-per {
  font-family: var(--sans); font-size: 14px; font-weight: 400;
  color: var(--ink);
}

/* ---------- store buttons ---------- */
.store-btn { display: inline-block; }
.store-btn img { height: 48px; display: block; }

.quotes .lead { margin-bottom: 28px; }

/* ---------- legal pages ---------- */
.legal .meta { margin-top: -8px; margin-bottom: 20px; }
.legal-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 32px; margin-top: 20px;
}
.legal-card h2 { margin-top: 0; }
.legal-card h3 { font-size: 16px; margin-top: 28px; }
.legal-card > *:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .legal-card { padding: 24px 22px; }
}

.div-divider {
  height: 1px; width: 100%; background-color: var(--line);
  margin-top: 32px; margin-bottom: 32px;
}

/* square bullets, echoing the habit grid */
ul { list-style: none; padding-left: 22px; }
ul li { position: relative; }
ul li::before {
  content: ''; position: absolute;
  left: -18px; top: 9px;
  width: 6px; height: 6px; border-radius: 1.5px;
  background: var(--muted);
}

.hidden { display:none; }

.save-badge {
  display: inline-block; margin-left: 6px;
  background: #E43A58; color: #FFFFFF;
  border-radius: 999px; padding: 2px 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .2px;
  vertical-align: middle;
}
.plan-btn:not(.active) .save-badge { opacity: .6; }

.card-save {
  margin-left: 10px;
  vertical-align: -2px;
  font-family: var(--sans);
  position: relative; top: -2px;
}
