/* =============================================================
   Ourday — Pre-release site
   Layout + components. Extends css/tokens.css (design-system
   custom properties). Plain static CSS, no build step.
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Cream base + a soft wash of morning light from the top.
     Barely visible — the page should feel warm, not gradient-y. */
  background-color: var(--bg-cream);
  background-image: radial-gradient(125% 70% at 50% -12%,
      rgba(255, 252, 246, 0.9) 0%,
      rgba(252, 248, 241, 0.4) 32%,
      rgba(250, 246, 240, 0) 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body {
  margin: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Faint paper grain over everything — tactile, never noticed at a glance. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNTAnIGhlaWdodD0nMTUwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44NicgbnVtT2N0YXZlcz0nMicgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjxmZUNvbG9yTWF0cml4IHR5cGU9J3NhdHVyYXRlJyB2YWx1ZXM9JzAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTUwJyBoZWlnaHQ9JzE1MCcgZmlsdGVyPSd1cmwoI24pJy8+PC9zdmc+");
  background-size: 150px 150px;
}
@media (prefers-reduced-motion: no-preference) {
  body::before { will-change: auto; }
}

/* Skip link for keyboard / screen-reader users */
.od-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-1);
  color: var(--bg-cream);
  padding: 12px 18px;
  border-radius: var(--r-md);
  z-index: 200;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  text-decoration: none;
}
.od-skip:focus { left: 16px; top: 16px; }

/* ---------- Layout containers ---------- */
.od-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
.od-prose { max-width: 680px; }

/* ---------- Header ---------- */
.od-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}
.od-header.is-scrolled { border-bottom-color: var(--line); }
.od-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
}
.od-wordmark {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.015em;
  color: var(--ink-1);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.od-header .od-wordmark:hover { color: var(--ink-1); }
.od-wordmark .dot {
  color: var(--accent);
  margin-left: 1px;
}
.od-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.od-nav a {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.od-nav a:hover,
.od-nav a:focus-visible { color: var(--accent-deep); }
.od-nav a[aria-current="page"] { color: var(--accent-deep); }

/* ---------- Type primitives ---------- */
.od-hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 5.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  text-wrap: balance;
  margin: 0;
}
.od-h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink-1);
  text-wrap: balance;
  margin: 0;
}
.od-h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(27px, 3vw, 35px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ink-1);
  text-wrap: balance;
  margin: 0;
}
.od-h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.008em;
  color: var(--ink-1);
  margin: 0;
}
.od-eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-fine);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}
.od-lede {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(19px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-secondary);
  text-wrap: pretty;
  margin: 0;
  max-width: 34ch;
}
.od-p {
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  color: var(--ink-2);
  text-wrap: pretty;
  margin: 0 0 20px 0;
}
.od-p:last-child { margin-bottom: 0; }
.od-fine {
  font-family: var(--font-sans);
  font-size: var(--fs-fine);
  line-height: 1.55;
  color: var(--ink-muted);
}

/* ---------- Sections ---------- */
.od-section { padding: 104px 0; }
.od-section--tight { padding: 72px 0; }
.od-section--shade { background: var(--surface-1); }
.od-section__head { margin: 0 0 48px 0; }
.od-section__head .od-eyebrow { margin-bottom: 20px; }

/* ---------- Hero ---------- */
.od-hero {
  padding: 84px 0 88px;
}
.od-hero__inner { max-width: 760px; }
.od-hero__lede {
  margin: 26px 0 0 0;
  max-width: 44ch;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.55;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  text-wrap: pretty;
}

/* ---------- Email capture form ---------- */
.od-signup { margin-top: 40px; max-width: 480px; }
.od-signup__row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.od-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  background: var(--bg-cream);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink-1);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.od-input::placeholder { color: var(--ink-muted-2); }
.od-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.od-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--r-md);
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.od-btn--primary {
  background: var(--accent);
  color: var(--ink-on-accent);
}
.od-btn--primary:hover { background: var(--accent-deep); }
.od-btn--primary:active { box-shadow: inset 0 1px 0 rgba(0,0,0,0.08); }
.od-btn:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}
.od-signup__note {
  margin: 14px 0 0 0;
  font-family: var(--font-sans);
  font-size: var(--fs-fine);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 42ch;
}
/* Success / status line — quiet text, never a red alert */
.od-signup__status {
  margin: 14px 0 0 0;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--accent-deep);
  min-height: 0;
}
.od-signup__status[data-state="error"] { color: var(--ink-secondary); }
.od-signup.is-done .od-signup__row { display: none; }

/* ---------- How it works — three text blocks ---------- */
.od-cols3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.od-block {
  padding: 28px 36px 8px 0;
  border-top: 2px solid var(--ink-1);
}
.od-block + .od-block { padding-left: 36px; }
.od-block:not(:first-child) {
  border-left: 1px solid rgba(184, 92, 63, 0.2);
  padding-left: 36px;
}
.od-block__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  margin: 0 0 12px 0;
}
.od-block__body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- "Who it's for" — pricing pull-out ---------- */
.od-pricing {
  margin: 40px 0 0 0;
  padding: 32px 0 0 0;
  border-top: 1px solid rgba(184, 92, 63, 0.3);
}
.od-pricing__mark {
  width: 22px;
  height: 22px;
  display: block;
  margin: 0 0 18px 0;
  opacity: 0.92;
}
.od-pricing-line {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  text-wrap: pretty;
  max-width: 28ch;
}

