/* ==========================================================================
   InterestOS — marketing site
   Design system mirrors the app (Theme.swift): warm cream, navy text,
   pastel accents, big rounded cards.
   ========================================================================== */

:root {
  /* Palette — matched to InterestOS/Theme.swift */
  --cream:        #FCF7ED;
  --cream-deep:   #F5ECD9;
  --card:         #FFFFFF;
  --navy:         #212E52;
  --navy-soft:    rgba(33, 46, 82, 0.72);
  --navy-faint:   rgba(33, 46, 82, 0.55);
  --line:         rgba(33, 46, 82, 0.10);

  --orange:  #E67333;
  --blue:    #5C8CED;
  --teal:    #54B5AB;
  --green:   #8CC27D;
  --purple:  #9E8AD4;
  --yellow:  #FACC59;
  --coral:   #F28F84;

  --green-text: #397730;
  --teal-text:  #1A6B64;

  /* Scale */
  --radius-lg: 24px;
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1120px;
  --shadow:    0 18px 40px -18px rgba(33, 46, 82, 0.28);
  --shadow-sm: 0 8px 22px -12px rgba(33, 46, 82, 0.30);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 14px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h2.section-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--navy-soft);
  max-width: 620px;
}
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(230, 115, 51, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(230, 115, 51, 0.8); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: #fff; border-color: rgba(33,46,82,0.2); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 17px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 247, 237, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -16px rgba(33,46,82,.5); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--navy-soft); transition: color .15s; }
.nav-links a:hover { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 12px; color: var(--navy);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 40px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 4px; height: 30%;
  background: var(--yellow); opacity: .55; border-radius: 6px; z-index: -1;
}
.hero p.sub {
  font-size: clamp(17px, 2.1vw, 21px);
  color: var(--navy-soft);
  margin: 22px 0 30px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--navy-faint); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--green-text); flex: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px 7px 9px; font-size: 13.5px; font-weight: 600; color: var(--navy-soft);
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.pill .dot svg { width: 13px; height: 13px; color: #fff; }

/* Hero visual — a stylized "pack" card */
.hero-art { position: relative; display: grid; place-items: center; }
.pack-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 22px;
  width: 100%;
  max-width: 420px;
  transform: rotate(-2deg);
}
.pack-card .pc-hero {
  border-radius: var(--radius);
  height: 190px;
  background: linear-gradient(135deg, #FFE0A6, #FBBB6B 55%, var(--orange));
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.pack-card .pc-hero img { width: 130px; height: 130px; border-radius: 26px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.3); }
.pack-card .pc-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.92); color: var(--navy);
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
}
.pack-card h4 { font-size: 19px; margin: 16px 4px 4px; }
.pack-card .pc-std { font-size: 13px; color: var(--teal-text); font-weight: 700; margin: 0 4px 14px; }
.pc-lines { padding: 0 4px; }
.pc-lines span { display: block; height: 9px; border-radius: 6px; background: var(--cream-deep); margin-bottom: 9px; }
.pc-lines span:nth-child(2) { width: 92%; }
.pc-lines span:nth-child(3) { width: 78%; }
.pc-chips { display: flex; gap: 8px; margin: 16px 4px 4px; flex-wrap: wrap; }
.pc-chip { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }

/* Real device frame wrapping app screenshots */
.phone {
  position: relative;
  max-width: 296px;
  margin: 0 auto;
  border-radius: 46px;
  background: #15171c;
  padding: 10px;
  box-shadow: 0 34px 70px -24px rgba(33, 46, 82, 0.5), 0 0 0 2px rgba(0,0,0,0.06);
}
.phone::after {
  /* dynamic-island hint */
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; background: #15171c; border-radius: 999px; z-index: 2;
}
.phone img { display: block; width: 100%; border-radius: 37px; }
.phone.tilt { transform: rotate(-2deg); }

