/* RehearSmart marketing site
   Plain CSS, no build step. Light mode by default, dark mode via prefers-color-scheme. */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('assets/fonts/newsreader-200-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/newsreader-200-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/newsreader-italic-400.woff2') format('woff2');
}

:root {
  /* brand palette - re-derived 2026-07-05 from the actual photographs (deep-breath.jpg,
     the-toast.jpg): sampled shadow/midtone/highlight luminance zones from both images,
     then ran the same sepia/saturate/contrast/brightness transform used on .photo-frame img
     to get the "as the photos actually look on the page" warm tones. See build report for
     the sampled values; this is not an eyeballed palette. */
  --paper: #F1E7D6;
  --ink: #241F1C;
  --taupe: #58544E;
  --stage: #0B0B0D;

  /* semantic tokens */
  --bg: var(--paper);
  --surface: #EAE0CE;
  --border: #DCCBAC;
  --text: var(--ink);
  --text-secondary: #4A443E;
  --accent: var(--taupe);
  --accent-text: #ffffff;
  --focus-ring: var(--taupe);
  --max-width: 720px;
  --max-width-wide: 1120px;
  --radius: 14px;

  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--stage);
    --surface: #1C1917;
    --border: #302A26;
    --text: #EDE6DC;
    --text-secondary: #C2BBAE;
    --accent: #C2B6A6;
    --accent-text: #0B0B0D;
    --focus-ring: #C2B6A6;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--wide {
  max-width: var(--max-width-wide);
}

/* Header */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wordmark img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

@media (max-width: 480px) {
  .site-header .wrap {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .site-nav {
    width: 100%;
    gap: 14px;
  }
  .site-nav a {
    font-size: 14px;
    padding: 8px 4px;
    margin: -8px -4px;
  }
}

/* Hero */

.hero {
  padding: 64px 0 56px;
}

.hero .wrap--wide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .wrap--wide {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
}

.hero-visual {
  display: flex;
  justify-content: center;
}

@media (max-width: 899px) {
  .hero-visual {
    order: 2;
    margin-top: 8px;
  }
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.005em;
}

h1 em {
  font-style: italic;
  font-weight: 400;
}

.lede {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 0 32px;
}

.lede em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
}

@media (max-width: 480px) {
  .lede {
    font-size: 17px;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--accent);
}

.cta-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

/* App Store placeholder badge */

.app-store-cta {
  margin-top: 8px;
}

.badge-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.app-badge-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
}

.app-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.cta-note {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* CSS phone frame (no image assets) */

.phone-frame {
  --bezel: 12px;
  position: relative;
  width: clamp(200px, 26vw, 280px);
  aspect-ratio: 1320 / 2868;
  background: #100E0C;
  border: 1px solid var(--border);
  border-radius: 44px;
  padding: var(--bezel);
  box-shadow: 0 30px 60px -20px rgba(36, 31, 28, 0.35);
  margin: 0 auto;
}

@media (prefers-color-scheme: dark) {
  .phone-frame {
    /* warm-toned lift off the page's #0B0B0D so the bezel reads as a physical phone (3.16:1) */
    background: #666058;
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  }
}

.phone-frame--slim {
  --bezel: 8px;
  width: clamp(150px, 15vw, 190px);
  border-radius: 32px;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(44px - 12px);
  background: #100E0C;
}

.phone-frame--slim .phone-screen {
  border-radius: calc(32px - 8px);
}

.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dynamic-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  max-width: 86px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}

.phone-frame--slim .dynamic-island {
  top: 9px;
  height: 15px;
  max-width: 60px;
}

/* Hero teleprompter motion (the one signature animation) */

.teleprompter-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: #0B0B0D;
  padding: 34% 9% 0;
}

.teleprompter-text p {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  margin: 0 0 130px;
}

.teleprompter-text p.is-current {
  color: #ffffff;
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 120px;
}

