/* ============================================================
   Someday Paper — marketing site
   Design system: "Modern media-tool" — warm clay / ink / paper.
   Type: Fraunces (display) + Inter (body), self-hosted woff2.
   ============================================================ */

/* ---------- Fonts (self-hosted, variable woff2) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-variable.woff2') format('woff2-variations'),
       url('fonts/fraunces-variable.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-variable.woff2') format('woff2-variations'),
       url('fonts/inter-variable.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --ink:        #211f1c;
  --ink-2:      #2c2a26;
  --paper:      #faf8f3;
  --surface:    #ffffff;
  --muted:      #6f6a61;
  --faint:      #97928a;
  --line:       #e7e2d8;
  --accent:     #c06b34;
  --accent-ink: #8f4e22;
  --accent-wash:#f3e9dc;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.05);
  --shadow-md: 0 4px 14px rgba(33,31,28,.06), 0 14px 36px rgba(33,31,28,.09);

  /* Layout */
  --maxw: 1140px;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --section-pad: clamp(5rem, 8vw, 9rem);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1;
}

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

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  font-optical-sizing: auto;
}

p { margin: 0; }

/* ---------- Type scale ---------- */
h1 {
  font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.95rem, 1.6rem + 1.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--faint);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
  font-size: 0.9rem;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}

/* ---------- Focus states ---------- */
:focus-visible {
  outline: 2.5px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

section { padding-block: var(--section-pad); }

.section-surface { background: var(--surface); }
.section-tint { background: var(--accent-wash); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* eyebrow on dark sections */
.section-dark .eyebrow { color: #e0a878; }
.section-dark .eyebrow::before { background: var(--accent); }

/* ---------- Lead text ---------- */
.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 58ch;
}

.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .17s ease, transform .17s ease,
              box-shadow .17s ease, border-color .17s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--accent-wash);
  border-color: var(--accent-wash);
}

.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.02rem; }

/* button on dark section */
.section-dark .btn-ghost {
  color: #f2efe9;
  border-color: rgba(255,255,255,.22);
}
.section-dark .btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.3);
}
.section-dark .btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.section-dark .btn-primary:hover { background: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,243,.82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(250,248,243,.92);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.22rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.wordmark:hover { text-decoration: none; }
.wordmark .mark-dot { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-sm);
}
.nav-links a:not(.btn):hover {
  color: var(--ink);
  background: var(--accent-wash);
  text-decoration: none;
}
.nav-cta { margin-left: 0.4rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(4rem, 7vw, 7rem) clamp(5rem, 9vw, 8rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy h1 { margin-bottom: 1.35rem; }
.hero-copy .lead { margin-bottom: 2rem; max-width: 40ch; }

/* clay marker on one hero word */
.marker {
  position: relative;
  white-space: nowrap;
}
.marker::after {
  content: "";
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  bottom: 0.07em;
  height: 0.32em;
  background: var(--accent-wash);
  border-radius: 2px;
  z-index: -1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.hero-micro {
  font-size: 0.92rem;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-micro svg { flex: none; }

/* ---------- Hero visual: audio player card ---------- */
.player-stage {
  position: relative;
  display: flex;
  justify-content: center;
}
.player-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.7rem;
  box-shadow: var(--shadow-md);
}
.player-card::before {
  /* faint floating echo card behind */
  content: "";
  position: absolute;
  inset: 22px -26px -26px 26px;
  background: var(--accent-wash);
  border-radius: var(--r-lg);
  z-index: -1;
}
.player-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.player-play {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(192,107,52,.32);
}
.player-play svg { fill: #fff; }
.player-meta .player-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-ink);
  margin-bottom: 0.15rem;
}
.player-meta .player-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.player-wave {
  width: 100%;
  height: 64px;
  margin-bottom: 0.7rem;
}
.player-wave rect { fill: var(--line); }
.player-wave rect.on { fill: var(--accent); }
.player-scrub {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--faint);
  margin-bottom: 1.3rem;
}
.player-sponsor {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}
.sponsor-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Generic grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: 0.65rem; }
.card p { color: var(--muted); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--accent-wash);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.card-icon svg { stroke: var(--accent-ink); }

