/* ============================================================
   Ritualy website — styles.css
   Base: tokens, reset, typography, layout primitives
   ============================================================ */

:root {
  --ink:        #1a1a1a;
  --paper:      #ffffff;
  --accent:     #c73520;   /* vermilion — text */
  --accent-fill:#e0432a;   /* vermilion — fills */
  --warm:       #faf4f2;   /* the one subtle warm band */
  --hairline:   #ededed;
  --text:       #565656;   /* body copy */
  --faint:      #8a8a8a;   /* tracked caps, micro-copy */

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  --wrap: 1040px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* layout primitives */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.rule { border: 0; border-top: 1px solid var(--hairline); }

/* tracked caps label */
.caps {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

/* heavy sans headline */
.headline {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
}

/* the one serif-italic accent — font wired up in Task 2 */
.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__brand {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.nav__brand-a { color: var(--accent); }
.nav__links { display: flex; gap: 26px; }
.nav__links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.nav__links a:hover { color: var(--accent); }

/* ---- webfont: Fraunces italic, accent phrases only ---- */
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Fraunces-Italic.woff2") format("woff2");
}

/* ---- hero ---- */
.hero { padding: 72px 0 80px; }
.hero__inner {
  display: flex;
  align-items: center;
  gap: 56px;
}
.hero__text { flex: 1 1 0; min-width: 0; }
.hero__eyebrow { color: var(--accent); margin-bottom: 18px; }
.hero__headline {
  font-size: clamp(2rem, 4.4vw, 2.85rem);
  max-width: 12ch;
}
.hero__lede {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 34ch;
  margin: 20px 0 26px;
}
.hero__micro { font-size: 12px; color: var(--faint); margin-top: 14px; }

/* "coming soon" badge — styled like an App Store badge, no live link */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  padding: 11px 18px;
}
.badge__apple { width: 19px; height: 22px; fill: #fff; }
.badge__text { font-size: 15px; font-weight: 600; line-height: 1.15; }
.badge__text small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #b9b9b9;
}

/* ---- iPhone device frame (reused by the pillars) ---- */
.hero__device { flex: 0 0 auto; }
.device {
  position: relative;
  width: 252px;
  background: #0c0c0c;
  border-radius: 44px;
  padding: 11px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.20);
}
.device__notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 26px;
  background: #0c0c0c;
  border-radius: 14px;
  z-index: 2;
}
.device__shot {
  width: 100%;
  height: auto;
  border-radius: 33px;
  background: var(--warm);
}

/* ---- the idea ---- */
.idea { background: var(--warm); }
.idea__inner { text-align: center; padding: 64px 28px; }
.idea__headline {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  line-height: 1.16;
}
.idea__body {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 52ch;
  margin: 18px auto 0;
}
.idea__body em { font-style: italic; }

/* ---- features / pillars ---- */
.features { padding: 64px 0 0; }
.features__label { text-align: center; margin-bottom: 8px; }

.pillar {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 44px 0;
}
.pillar--reverse { flex-direction: row-reverse; }
.pillar__text { flex: 1 1 0; min-width: 0; }
.pillar__device { flex: 0 0 auto; }
.pillar__num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.pillar__headline {
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  line-height: 1.18;
  margin: 12px 0 10px;
}
.pillar__body {
  font-size: 1rem;
  line-height: 1.62;
  max-width: 34ch;
}

/* small device variant for pillars 01–03 */
.device--sm { width: 196px; border-radius: 36px; padding: 9px; }
.device--sm .device__shot { border-radius: 27px; }
.device--sm .device__notch { top: 18px; width: 70px; height: 21px; }

/* pillar 04 — feature treatment on the warm band */
.pillar-feature { background: var(--warm); margin-top: 24px; }
.pillar--feature { padding: 60px 0; }
.pillar--feature .pillar__headline { font-size: clamp(1.6rem, 3vw, 2rem); }

/* ---- privacy callout ---- */
.callout__inner { text-align: center; padding: 60px 28px; }
.callout__headline { font-size: clamp(1.5rem, 3vw, 1.95rem); line-height: 1.16; }
.callout__body {
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 46ch;
  margin: 16px auto 18px;
}
.link-arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }

/* ---- support / FAQ ---- */
.support { padding: 56px 0 64px; }
.support__head { text-align: center; margin-bottom: 30px; }
.support__headline { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 10px 0 6px; }
.support__intro { font-size: 1rem; line-height: 1.6; }
.faq { max-width: 600px; margin: 0 auto; }
.faq__item { border-top: 1px solid var(--hairline); padding: 17px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--hairline); }
.faq dt { font-weight: 700; color: var(--ink); font-size: 1rem; }
.faq dd { margin-top: 5px; font-size: 0.97rem; line-height: 1.6; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--hairline); background: #fafafa; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
}
.footer__brand { font-weight: 800; font-size: 16px; color: var(--ink); }
.footer__brand-a { color: var(--accent); }
.footer__links { display: flex; gap: 20px; }
.footer__links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.footer__copy { font-size: 12px; color: var(--faint); }

/* ============================================================
   Responsive — stacks the two-column layouts under 760px
   ============================================================ */
@media (max-width: 760px) {
  .wrap { padding: 0 22px; }

  .nav__inner { height: 58px; }
  .nav__links { gap: 16px; }
  .nav__links a { letter-spacing: 0.1em; }

  .hero { padding: 48px 0 56px; }
  .hero__inner { flex-direction: column; gap: 40px; text-align: left; }
  .hero__headline { max-width: none; }
  .hero__lede { max-width: none; }

  /* stack all pillars; column (not column-reverse) intentionally un-reverses 02 & 04 on mobile */
  .pillar,
  .pillar--reverse,
  .pillar--feature {
    flex-direction: column;
    gap: 32px;
    text-align: center;
    padding: 38px 0;
  }
  .pillar__body { max-width: none; }
  .pillar--feature { padding: 48px 0; }

  .footer__inner {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

/* very small phones — keep the headline from overflowing */
@media (max-width: 380px) {
  .device { width: 218px; }
  .device--sm { width: 178px; }
}

/* ---- legal page (privacy) ---- */
.legal__inner { max-width: 680px; padding-top: 56px; padding-bottom: 72px; }
.legal__title { font-size: clamp(1.9rem, 4vw, 2.4rem); }
.legal__eff { color: var(--faint); margin: 8px 0 28px; }
.legal h2 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 8px;
}
.legal p { font-size: 1rem; line-height: 1.7; }
.legal__back { margin-top: 36px; }