@keyframes teleprompter-scroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.teleprompter-text {
  animation: teleprompter-scroll 24s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .teleprompter-text {
    animation: none;
  }
  .teleprompter-overlay {
    display: none;
  }
}

/* Occasions band */

.occasions {
  padding: 8px 0 40px;
}

.occasions .wrap {
  text-align: center;
}

.occasions p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 2.3vw, 21px);
  color: var(--accent);
}

/* Sections */

section {
  padding: 40px 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 32px);
  margin: 0 0 8px;
}

.section-intro {
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 56ch;
}

/* How it works: alternating rows on desktop, stacked on mobile */

.steps-detailed {
  display: flex;
  flex-direction: column;
  gap: 56px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-row {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

@media (min-width: 780px) {
  .step-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "content visual";
    align-items: center;
    text-align: left;
    gap: 48px;
  }
  .step-row .step-content {
    grid-area: content;
  }
  .step-row .step-visual {
    grid-area: visual;
    justify-self: center;
  }
  .step-row:nth-child(even) {
    grid-template-columns: auto 1fr;
    grid-template-areas: "visual content";
  }
}

.step-row .step-content {
  text-align: center;
  max-width: 46ch;
  margin: 0 auto;
}

@media (min-width: 780px) {
  .step-row .step-content {
    text-align: left;
    margin: 0;
  }
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.step-row h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
}

.step-row p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
}

/* What you'll hear about (thin strip) */

.hear-about {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hear-about .wrap {
  text-align: center;
}

.hear-about-label {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hear-about-terms {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

/* The Stage: one dramatic full-bleed band, always dark */

.stage {
  background: var(--stage);
  color: #EDE6DC;
  padding: 96px 0;
  text-align: center;
}

.stage .wrap {
  max-width: 620px;
}

.stage h2 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.3;
  margin: 0 0 28px;
  color: #ffffff;
}

.stage p {
  font-size: 17px;
  color: rgba(237, 230, 220, 0.75);
  max-width: 44ch;
  margin: 0 auto 10px;
}

.stage .photo-frame {
  margin-top: 40px;
  max-width: 300px;
}

.stage .photo-frame .frame-inner {
  display: inline-block;
}

.stage .photo-frame img {
  width: auto;
  max-width: 100%;
  max-height: 65vh;
}

/* Photo frame (slim, for real photos - not phone chrome) */

.photo-frame {
  margin: 0 auto;
  max-width: 360px;
}

.photo-frame--wide {
  max-width: 640px;
}

.photo-frame .frame-inner {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 50px -25px rgba(0, 0, 0, 0.45);
}

.photo-frame img {
  width: 100%;
  height: auto;
  /* B&W film photos, warmed to sit gently on the paper palette */
  filter: sepia(0.28) saturate(1.08) contrast(1.02) brightness(1.03);
}

.photo-frame figcaption {
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--text-secondary);
}

.warmth {
  padding: 56px 0;
}

/* Trust / credibility section - airy columns, small-caps dusk-blue headers */

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 640px) {
  .trust-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.trust-item h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.trust-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.brand-line {
  color: var(--text);
  font-weight: 600;
}

/* FAQ link-out */

.faq-more {
  margin-top: 4px;
  font-size: 15px;
}

/* Legal / long-form content pages */

.page-header {
  padding: 48px 0 8px;
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 36px);
}

.updated {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 32px;
}

.summary-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0 0 40px;
}

.summary-box p {
  margin: 0 0 10px;
  font-size: 15px;
}

.summary-box p:last-child {
  margin-bottom: 0;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 36px 0 12px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text);
  font-size: 16px;
}

.prose ul {
  padding-left: 22px;
}

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

/* FAQ */

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
  margin-bottom: 12px;
  background: var(--surface);
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
}

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

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: "\2212";
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 15px;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
}

.contact-box p {
  margin: 0 0 12px;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.contact-box a {
  font-weight: 600;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.site-footer .wrap {
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
