/* ==========================================================================
   itsgood. — design tokens
   Palette: warm oat / toasted wheat, not "supplement neon."
   Type: Fraunces (soft editorial serif, display) + Inter (body).
   These are easy to swap — every color and size below is a variable.
   ========================================================================== */

:root {
  /* --- color: oat-milk cream ground, ink-brown text, toasted-wheat accent --- */
  --cream:      #F5EEE1;   /* page background */
  --paper:      #FBF8F1;   /* card / raised surface */
  --ink:        #2B241C;   /* primary text, warm near-black */
  --ink-soft:   #5B5142;   /* secondary text */
  --toast:      #9C5A2E;   /* primary accent / buttons — toasted wheat brown */
  --toast-dark: #7A431F;   /* hover state */
  --moss:       #6E7A54;   /* secondary accent — soft sage, used sparingly */
  --oat-line:   #E1D3BC;   /* borders / dividers */
  --oat-mid:    #D8C6A8;   /* mid-tone fills (bars, chips) */

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 14px;
  --wrap: 1120px;

  /* one place to change overall type scale */
  --step-0: clamp(1rem, 0.95rem + 0.2vw, 1.05rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.4rem + 0.9vw, 2.1rem);
  --step-3: clamp(2.3rem, 1.9rem + 1.8vw, 3.4rem);
}

/* ==========================================================================
   Base
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  /* very subtle paper-grain texture so flat color fields don't look like a template */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(43,36,28,0.05) 1px, transparent 0);
  background-size: 22px 22px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; color: var(--ink); }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; }

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

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--moss); font-weight: 600; margin-bottom: 14px;
}
.dot-badge {
  width: 7px; height: 7px; border-radius: 50%; background: var(--moss); flex: none;
}

.section { padding: clamp(56px, 8vw, 108px) 0; }
.section__title { font-size: var(--step-2); max-width: 20ch; margin-bottom: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--toast); color: var(--paper);
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  border: none; border-radius: 999px; padding: 14px 24px;
  cursor: pointer; transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--toast-dark); }
.btn:active { transform: translateY(1px); }
.btn--small { padding: 10px 18px; font-size: 0.85rem; }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 238, 225, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--oat-line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; gap: 16px; }

.wordmark {
  font-family: var(--serif); font-size: 1.4rem; text-decoration: none; color: var(--ink);
}
.wordmark .dot { color: var(--toast); }

.nav__links { display: flex; gap: 28px; font-size: 0.92rem; }
.nav__links a { text-decoration: none; color: var(--ink-soft); }
.nav__links a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; } }

.hero__headline { font-size: var(--step-3); letter-spacing: -0.01em; margin-bottom: 20px; }
.hero__sub { font-size: 1.08rem; max-width: 46ch; margin-bottom: 28px; }

.signup {
  display: flex; gap: 10px; max-width: 420px; flex-wrap: wrap;
}
.signup input {
  flex: 1 1 220px; min-width: 0;
  padding: 14px 16px; border-radius: 999px; border: 1.5px solid var(--oat-line);
  background: var(--paper); font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
}
.signup input:focus { outline: 2px solid var(--toast); outline-offset: 2px; }
.microcopy { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; opacity: 0.85; }

.hero__visual { position: relative; }
.hero__frame {
  aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
  background: linear-gradient(155deg, var(--oat-mid), var(--paper) 60%);
  border: 1px solid var(--oat-line);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center; text-align: center; padding: 32px;
  color: var(--ink-soft); font-size: 0.85rem;
}
.hero__fallback[hidden] { display: none; }
.hero__fallback small { max-width: 26ch; opacity: 0.8; }
.hero__fallback code { background: var(--oat-mid); padding: 2px 6px; border-radius: 4px; font-size: 0.8em; }

.hero__chip {
  position: absolute; background: var(--paper); border: 1px solid var(--oat-line);
  border-radius: 999px; padding: 10px 16px; font-size: 0.85rem; font-weight: 600;
  box-shadow: 0 8px 24px -12px rgba(43,36,28,0.35);
}
.hero__chip--1 { top: 8%; right: -6%; }
.hero__chip--2 { bottom: 10%; left: -8%; }
@media (max-width: 500px) {
  .hero__chip--1 { right: 4%; }
  .hero__chip--2 { left: 4%; }
}

/* ==========================================================================
   Problem
   ========================================================================== */