/* featured product card — slim clay top edge + badge */
.card-featured {
  position: relative;
  background: var(--surface);
  border-color: var(--line);
}
.card-featured::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 4px;
  background: var(--accent);
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--accent);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ---------- Problem section ---------- */
.problem-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.problem-body .lead { max-width: none; }
.problem-close {
  margin-top: 1rem;
  font-weight: 500;
  color: var(--ink);
  font-size: 1.05rem;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.step {
  position: relative;
  padding: 0 1.6rem;
}
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 0;
  width: 1px;
  height: calc(100% - 18px);
  background: var(--line);
}
.step-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Editorial control ---------- */
.control-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.control-intro .lead { margin-top: 1rem; }
.control-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}
.control-list li {
  display: flex;
  gap: 0.95rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.control-list li:last-child { border-bottom: none; }
.control-check {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-wash);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.control-check svg { stroke: var(--accent-ink); }
.control-list strong {
  font-weight: 600;
  color: var(--ink);
}
.control-list span { color: var(--muted); }

/* ---------- Pricing ---------- */
.price-card {
  display: flex;
  flex-direction: column;
}
.price-card .card-tag {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--faint);
  margin-bottom: 0.7rem;
}
.price-card h3 { margin-bottom: 0.7rem; }
.price-card p { flex: 1; }
.price-card .btn { margin-top: 1.5rem; align-self: flex-start; }
.note-band {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
}

/* ---------- Proof ---------- */
.proof {
  text-align: center;
  max-width: 56ch;
  margin-inline: auto;
}
.proof h2 { margin-bottom: 1rem; }
.proof p { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: none;
  width: 26px;
  height: 26px;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.faq-icon::before {
  top: 12px; left: 4px;
  width: 18px; height: 2px;
}
.faq-icon::after {
  top: 4px; left: 12px;
  width: 2px; height: 18px;
}
.faq-item[open] .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}
.faq-answer {
  padding: 0 0 1.5rem;
  color: var(--muted);
  max-width: 64ch;
}

/* ---------- CTA / Contact (dark) ---------- */
.section-dark {
  background: var(--ink);
  color: #f2efe9;
}
.section-dark h2 { color: #fff; }
.section-dark .lead { color: #c4bfb5; }
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.cta-copy h2 { margin-bottom: 1rem; }

/* ---------- Form ---------- */
.contact-form {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #d8d4cb;
  margin-bottom: 0.4rem;
}
.field input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #fff;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-sm);
  padding: 0.75rem 0.85rem;
}
.field input::placeholder { color: #8a857c; }
.field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
  background: rgba(255,255,255,.08);
}
.contact-form .btn { width: 100%; justify-content: center; margin-top: 0.3rem; }
.form-note {
  font-size: 0.82rem;
  color: #948f86;
  margin-top: 0.9rem;
}
.form-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255,255,255,.08);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-tag {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34ch;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.footer-col h4 { margin-bottom: 0.9rem; }
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.93rem;
  padding: 0.3rem 0;
}
.footer-col a:hover { color: var(--ink); }
.footer-base {
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--faint);
}

/* ---------- Subhero (associations) ---------- */
.subhero {
  padding-block: clamp(4rem, 7vw, 6.5rem) clamp(3.5rem, 6vw, 5rem);
}
.subhero .wrap { max-width: 880px; }
.subhero h1 { margin-bottom: 1.35rem; }
.subhero .lead { margin-bottom: 0; }
.subhero .hero-actions { margin-top: 1.9rem; margin-bottom: 0; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
.feature-row h3 { margin-bottom: 0.7rem; }
.feature-row p { color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-copy { order: 1; }
  .player-stage { order: 2; }
  .player-card { max-width: 380px; margin-inline: auto; }
  .player-card::before { inset: 18px -18px -18px 18px; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .problem-body,
  .control-grid,
  .cta-grid,
  .feature-row { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .step { padding: 0; }
  .step:not(:last-child)::after { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.8rem clamp(1.25rem, 4vw, 2.5rem) 1.2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 0.7rem 0.6rem; }
  .nav-cta { margin: 0.4rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }

  .steps { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover,
  .card:hover { transform: none; }
  * { transition-duration: .01ms !important; }
}
