/* Untangle site — the "exhale" system: warm paper, quiet teal, one thread. */
:root {
  --bg: #F7F4EE; --surface: #FFFFFF; --muted: #EFEAE1; --border: #E7E2D9;
  --ink: #23211E; --ink-soft: #6E6961; --ink-faint: #8B8478;
  --accent: #326B5B; --accent-press: #28564A; --accent-soft: #E3EDE8;
  --teal-deep: #1F4A3E; --mint: #7FB8A4; --cream: #F7F4EE;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', -apple-system, system-ui, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'Fraunces', Georgia, serif; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* header */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(247,244,238,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.wordmark { font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -0.2px; }
.wordmark span { color: var(--accent); }
nav.site { display: flex; align-items: center; white-space: nowrap; }
nav.site a { margin-left: 22px; font-size: 15px; font-weight: 700; color: var(--ink-soft); }
nav.site a:hover { color: var(--accent); text-decoration: none; }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 800;
  font-size: 17px; padding: 15px 28px; border-radius: 999px; }
.btn:hover { background: var(--accent-press); text-decoration: none; }
.btn.badge { background: var(--ink); }
/* App Store badge (official style; swap for Apple's real badge at launch) */
.store-badge { display: inline-block; line-height: 0; }
.store-badge:hover { text-decoration: none; }
.store-badge svg { height: 58px; width: auto; display: block; border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,.28); transition: transform .15s ease; }
.store-badge:hover svg { transform: scale(1.03); }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--border); }
.soon { display: block; font-size: 13px; color: var(--ink-faint); margin-top: 12px; }
.hero .soon { color: rgba(247, 244, 238, .72); }

/* hero */
.hero { background: linear-gradient(180deg, var(--teal-deep) 0%, #2A5D4E 100%);
  color: var(--cream); padding: 80px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; align-items: center; }
/* Three phones on the band (img/hero-phones.webp). The image has no
   background of its own and carries its own soft shadows, so no filter. */
.hero-shot { display: flex; justify-content: center; margin: -24px -24px -48px 0; }
.hero-shot img { width: min(600px, 100%); height: auto; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.08; font-weight: 800; letter-spacing: -1px; }
.hero h1 em { color: var(--mint); font-style: normal; }
.hero p.sub { font-size: clamp(17px, 2.2vw, 21px); color: rgba(247,244,238,.85); margin: 20px 0 30px; max-width: 34em; }
.hero .shot { margin-bottom: -80px; border-radius: 28px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.thread { width: 120px; margin-bottom: 26px; }

/* phone frame for real app screenshots */
.phone { border: 10px solid #1C1A17; border-radius: 46px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.35); background: #1C1A17; width: min(320px, 78vw); }
.phone img { border-radius: 36px; }
.hero .phone { margin: 0 auto -70px; }


/* sections */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; margin-bottom: 12px; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 44em; margin-top: 14px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px 22px;
  box-shadow: 0 5px 12px rgba(35,33,30,.05); }
.step .num { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-soft); }

/* screenshots band: swipeable slideshow */
.band { background: var(--muted); }
.carousel { position: relative; margin-top: 34px; }
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 20px;
  scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots img { flex: 0 0 auto; height: min(72vh, 620px); width: auto; aspect-ratio: 600 / 1300; border-radius: 18px;
  scroll-snap-align: center; box-shadow: 0 10px 24px rgba(35,33,30,.12); }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--surface); color: var(--accent); font-size: 28px; line-height: 1;
  box-shadow: 0 6px 16px rgba(35,33,30,.2); display: flex; align-items: center;
  justify-content: center; padding-bottom: 4px; }
.car-btn:hover { background: var(--accent-soft); }
.car-btn.prev { left: -10px; }
.car-btn.next { right: -10px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: var(--border); cursor: pointer; transition: transform .15s, background .15s; }
.dots button.on { background: var(--accent); transform: scale(1.3); }

/* privacy */
.privacy { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.privacy ul { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.privacy li { padding-left: 30px; position: relative; font-size: 16px; }
.privacy li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* guides */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px;
  box-shadow: 0 5px 12px rgba(35,33,30,.05); }
.card h3 { font-size: 17px; line-height: 1.35; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.card a { font-weight: 700; font-size: 14px; }

/* faq */
/* why this exists — the research does the talking, so it reads as prose */
.why { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why p { font-size: 18px; line-height: 1.65; color: var(--ink-soft); max-width: 44em; margin-top: 18px; }

.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 22px; margin-top: 12px; }
.faq summary { font-weight: 800; font-size: 16px; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

/* cta */
.cta { background: linear-gradient(180deg, var(--teal-deep), #2A5D4E); color: var(--cream); text-align: center; }
.cta h2 { color: var(--cream); }
.cta p { color: rgba(247,244,238,.85); margin: 14px auto 28px; max-width: 36em; }

/* footer */
footer.site { padding: 44px 0 64px; color: var(--ink-faint); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer.site nav a { margin-right: 18px; color: var(--ink-soft); }
.disclaimer { font-size: 12.5px; color: var(--ink-faint); max-width: 56em; margin-top: 18px; line-height: 1.55; }

/* article pages */
article.guide { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
article.guide h1 { font-size: clamp(30px, 4.6vw, 42px); line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 14px; }
article.guide .meta { color: var(--ink-faint); font-size: 14px; margin-bottom: 30px; }
article.guide h2 { font-size: 24px; margin: 36px 0 12px; }
article.guide p { margin: 14px 0; font-size: 17px; color: #3A3733; }
article.guide li { margin: 8px 0 8px 22px; font-size: 17px; color: #3A3733; }
.appbox { background: var(--accent-soft); border-radius: 20px; padding: 24px; margin: 34px 0; }
.appbox h3 { margin-bottom: 8px; font-size: 18px; }
.appbox p { font-size: 15.5px !important; }

@media (max-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  /* stacked: the phone gets the whole column, capped so a tablet doesn't
     end up with a device bigger than a real one */
  .hero-shot { margin: 0 -12px -40px; }
  .hero-shot img { width: min(560px, 100%); }
  .steps { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  nav.site a { margin-left: 14px; font-size: 14px; }
}
@media (max-width: 700px) {
  nav.site a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  /* one readable slide at a time; swipe + dots take over from the arrows */
  .shots img { height: min(64vh, 520px); }
  .car-btn { display: none; }
}
