/*
 * Swaddly website: one stylesheet for every page in hosting/public (design: docs/Design.md → Website).
 * Light only, no dark mode (Decisions log, 2026-10-14); every page sets <meta name="color-scheme" content="light">.
 *
 * The header and footer markup is copied into each page. When it changes, update all of them:
 * index.html, 404.html, support/, terms/, privacy/, press/, join/.
 */

@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-latin-wght.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* The app's light tokens (src/theme/tokens.ts). */
  --bg: #f4f0e8;
  --band: #efeae0;
  --card: #fbf8f3;
  --ink: #1f1d1a;
  --ink-2: #6a6358;
  --line: #e4ddd1;
  --line-strong: #d9d1c3;
  --accent: #2f5f7a;
  --accent-pressed: #1e4a62;
  --on-accent: #ffffff;
  --tint: #dce7ee;
  --tint-ink: #12324a;

  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --page: 1120px;
  --reading: 760px;
  --gutter: 24px;
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-pressed);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 24px;
  line-height: 1.25;
}

h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

/* Layout */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.reading {
  max-width: var(--reading);
}

.page {
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
}

.muted {
  color: var(--ink-2);
}

.small {
  font-size: 15px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Draft text Steve still has to fill in, like [LEGAL NAME]. */
.placeholder {
  background: rgba(217, 162, 27, 0.2);
  padding: 0 4px;
  border-radius: 4px;
}

/* Header */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-name {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 26px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

/* Footer */

.site-footer {
  background: var(--band);
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
}

.site-footer-inner {
  padding-block: 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 48px;
}

.footer-about {
  flex: 1 1 260px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-about .brand-mark {
  width: 32px;
  height: 32px;
}

.footer-about .brand-name {
  font-size: 20px;
}

.footer-nav {
  flex: 2 1 420px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}

.footer-nav h2 {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}

/* Buttons and cards */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover {
  background: var(--accent-pressed);
  color: var(--on-accent);
}

.button-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  background: var(--card);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}

/* Long text: Terms, Privacy */

.doc-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 64px;
}

.toc {
  flex: 1 1 220px;
  max-width: 280px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
}

.toc h2 {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
}

.doc {
  flex: 999 1 560px;
  min-width: 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  line-height: 1.65;
}

.doc section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-margin-top: 24px;
}

.doc ul,
.doc ol {
  margin: 0;
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
}

.doc tr:last-child td {
  border-bottom: 0;
}

.doc th {
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
}

/* FAQ */

.faq-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '';
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2.2px solid var(--ink-2);
  border-bottom: 2.2px solid var(--ink-2);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.15s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq-list details > div {
  padding-bottom: 20px;
  max-width: 40em;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Small centered pages: 404, join */

.narrow {
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 88px) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sections (home, press) */

.band {
  background: var(--band);
  border-block: 1px solid var(--line);
}

.section {
  padding-block: clamp(56px, 7vw, 96px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.section-title {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Home: stage switch (data-stage on <body>) */

[data-stage='soon'] .when-live,
[data-stage='live'] .when-soon {
  display: none !important;
}

/* Home: hero */

.hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 56px 64px;
}

.hero-text {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
}

.hero-pitch {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 30em;
}

.hero-note {
  font-size: 15px;
  color: var(--ink-2);
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 20px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--tint-ink);
  font-weight: 700;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-badges a {
  display: inline-flex;
  border-radius: 10px;
}

.store-badges img {
  display: block;
  height: 48px;
  width: auto;
}

/* Google's PNG has clear space built in; this makes its visible badge as tall as Apple's. */
.store-badges .badge-play {
  height: 65px;
  margin: -8px -10px;
}

/* Home: the Timeline screenshot in a phone frame */

.phone {
  margin: 0 auto;
  flex: 0 0 auto;
  width: 300px;
  max-width: 100%;
  border-radius: 46px;
  border: 10px solid #22201c;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(31, 29, 26, 0.45);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

/* Home: features, steps, price */

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.feature {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature h3 {
  margin-top: 4px;
}

.feature p {
  color: var(--ink-2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--tint-ink);
  display: grid;
  place-items: center;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 32px;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps h3 {
  margin-top: 4px;
}

.steps p {
  color: var(--ink-2);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 800;
}

.price-section {
  padding-bottom: clamp(64px, 8vw, 112px);
}

.price {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
}

.price-text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.price-text p {
  font-size: 19px;
  line-height: 1.5;
}

.price .placeholder {
  background: rgba(255, 255, 255, 0.22);
}

.price-promises {
  flex: 0 1 300px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 600;
}

.price-promises li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-promises li::before {
  content: '';
  width: 12px;
  height: 7px;
  margin: 0 4px 4px 2px;
  border-left: 2.4px solid currentColor;
  border-bottom: 2.4px solid currentColor;
  transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Support */

.reading.page {
  margin-inline: auto;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.contact > div {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact h2 {
  font-size: 20px;
  font-weight: 700;
}

/* Press kit */

.press-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}

.press-head .page-head {
  flex: 1 1 420px;
}

.press-about {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 56px;
}

.press-blurbs {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.press-blurbs > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.facts {
  flex: 1 1 280px;
  margin: 0;
  padding: 8px 24px;
}

.facts > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.facts > div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--ink-2);
}

.facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.press-assets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.press-shots {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 24px;
}

.press-shots li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 600;
}

.press-shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.press-shots .press-icon {
  aspect-ratio: 1;
  border: 0;
  border-radius: 22.5%;
}
