/* Sulis — sulisapp.com. Layout on top of the "Thermal" design tokens.
   Plain CSS, no build step. Fonts load from Google Fonts via the tokens
   import; if that's unavailable the system serif/sans/mono fallbacks in
   tokens/typography.css take over gracefully. */
@import url("./tokens/typography.css");
@import url("./tokens/colors.css");
@import url("./tokens/spacing.css");

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  padding: 18px 24px; border-bottom: 1px solid var(--hairline);
  background: color-mix(in oklch, var(--bg), transparent 8%);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-inner { max-width: 1120px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .word { font-family: var(--font-display); font-style: italic; font-size: 27px; line-height: 1; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .14s var(--ease-spring), filter .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-sm { height: 38px; padding: 0 14px; border-radius: var(--r-md); font-size: 14px; }
.btn-lg { height: 56px; padding: 0 24px; border-radius: var(--r-lg); font-size: 17px; }
.btn-primary { background: var(--spring); color: var(--on-spring); box-shadow: var(--shadow-spring); }
.btn-primary:hover { filter: brightness(1.04); }
.btn-ink { background: var(--surface-invert); color: var(--text-invert); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: color-mix(in oklch, var(--text), transparent 94%); }

/* App Store badge placeholder — looks like the real one, links to # for now */
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  height: 56px; padding: 0 22px 0 18px; border-radius: 14px;
  background: var(--surface-invert); color: var(--text-invert);
  box-shadow: var(--shadow-md); transition: transform .14s var(--ease-spring), filter .2s;
}
.store-badge:hover { transform: translateY(-1px); filter: brightness(1.08); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge .sb-top { font-size: 10.5px; letter-spacing: 0.02em; opacity: .82; }
.store-badge .sb-main { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600;
  background: var(--spring-soft); color: var(--spring-press); border: 1px solid var(--spring-soft-bd);
}
.pill svg { width: 14px; height: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 48px; }
.hero .ripple {
  position: absolute; top: -120px; right: -120px; width: 560px; height: 560px; pointer-events: none; opacity: .8;
  background: repeating-radial-gradient(circle at 50% 50%, color-mix(in oklch, var(--spring), transparent 88%) 0 1.5px, transparent 1.5px 26px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; position: relative; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: 68px; line-height: 1.02; margin-top: 20px; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--spring-press); }
.hero p { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 520px; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sources { display: flex; gap: 22px; margin-top: 30px; align-items: center; color: var(--text-3); font-size: 13.5px; font-weight: 600; flex-wrap: wrap; }
.sources span { display: inline-flex; align-items: center; gap: 7px; }
.sources svg { width: 16px; height: 16px; }

/* phone mockups (hero) */
.phones { display: flex; justify-content: center; gap: 18px; }
.phone { border-radius: 40px; border: 7px solid #15110c; background: #15110c; box-shadow: var(--shadow-lg); overflow: hidden; width: 232px; }
.phone img { border-radius: 33px; width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; background: var(--surface-2); }
.phone-2 { margin-top: 60px; width: 200px; }

/* ---------- dark quote band ---------- */
.band-dark {
  margin-top: 24px; padding: 64px 0; position: relative; overflow: hidden;
  background: var(--surface-invert); color: var(--text-invert);
}
.band-dark .tex { position: absolute; inset: 0; background: repeating-radial-gradient(circle at 88% 12%, rgba(255,255,255,0.04) 0 1.5px, transparent 1.5px 24px); }
.band-dark .quote { font-family: var(--font-display); font-style: italic; font-size: 40px; line-height: 1.15; color: oklch(0.97 0.01 190); max-width: 820px; position: relative; }
.band-dark .by { font-size: 15.5px; color: rgba(255,255,255,0.6); margin-top: 18px; font-weight: 500; position: relative; }
.band-dark .eyebrow { color: #4cae9f; margin-bottom: 18px; position: relative; }

/* ---------- generic section ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 44px; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin-top: 14px; }
.section-head p { font-size: 17px; color: var(--text-2); margin-top: 14px; line-height: 1.55; }

/* ---------- feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); }
.feature .ic { width: 48px; height: 48px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.feature p { font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* ---------- values strip ---------- */
.values { background: var(--bg-spring); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { text-align: center; padding: 8px; }
.value .vn { font-family: var(--font-display); font-style: italic; font-size: 34px; color: var(--spring-press); line-height: 1; }
.value .vl { font-size: 14px; color: var(--text-2); margin-top: 12px; line-height: 1.4; font-weight: 500; }

/* ---------- screenshots showcase ---------- */
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 6px 0 18px; scroll-snap-type: x mandatory; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.shot {
  flex: 0 0 auto; width: 256px; scroll-snap-align: center;
  border-radius: 44px; border: 8px solid #15110c; background: #15110c;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.shot img { border-radius: 36px; width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; background: var(--surface-2); }
.shots-secondary { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; margin-top: 26px; align-items: start; }
.frame-ipad { border-radius: 30px; border: 10px solid #15110c; background: #15110c; box-shadow: var(--shadow-lg); overflow: hidden; }
.frame-ipad img { border-radius: 20px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.frame-watch { border-radius: 56px; border: 10px solid #15110c; background: #15110c; box-shadow: var(--shadow-lg); overflow: hidden; max-width: 240px; margin: 0 auto; }
.frame-watch img { border-radius: 46px; width: 100%; aspect-ratio: 41 / 50; object-fit: cover; background: var(--surface-2); }
.shot-cap { text-align: center; margin-top: 12px; font-size: 13px; color: var(--text-3); font-weight: 600; }

/* ---------- CTA ---------- */
.cta { padding: 18px 0 88px; }
.cta-card {
  border-radius: var(--r-2xl); padding: 60px 24px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--spring-soft), color-mix(in oklch, var(--spring-soft), var(--surface) 35%));
  border: 1px solid var(--spring-soft-bd);
}
.cta-card .tex { position: absolute; inset: 0; opacity: .7; background: repeating-radial-gradient(circle at 50% 0%, color-mix(in oklch, var(--spring), transparent 88%) 0 1.5px, transparent 1.5px 26px); }
.cta-card .inner { position: relative; }
.cta-card h2 { font-family: var(--font-display); font-style: italic; font-size: 48px; color: var(--spring-press); margin-bottom: 14px; }
.cta-card p { font-size: 17px; color: var(--text-2); max-width: 480px; margin: 0 auto 28px; }
.cta-card .badge-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.foot { padding: 40px 0; border-top: 1px solid var(--hairline); background: var(--surface); }
.foot-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 28px; }
.foot-links { display: flex; gap: 24px; color: var(--text-2); font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.foot-links a:hover { color: var(--spring-press); }
.foot-legal { color: var(--text-3); font-size: 13px; margin-top: 18px; }
.foot-col-tag { color: var(--text-3); font-size: 14px; margin-top: 10px; max-width: 280px; line-height: 1.5; }

/* ---------- legal / content pages ---------- */
.page-hero { padding: 64px 0 30px; }
.page-hero h1 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 56px; line-height: 1.04; }
.page-hero .lede { font-size: 18px; color: var(--text-2); margin-top: 16px; line-height: 1.6; }
.page-hero .meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-top: 18px; }

.doc { padding: 12px 0 80px; }
.doc h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 44px 0 14px; }
.doc h3 { font-size: 18px; font-weight: 700; margin: 26px 0 10px; }
.doc p { font-size: 16.5px; line-height: 1.7; color: var(--text); margin: 12px 0; }
.doc ul { margin: 12px 0 12px 22px; }
.doc li { font-size: 16.5px; line-height: 1.7; color: var(--text); margin: 8px 0; }
.doc a { color: var(--spring-press); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.doc strong { font-weight: 700; }
.doc .callout {
  margin: 22px 0; padding: 20px 22px; border-radius: var(--r-lg);
  background: var(--spring-soft); border: 1px solid var(--spring-soft-bd); color: var(--text);
}
.doc .callout p { margin: 0; font-size: 15.5px; }

/* FAQ */
.faq { display: grid; gap: 16px; }
.faq details {
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--spring-press); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; }
.faq .faq-body p { font-size: 16px; line-height: 1.65; color: var(--text-2); margin: 6px 0; }
.faq .faq-body a { color: var(--spring-press); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
}
@media (max-width: 860px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 44px; }
  .hero-grid { grid-template-columns: 1fr; }
  .phones { margin-top: 8px; }
  .features { grid-template-columns: 1fr; }
  .band-dark .quote { font-size: 28px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 30px; }
  .cta-card h2 { font-size: 36px; }
  .shots-secondary { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 40px; }
  .foot-inner { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 38px; }
  .store-badge { height: 52px; }
}