.float-badge {
  position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: 12px 15px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--line);
}
.float-badge .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-badge .ic svg { width: 19px; height: 19px; color: #fff; }
.float-badge small { display: block; font-weight: 600; font-size: 11.5px; color: var(--navy-faint); }
.fb-1 { top: 6%; right: -4%; transform: rotate(3deg); }
.fb-2 { bottom: 22%; left: -9%; transform: rotate(-3deg); }

/* ---------- Logos / trust strip ---------- */
.trust { padding: 30px 0 10px; }
.trust .container { display: flex; align-items: center; justify-content: center; gap: 14px 40px; flex-wrap: wrap; }
.trust p { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-faint); }
.trust .std { font-weight: 800; font-size: 17px; color: var(--navy-soft); }

/* ---------- Generic section spacing ---------- */
.block { padding: 84px 0; }
.block.alt { background: var(--cream-deep); }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px;
}
.feature {
  background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--line);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ficon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; }
.feature .ficon svg { width: 27px; height: 27px; color: #fff; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--navy-soft); font-size: 15.5px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.step { position: relative; text-align: left; }
.step .num {
  width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 20px; margin-bottom: 18px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--navy-soft); font-size: 15.5px; }
.step .connector { position: absolute; top: 23px; left: 62px; right: -20px; height: 2px; background: var(--line); }
.step:last-child .connector { display: none; }

/* ---------- App showcase (real screenshots) ---------- */
.showcase-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  margin-top: 56px;
}
.showcase-row + .showcase-row { margin-top: 90px; }
.showcase-row.reverse .showcase-copy { order: 2; }
.showcase-copy .kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--teal-text); margin-bottom: 14px;
}
.showcase-copy .kicker .n {
  width: 26px; height: 26px; border-radius: 8px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: 13px;
}
.showcase-copy h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.showcase-copy p { font-size: 17px; color: var(--navy-soft); max-width: 440px; }
.showcase-copy ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.showcase-copy li { display: flex; gap: 10px; font-size: 15.5px; align-items: flex-start; }
.showcase-copy li svg { width: 19px; height: 19px; color: var(--green-text); flex: none; margin-top: 2px; }
.showcase-visual { display: grid; place-items: center; }

/* ---------- Subjects ---------- */
.subjects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.subject {
  border-radius: var(--radius); padding: 24px; border: 1px solid var(--line);
  background: #fff; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-sm);
  transition: transform .16s ease;
}
.subject:hover { transform: translateY(-3px); }
.subject .semoji { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; flex: none; }
.subject h4 { font-size: 17px; margin-bottom: 2px; }
.subject p { font-size: 13.5px; color: var(--navy-soft); }