.problem__list { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--oat-line); }
.problem__list li {
  display: flex; gap: 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--oat-line);
}
.problem__num { font-family: var(--serif); font-size: 1.1rem; color: var(--toast); flex: none; width: 2.5ch; }
.problem__list p { font-size: 1.1rem; color: var(--ink); margin: 0; max-width: 52ch; }
.problem__close { font-size: 1.1rem; font-family: var(--serif); color: var(--ink); max-width: 40ch; }

/* ==========================================================================
   Why oats + diagram
   ========================================================================== */

.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .why__grid { grid-template-columns: 1fr; } }
.why__copy p { font-size: 1.02rem; max-width: 56ch; }

.diagram {
  background: var(--paper); border: 1px solid var(--oat-line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.diagram__row { display: grid; grid-template-columns: 1fr; gap: 6px; }
.diagram__label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.diagram__bar { height: 10px; background: var(--oat-line); border-radius: 999px; overflow: hidden; }
.diagram__bar span { display: block; height: 100%; background: var(--toast); border-radius: 999px; }
.diagram__row--us .diagram__bar span { background: var(--moss); }
.diagram__row--us .diagram__label { color: var(--ink); }
.diagram__value { font-size: 0.78rem; color: var(--ink-soft); opacity: 0.85; }
.diagram__caption { font-size: 0.78rem; margin: 6px 0 0; opacity: 0.75; }

/* ==========================================================================
   Specs strip
   ========================================================================== */

.specs { background: var(--ink); color: var(--cream); padding-block: 40px; }
.specs__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 700px) { .specs__inner { grid-template-columns: repeat(2, 1fr); } }
.spec strong { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--paper); }
.spec span { font-size: 0.82rem; opacity: 0.75; }

/* ==========================================================================
   Testimonials — text-message styling
   ========================================================================== */

.chatlog {
  display: flex; flex-direction: column; gap: 12px; max-width: 480px; margin: 0 0 16px;
}
.bubble {
  align-self: flex-start; background: var(--paper); border: 1px solid var(--oat-line);
  border-radius: 18px 18px 18px 4px; padding: 12px 18px; max-width: 78%;
}
.bubble p { margin: 0 0 4px; color: var(--ink); font-size: 1rem; }
.bubble time { font-size: 0.72rem; color: var(--ink-soft); opacity: 0.7; }
.bubble--right {
  align-self: flex-end; background: var(--toast); border-color: var(--toast);
  border-radius: 18px 18px 4px 18px;
}
.bubble--right p { color: var(--paper); }
.bubble--right time { color: var(--paper); opacity: 0.75; }
.chatlog__caption { font-size: 0.85rem; opacity: 0.8; }

/* ==========================================================================
   Comparison table
   ========================================================================== */

.table-scroll { overflow-x: auto; border: 1px solid var(--oat-line); border-radius: var(--radius); }
.compare__table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--paper); }
.compare__table th, .compare__table td {
  text-align: left; padding: 16px 18px; font-size: 0.9rem; border-bottom: 1px solid var(--oat-line);
}
.compare__table thead th { font-family: var(--serif); font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); }
.compare__table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.compare__table .is-us { background: rgba(110,122,84,0.1); font-weight: 600; color: var(--ink); }
.compare__table tr:last-child td, .compare__table tr:last-child th { border-bottom: none; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.accordion { border-top: 1px solid var(--oat-line); }
.accordion details { border-bottom: 1px solid var(--oat-line); padding: 18px 0; }
.accordion summary {
  cursor: pointer; font-family: var(--serif); font-size: 1.1rem; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.4rem; color: var(--toast); }
.accordion details[open] summary::after { content: '\2212'; }
.accordion details p { margin-top: 12px; max-width: 60ch; }

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta { text-align: center; background: var(--paper); border-top: 1px solid var(--oat-line); border-bottom: 1px solid var(--oat-line); }
.final-cta__inner { display: flex; flex-direction: column; align-items: center; }
.final-cta p { max-width: 40ch; }
.signup--centered { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { padding-block: 40px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.wordmark--footer { font-size: 1.2rem; }
.footer__tagline { margin: 6px 0 0; font-size: 0.85rem; }
.footer__wink { margin: 10px 0 0; font-size: 0.78rem; opacity: 0.65; }
.footer__meta p { font-size: 0.78rem; opacity: 0.7; margin: 0; }
