/* ==========================================================================
   EverUsTogether — shared stylesheet
   Warm, calm, mature. Clay/terracotta accent on cream. Light by default,
   with a dark theme via prefers-color-scheme.
   ========================================================================== */

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

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

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration-color: currentColor;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

/* ---- Design tokens -------------------------------------------------------
   Light theme (default). Warm cream background, clay accent.
   ---------------------------------------------------------------------- */
:root {
  --color-bg: #fbf4ec;
  --color-bg-soft: #f5e9da;
  --color-surface: #ffffff;
  --color-surface-soft: #fbf1e6;
  --color-border: #e9dac8;
  --color-text: #3a2e27;
  --color-text-muted: #786457;
  --color-text-faint: #6b5748;

  --color-accent: #c1663e;
  --color-accent-dark: #9c4f2f;
  --color-accent-darker: #7d3f26;
  --color-accent-soft: #f0d9c6;
  --color-accent-soft-2: #e8c6ac;
  --color-on-accent: #fffaf5;

  --shadow-sm: 0 1px 2px rgba(58, 46, 39, 0.06), 0 1px 1px rgba(58, 46, 39, 0.04);
  --shadow-md: 0 8px 24px rgba(58, 46, 39, 0.08), 0 2px 6px rgba(58, 46, 39, 0.05);
  --shadow-lg: 0 20px 48px rgba(58, 46, 39, 0.14), 0 6px 16px rgba(58, 46, 39, 0.07);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --max-width: 1120px;
  --font-sans: "Iowan Old Style", "Palatino Linotype", Georgia, "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1c1613;
    --color-bg-soft: #241c18;
    --color-surface: #2a211c;
    --color-surface-soft: #241c18;
    --color-border: #3c2f27;
    --color-text: #f4e9dd;
    --color-text-muted: #cbb7a5;
    --color-text-faint: #a08d7d;

    --color-accent: #e1885c;
    --color-accent-dark: #eda17c;
    --color-accent-darker: #f2b795;
    --color-accent-soft: #4a3529;
    --color-accent-soft-2: #5a4030;
    --color-on-accent: #241209;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);
  }
}

/* ---- Base ---------------------------------------------------------------- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.2rem;
}

p {
  color: var(--color-text);
}

.lede {
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

a {
  text-underline-offset: 3px;
}

a.text-link {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

a.text-link:hover {
  color: var(--color-accent-darker);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-accent-dark);
  color: var(--color-on-accent);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ---- Layout helpers -------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section-tight {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-header .eyebrow {
  margin-bottom: 0.75rem;
}

.center {
  text-align: center;
  margin-inline: auto;
}

/* ---- Eyebrow / kicker ----------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

.eyebrow::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---- Header / nav ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  color: var(--color-text);
  background: var(--color-bg-soft);
}

.main-nav a[aria-current="page"] {
  color: var(--color-accent-darker);
  background: var(--color-accent-soft);
}

.header-cta {
  display: inline-flex;
}

.header-cta .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--color-accent-dark);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-accent-darker);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: var(--color-bg-soft);
  border-color: var(--color-accent-soft-2);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* ---- Hero ------------------------------------------------------------------- */
.hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(60% 60% at 30% 20%, var(--color-accent-soft) 0%, transparent 70%),
    radial-gradient(50% 50% at 80% 10%, var(--color-accent-soft-2) 0%, transparent 70%);
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

.hero-inner {
  max-width: 760px;
}

.hero h1 {
  margin-bottom: 1.1rem;
}

.hero .lede {
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.92rem;
  color: var(--color-text-faint);
  max-width: 520px;
}

/* ---- Cards ------------------------------------------------------------------ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 980px) {
  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Steps -------------------------------------------------------------- */
.steps {
  counter-reset: step;
}

.step-card {
  position: relative;
  padding-top: 2.25rem;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-accent-dark);
  color: var(--color-on-accent);
  font-family: var(--font-sans);
  font-weight: 700;
  position: absolute;
  top: -1.25rem;
  left: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.step-card h3 {
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--color-text-muted);
}

/* ---- Benefit list --------------------------------------------------------- */
.benefit-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.benefit-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.benefit-card h3 {
  font-size: 1.05rem;
}

.benefit-card p {
  color: var(--color-text-muted);
  font-size: 0.97rem;
}

/* ---- Dimensions ------------------------------------------------------------ */
.dimension-card {
  text-align: center;
  padding: 1.5rem 1.1rem;
}

.dimension-card .dim-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  margin-bottom: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-on-accent);
}

.dimension-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.dimension-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ---- Panel / section variants ---------------------------------------------- */
.panel {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
}

.panel-accent {
  background: linear-gradient(155deg, var(--color-accent-soft) 0%, var(--color-bg-soft) 70%);
  border: 1px solid var(--color-accent-soft-2);
}

.panel-inner {
  max-width: 680px;
}

/* ---- Quote / statement ------------------------------------------------------ */
.statement {
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}

/* ---- Content pages (privacy/terms/support/about) --------------------------- */
.prose {
  max-width: 760px;
  margin-inline: auto;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
}

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

.prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.prose ul {
  margin-bottom: 1rem;
  padding-left: 0;
}

.prose li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
  color: var(--color-text-muted);
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.prose strong {
  color: var(--color-text);
}

.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2rem);
}

.page-hero .eyebrow {
  margin-bottom: 0.9rem;
}

.page-hero .lede {
  max-width: 620px;
}

.updated-note {
  font-size: 0.9rem;
  color: var(--color-text-faint);
  margin-top: 0.5rem;
}

/* ---- FAQ ---------------------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-block: 1.4rem;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
}

/* ---- Contact cards -------------------------------------------------------- */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-card a {
  color: var(--color-accent-dark);
  font-weight: 700;
  text-decoration: underline;
}

/* ---- Form (launch list, non-functional placeholder) ------------------------ */
.launch-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.launch-form input[type="email"] {
  flex: 1 1 240px;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.launch-form input[type="email"]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.form-fineprint {
  font-size: 0.85rem;
  color: var(--color-text-faint);
  margin-top: 0.65rem;
}

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.footer-inner {
  padding-block: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
}

.footer-brand .brand-mark {
  width: 26px;
  height: 26px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--color-accent-dark);
}

.footer-meta {
  border-top: 1px solid var(--color-border);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-faint);
}

.footer-meta a {
  color: var(--color-text-faint);
  text-decoration: underline;
}

.footer-meta a:hover {
  color: var(--color-accent-dark);
}

/* ---- Responsive: header nav collapses on small screens ---------------------- */
@media (max-width: 720px) {
  .site-header .wrap {
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }

  .main-nav {
    order: 3;
    width: 100%;
  }

  .main-nav ul {
    width: 100%;
    justify-content: center;
  }

  .header-cta {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .main-nav a {
    padding: 0.45rem 0.65rem;
    font-size: 0.88rem;
  }
}