/* ---------- Standards / credibility band ---------- */
.cred { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 56px; overflow: hidden; position: relative; }
.cred .eyebrow { color: var(--yellow); }
.cred h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); }
.cred p { color: rgba(255,255,255,.78); max-width: 560px; margin-top: 12px; font-size: 17px; }
.cred-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.cred-stat .big { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.cred-stat .big span { color: var(--yellow); }
.cred-stat .lbl { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 4px; }

/* ---------- Privacy band ---------- */
.privacy-band { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.privacy-list { list-style: none; display: grid; gap: 16px; }
.privacy-list li { display: flex; gap: 14px; align-items: flex-start; }
.privacy-list .chk {
  width: 30px; height: 30px; border-radius: 9px; background: var(--green); flex: none;
  display: grid; place-items: center;
}
.privacy-list .chk svg { width: 17px; height: 17px; color: #fff; }
.privacy-list strong { display: block; font-size: 16.5px; }
.privacy-list span { color: var(--navy-soft); font-size: 15px; }
.privacy-visual {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow); text-align: center;
}
.privacy-visual .shield { width: 84px; height: 84px; border-radius: 24px; background: linear-gradient(135deg, var(--teal), var(--green)); display: grid; place-items: center; margin: 0 auto 18px; }
.privacy-visual .shield svg { width: 44px; height: 44px; color: #fff; }
.privacy-visual h3 { font-size: 22px; margin-bottom: 8px; }
.privacy-visual p { color: var(--navy-soft); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 50px auto 0; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm); position: relative;
}
.price-card.featured { border: 2px solid var(--orange); box-shadow: var(--shadow); }
.price-card .plan { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--navy-soft); }
.price-card.featured .plan { color: var(--orange); }
.price-card .amt { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 2px; }
.price-card .amt small { font-size: 17px; font-weight: 600; color: var(--navy-faint); }
.price-card .tagline { color: var(--navy-soft); font-size: 15px; margin-bottom: 22px; }
.price-card ul { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; }
.price-card li { display: flex; gap: 11px; font-size: 15px; align-items: flex-start; }
.price-card li svg { width: 20px; height: 20px; color: var(--green-text); flex: none; margin-top: 1px; }
.price-card .btn { width: 100%; }
.ribbon {
  position: absolute; top: -13px; right: 26px; background: var(--orange); color: #fff;
  font-size: 12px; font-weight: 800; padding: 6px 14px; border-radius: 999px; letter-spacing: .03em;
}
.price-fine { text-align: center; color: var(--navy-faint); font-size: 13.5px; margin-top: 26px; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.quote .stars { color: var(--yellow); font-size: 17px; letter-spacing: 2px; margin-bottom: 14px; }
.quote p { font-size: 16px; color: var(--navy); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 16px; }
.quote .who strong { font-size: 14.5px; display: block; }
.quote .who span { font-size: 13px; color: var(--navy-faint); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 46px auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  padding: 22px 4px; font-size: 18px; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font);
}
.faq-q .ic { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--cream-deep); display: grid; place-items: center; transition: transform .2s ease, background .2s ease; }
.faq-q .ic svg { width: 15px; height: 15px; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a p { padding: 0 4px 22px; color: var(--navy-soft); font-size: 15.5px; }

/* ---------- CTA band ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--orange), #F0A24E);
  border-radius: var(--radius-lg); padding: 60px; text-align: center; color: #fff; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.cta-final h2 { font-size: clamp(28px, 4vw, 42px); color: #fff; }
.cta-final p { color: rgba(255,255,255,.9); font-size: 18px; margin: 14px auto 30px; max-width: 520px; }
.cta-final .btn-primary { background: #fff; color: var(--orange); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }
.cta-final .btn-primary:hover { background: #fff; }
.cta-final .cta-note { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.85); }

/* ---------- Footer ---------- */
.footer { padding: 60px 0 34px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer .brand { margin-bottom: 14px; }
.footer .about { color: var(--navy-soft); font-size: 15px; max-width: 300px; }
.footer h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--navy-faint); margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { font-size: 15px; color: var(--navy-soft); transition: color .15s; }
.footer ul a:hover { color: var(--navy); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--navy-faint); flex-wrap: wrap; gap: 12px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 60px 24px 90px; }
.legal h1 { font-size: 34px; margin-bottom: 6px; }
.legal .meta { color: var(--navy-faint); font-size: 14px; margin-bottom: 30px; }
.legal h2 { font-size: 20px; margin-top: 34px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--navy-soft); font-size: 16px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--teal-text); font-weight: 600; text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--navy-soft); margin-bottom: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .feature-grid, .steps, .subjects, .quotes { grid-template-columns: 1fr 1fr; }
  .cred-stats { grid-template-columns: 1fr 1fr; }
  .privacy-band { grid-template-columns: 1fr; }
  .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; gap: 34px; }
  .showcase-row .showcase-copy, .showcase-row.reverse .showcase-copy { order: -1; }
  .showcase-row + .showcase-row { margin-top: 56px; }
  .step .connector { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cred, .cta-final { padding: 40px 28px; }
}
/* Collapse the nav to a hamburger before the links crowd the logo. */
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 0;
    box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { padding: 14px 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-inner { height: 64px; }
  .brand { font-size: 17px; gap: 9px; }
  .brand img { width: 34px; height: 34px; }
  .nav .nav-cta .btn-primary { padding: 10px 16px; font-size: 14px; }
  .nav-toggle { width: 38px; height: 38px; }
  html { scroll-padding-top: 76px; }
  .nav.open .nav-links { top: 64px; }
}

@media (max-width: 640px) {
  .feature-grid, .steps, .subjects, .quotes, .pricing, .footer-grid { grid-template-columns: 1fr; }
  .cred-stats { grid-template-columns: 1fr 1fr; }
  .block { padding: 60px 0; }
  .hero { padding: 46px 0 20px; }
  .float-badge { display: none; }
  .pack-card { transform: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
