/* askrituals.com. Colours are the app's (app/src/lib/theme.ts): warm paper, ink, and the papers of the origami tree.
   Type follows the app's onboarding: bold system sans headings with tight tracking, Georgia only for quotes.
   Art is the onboarding's paper-craft pictures (static/img/*.webp), whites lifted so they sit on the paper. */
:root {
  --paper: #F6F2EC;
  --card: #FFFFFF;
  --ink: #1A1917;
  --soft: #4A4845;
  --quiet: #6B6661;
  --hair: #E3DDD4;
  --magenta: #E0257E;
  --magenta-deep: #B3165F;
  --blue: #1E9FD6;
  --tangerine: #F26A1B;
  --sunflower: #F5C518;
  --teal: #1FAFA8;
  --leaf: #7DB43A;
  --kraft: #C8A06A;
  --tint-sun: #FFF1C2;
  --tint-teal: #DDF2EF;
  --tint-pink: #FCE3EE;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --gutter: 16px;
  --measure: 34rem;
  --radius: 22px;
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--magenta); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--magenta-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--card); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
h1, h2, h3 { letter-spacing: -0.02em; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

/* header and footer */
.papers { display: grid; grid-template-columns: 3fr 1fr 2fr 1fr 2fr 1fr; height: 6px; }
.papers i:nth-child(1) { background: var(--magenta); }
.papers i:nth-child(2) { background: var(--sunflower); }
.papers i:nth-child(3) { background: var(--teal); }
.papers i:nth-child(4) { background: var(--tangerine); }
.papers i:nth-child(5) { background: var(--blue); }
.papers i:nth-child(6) { background: var(--leaf); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.3125rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; gap: 4px 18px; }
.top nav a { font-size: 0.9375rem; font-weight: 600; color: var(--soft); text-decoration: none; padding: 10px 4px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--magenta); }

.foot { border-top: 1px solid var(--hair); padding-top: 28px; padding-bottom: 32px; color: var(--quiet); font-size: 0.9375rem; }
.foot > .wrap:first-child { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; justify-content: space-between; }
.foot > .wrap:first-child > span { font-weight: 800; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot a { text-decoration: none; display: inline-block; padding: 6px 0; }
.foot a:hover { text-decoration: underline; color: var(--ink); }
.foot-more { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: baseline; }
.foot-more h2 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: .08em; margin: 0; color: var(--quiet); font-weight: 700; }
.fine { font-size: 0.8125rem; margin-top: 18px; margin-bottom: 0; }