/* ---------- Footer ---------- */
.od-footer {
  background: var(--bg-cream);
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 30px -26px var(--shadow-warm);
  padding: 72px 0 56px;
}
.od-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 56px;
  flex-wrap: wrap;
}
.od-footer__col { min-width: 0; }
.od-footer__col h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-fine);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 16px 0;
}
.od-footer__brand .od-wordmark { font-size: 24px; }
.od-footer__addr {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--ink-secondary);
  margin: 16px 0 0 0;
  font-style: normal;
}
.od-footer__addr a { color: var(--accent-deep); text-decoration: none; }
.od-footer__addr a:hover { color: var(--accent); }
.od-footer__links { display: flex; flex-direction: column; gap: 11px; }
.od-footer__links a {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.od-footer__links a:hover { color: var(--accent-deep); }
.od-footer__note {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-muted-2);
  max-width: 30ch;
  margin: 0;
}
.od-footer__bottom {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: var(--fs-fine);
  color: var(--ink-muted-2);
}

/* ---------- Legal pages ---------- */
.od-legal { padding: 72px 0 96px; }
.od-legal__head { margin-bottom: 56px; }
.od-legal__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  color: var(--accent-deep);
  text-decoration: none;
  margin-bottom: 36px;
  transition: color var(--dur-fast) var(--ease-out);
}
.od-legal__back:hover { color: var(--accent); }
.od-legal__date {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 22px 0 0 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-cream-deep);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-secondary);
}
.od-legal__date::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.od-legal__body h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 33px);
  line-height: 1.18;
  letter-spacing: -0.014em;
  color: var(--ink-1);
  margin: 76px 0 20px 0;
  padding-top: 28px;
  position: relative;
  text-wrap: balance;
}
.od-legal__body h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.od-legal__body h2:first-child { margin-top: 0; }
.od-legal__body h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink-1);
  margin: 30px 0 8px 0;
  padding-left: 18px;
  position: relative;
}
.od-legal__body h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.od-legal__body p {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-2);
  text-wrap: pretty;
  margin: 0 0 18px 0;
}
.od-legal__body a { color: var(--accent-deep); text-underline-offset: 2px; }
.od-legal__body a:hover { color: var(--accent); }
.od-legal__body ul {
  margin: 0 0 18px 0;
  padding: 0;
  list-style: none;
}
.od-legal__body li {
  position: relative;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-2);
  padding-left: 22px;
  margin-bottom: 12px;
  text-wrap: pretty;
}
.od-legal__body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.od-legal__lede {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-secondary);
  text-wrap: pretty;
  margin: 0 0 18px 0;
}

/* ---------- Hero illustration ---------- */
.od-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: center;
}
.od-hero__text { max-width: 620px; }
.od-hero__art {
  width: 280px;
  max-width: 100%;
  justify-self: end;
}
.od-hero__art img { width: 100%; height: auto; display: block; }

/* ---------- Section opener mark + how-it-works icons ---------- */
.od-section__mark {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 0 20px 0;
  opacity: 0.9;
}
.od-block__icon {
  width: 42px;
  height: 42px;
  display: block;
  margin: 0 0 18px 0;
}

/* ---------- Signup variants ---------- */
.od-signup--hero .od-input { padding: 15px 16px; }
.od-signup--hero .od-btn { padding: 15px 24px; }
.od-signup--compact { max-width: 440px; }
.od-signup--compact .od-input { padding: 11px 14px; font-size: 15px; }
.od-signup--compact .od-btn { padding: 11px 18px; font-size: 14px; }

/* ---------- Legal — table of contents ---------- */
.od-toc {
  margin: 0 0 4px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.od-toc__label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-fine);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 16px 0;
}
.od-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 36px;
}
.od-toc li { counter-increment: toc; }
.od-toc a {
  display: flex;
  gap: 11px;
  align-items: baseline;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-2);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.od-toc a:hover { color: var(--accent-deep); }
.od-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--accent);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  min-width: 18px;
  flex: none;
}

/* ---------- Legal — pull-quotes (key promises) ---------- */
.od-legal__body h2 { scroll-margin-top: 104px; }
.od-legal__body .od-pull {
  margin: 32px 0;
  padding: 6px 0 6px 26px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-sans);
  font-size: 21px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-1);
  text-wrap: pretty;
}
.od-pull-block {
  margin: 32px 0;
  padding: 8px 0 12px 26px;
  border-left: 2px solid var(--accent);
}
.od-pull-block > p {
  font-size: 19px;
  font-weight: 500;
  color: var(--ink-1);
  margin: 0 0 14px 0;
}
.od-pull-block > p:last-child { margin-bottom: 0; }
.od-pull-block ul { margin-bottom: 0; }
.od-pull-block li { color: var(--ink-1); }

/* ---------- Quiet entrance (page settling) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .od-hero__art {
    animation: od-settle var(--dur-slow) var(--ease-out) both;
    animation-delay: 120ms;
  }
}
@keyframes od-settle {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .od-section { padding: 80px 0; }
  .od-hero { padding: 56px 0 64px; }
  .od-hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .od-hero__art { width: 220px; justify-self: start; order: 2; }
  .od-cols3 { grid-template-columns: 1fr; }
  .od-block {
    padding: 24px 0 8px 0;
    border-top: 1px solid var(--line);
  }
  .od-block:first-child { border-top: 2px solid var(--ink-1); }
  .od-block:not(:first-child) { border-left: 0; padding-left: 0; }
  .od-block + .od-block { padding-left: 0; }
  .od-footer__row { gap: 40px; }
  .od-toc ol { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .od-wrap { padding: 0 22px; }
  .od-signup__row { flex-direction: column; align-items: stretch; }
  .od-btn--primary { width: 100%; }
  .od-nav { gap: 20px; }
  .od-hero__art { width: 180px; }
}