/* the store line: "Coming soon" until Rituals is live, then a link */
.soon { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; font-size: 1rem; background: var(--card); padding: 12px 20px; border-radius: 999px; box-shadow: 0 1px 0 var(--hair), 0 10px 22px -14px rgba(74, 52, 30, .45); }
.soon svg { width: 18px; height: 18px; flex: none; }
.soon span { color: var(--quiet); font-weight: 400; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 999px; padding: 14px 24px; font-weight: 700; text-decoration: none; }
.store:hover { color: #fff; }

/* art: the onboarding pictures sit straight on the paper */
.art { mix-blend-mode: multiply; }

/* home hero */
.home-hero { position: relative; overflow: hidden; }
.hero { display: grid; gap: 20px; padding-top: 16px; padding-bottom: 56px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.08fr; gap: 40px; padding-top: 36px; padding-bottom: 80px; } }
.kicker { margin: 0 0 14px; font-weight: 700; color: var(--magenta-deep); font-size: 0.9375rem; }
.hero h1 { font-weight: 800; font-size: clamp(2.5rem, 6.2vw, 4.5rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 20px; max-width: 13ch; text-wrap: balance; }
.hero .lede { font-size: 1.1875rem; color: var(--soft); max-width: var(--measure); margin: 0 0 28px; }

.stage { position: relative; padding-bottom: 8%; }
.stage-art { position: relative; z-index: 1; width: 84%; margin-left: auto; }
.fold { position: absolute; z-index: 0; display: block; }
.fold.f1 { width: 36%; aspect-ratio: 1; right: -2%; top: 0; background: var(--sunflower); clip-path: polygon(50% 0, 100% 38%, 72% 100%, 0 70%); opacity: .6; }
.fold.f2 { width: 24%; aspect-ratio: 1; left: 10%; top: 2%; background: var(--teal); clip-path: polygon(0 20%, 100% 0, 60% 100%); opacity: .45; }
.fold.f3 { width: 30%; aspect-ratio: 1; right: 4%; bottom: 0; background: var(--magenta); clip-path: polygon(20% 0, 100% 55%, 0 100%); opacity: .35; }
.phone { position: absolute; z-index: 2; left: 0; bottom: 0; width: 36%; max-width: 250px; margin: 0; transform: rotate(-3deg);
  background: var(--ink); padding: 3%; border-radius: 15% / 7%; box-shadow: 0 2px 0 rgba(0,0,0,.25), 0 24px 40px -16px rgba(74, 52, 30, .55); }
.phone-screen { border-radius: 12% / 5.6%; overflow: hidden; background: var(--card); aspect-ratio: 886 / 1920; }
.phone-screen video { width: 100%; height: 100%; object-fit: cover; }

/* sections */
.section { padding-top: 88px; padding-bottom: 88px; }
.band { padding: 80px 0; }
.tint-sun { background: var(--tint-sun); }
.tint-teal { background: var(--tint-teal); }
.tint-pink { background: var(--tint-pink); }
.section h2, .band h2 { font-weight: 800; font-size: clamp(1.875rem, 4vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; max-width: 20ch; text-wrap: balance; }
.intro { color: var(--soft); max-width: var(--measure); margin: 0; font-size: 1.125rem; }

.beats { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 20px; counter-reset: beat; }
@media (min-width: 640px) { .beats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .beats { grid-template-columns: repeat(4, 1fr); } }
.beats li { counter-increment: beat; background: var(--card); border-radius: var(--radius); padding: 14px 18px 22px; border-top: 6px solid var(--c); box-shadow: 0 1px 0 var(--hair), 0 14px 30px -22px rgba(74, 52, 30, .45); }
.beats li:nth-child(1) { --c: var(--magenta); }
.beats li:nth-child(2) { --c: var(--teal); }
.beats li:nth-child(3) { --c: var(--tangerine); }
.beats li:nth-child(4) { --c: var(--blue); }
.beats .art { width: 100%; max-width: 240px; margin: 0 auto 6px; }
.beats h3 { font-size: 1.1875rem; margin: 0 0 6px; line-height: 1.25; }
.beats h3::before { content: counter(beat); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font-size: 0.9375rem; margin-right: 10px; vertical-align: 2px; }
.beats p { margin: 0; color: var(--soft); }

.split { display: grid; gap: 28px; align-items: center; }
.split > .art { width: min(100%, 420px); justify-self: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.art-left { grid-template-columns: 0.9fr 1.1fr; }
  .split.art-right { grid-template-columns: 1.1fr 0.9fr; }
}
@media (max-width: 859px) { .split.art-right > .art { order: -1; } .split > .art { width: min(80%, 340px); } }
.split p { max-width: var(--measure); color: var(--soft); margin: 0 0 14px; }

.choices { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; max-width: 30rem; }
.choices li { background: var(--card); border-radius: 14px; padding: 13px 16px; box-shadow: 0 1px 0 var(--hair); display: grid; grid-template-columns: 10px 1fr; gap: 0 14px; }
.choices li::before { content: ""; grid-row: span 2; border-radius: 3px; background: var(--c); }
.choices li:nth-child(1) { --c: var(--leaf); }
.choices li:nth-child(2) { --c: var(--sunflower); }
.choices li:nth-child(3) { --c: var(--magenta); }
.choices b { font-weight: 700; }
.choices span { color: var(--quiet); font-size: 0.9375rem; }

.promise { list-style: none; margin: 18px 0; padding: 0; max-width: 34rem; }
.promise li { padding: 12px 0 12px 30px; border-top: 1px solid rgba(26, 25, 23, .1); position: relative; }
.promise li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 12px; background: var(--teal); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* call to action band (every page) */
.cta-band { background: var(--tint-pink); padding: 64px 0; }
.cta-in { display: flex; gap: 32px; align-items: center; }
.cta-in img { width: 220px; flex: none; mix-blend-mode: multiply; }
.cta-in h2 { font-weight: 800; font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 10px; }
.cta-in p { color: var(--soft); max-width: var(--measure); margin: 0 0 20px; }
@media (max-width: 700px) { .cta-in { flex-direction: column; align-items: flex-start; } .cta-in img { width: 170px; } }

/* landing pages, guides, legal */
.page-hero { padding: 36px 0 40px; background: none; }
.hero-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.page-hero h1 { font-weight: 800; font-size: clamp(2.125rem, 5.2vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 16px; text-wrap: balance; }
.page-hero .lede { font-size: 1.1875rem; color: var(--soft); max-width: 36rem; margin: 0 0 22px; }
.eyebrow { font-weight: 700; color: var(--magenta-deep); font-size: 0.9375rem; margin: 0 0 12px; }
.eyebrow a { text-decoration: none; }
.byline { font-size: 0.9375rem; color: var(--quiet); }
.hero-art { justify-self: center; width: min(320px, 100%); mix-blend-mode: multiply; }
@media (max-width: 800px) { .hero-row { grid-template-columns: 1fr; } .hero-art { width: 190px; order: -1; justify-self: start; } }

.prose { max-width: 46rem; padding-top: 8px; padding-bottom: 72px; }
.prose h2 { font-weight: 800; font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.15; margin: 1.8em 0 .5em; }
.prose h3 { font-size: 1.1875rem; margin: 1.5em 0 .4em; line-height: 1.3; }
.prose p, .prose li { color: #2B2926; }
.prose > p:first-child { font-size: 1.1875rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; margin: 1.2em 0; display: block; overflow-x: auto; background: var(--card); border-radius: 12px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hair); vertical-align: top; min-width: 9rem; }
.prose thead th { background: var(--tint-sun); }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 4px solid var(--magenta); font-family: var(--serif); font-size: 1.1875rem; }
.prose code { background: var(--tint-sun); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.prose a { overflow-wrap: anywhere; }
.legal > p:first-child { font-size: 1rem; color: var(--soft); }

.inline-cta { display: flex; gap: 18px; align-items: center; background: var(--card); border-radius: var(--radius); border-top: 6px solid var(--magenta); padding: 18px 22px; margin: 2em 0; box-shadow: 0 14px 30px -22px rgba(74, 52, 30, .45); }
.inline-cta img { width: 96px; flex: none; mix-blend-mode: multiply; }
.inline-cta p { margin: 0 0 12px; }
.inline-cta .soon { box-shadow: none; padding: 0; background: none; }
@media (max-width: 520px) { .inline-cta { flex-direction: column; align-items: flex-start; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 18px; padding-top: 8px; padding-bottom: 72px; }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; text-decoration: none; box-shadow: 0 1px 0 var(--hair), 0 14px 30px -24px rgba(74, 52, 30, .45); }
.card img { width: 110px; mix-blend-mode: multiply; }
.card h2 { font-size: 1.25rem; line-height: 1.25; margin: 6px 0 8px; }
.card p { color: var(--soft); font-size: 0.9375rem; }
.card .more { font-weight: 700; color: var(--magenta-deep); }

/* coming soon and 404 */
.doc { max-width: 44rem; }
.notfound { padding-top: 48px; padding-bottom: 96px; max-width: 34rem; }
.notfound h1 { font-weight: 800; font-size: 2.5rem; letter-spacing: -0.03em; margin: 0 0 12px; }

.mark { display: inline-grid; place-items: center; border-radius: 10px; background: var(--magenta); color: #fff; font-weight: 800; line-height: 1; flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .phone { animation: settle 700ms cubic-bezier(.2,.8,.2,1) 150ms both; }
  @keyframes settle { from { transform: translateY(16px) rotate(1deg); } to { transform: rotate(-3deg); } }
}

@media (max-width: 420px) {
  .soon { white-space: nowrap; font-size: 0.9375rem; padding: 11px 16px; }
  .soon span { display: none; }
  .phone { width: 42%; }
  .stage-art { width: 80%; }
}

/* Clay art (11/19): each piece sits on its own cream clay stage, like Clay's staging, so it's shown as a rounded
   stage card instead of being multiplied into the band colour (which showed as a darker box). */
img[src*="/img/clay-"] { mix-blend-mode: normal; border-radius: 28px; box-shadow: 0 18px 40px -22px rgba(60, 40, 20, .45); }
.beats img[src*="/img/clay-"] { border-radius: 16px; box-shadow: none; }
.card img[src*="/img/clay-"], .inline-cta img[src*="/img/clay-"] { border-radius: 14px; box-shadow: none; }
/* No app recording yet: never ship a placeholder phone; the clay hero takes the whole stage. */
.stage.no-phone .stage-art { width: 100%; margin: 0; }
