/*
  HouseShift — the website.

  The same design system as the app, so the site and the product look like
  one thing: cream paper, heavy ink outlines, block-print flatness. Nothing
  here is a web convention borrowed for its own sake — no gradients, no drop
  shadows, no glass. The app has none of those either.

  Tokens are copied from app/src/theme/colors.ts. If they change there,
  change them here.
*/

:root {
  --bg: #f7efdf;
  --surface: #fdf8ed;
  --ink: #1c1712;
  --muted: #5c5142;
  --muted2: #6b5f4c;
  --accent: #d97a22;
  --accent-dark: #9a5510;
  --soft: #f6dfae;
  --soft2: #f2e7d3;
  --teal: #1f5e5b;
  --cream: #fdf3e7;
  --band-sub: #bfd4d2;
  --red: #c9452c;
  --border: #1c1712;
  --border2: #e7dac0;
  --border3: #c4b292;
  --illustration-bg: #efe3cb;
  --success: #cfe0c6;

  /* 2.5pt structural outline, 2px element outline — as in the app. */
  --line-structural: 2.5px;
  --line-element: 2px;

  --radius-card: 14px;
  --radius-panel: 18px;
  --radius-pill: 999px;

  --measure: 68ch;
  --page: 1080px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Layout ─────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 48px 0;
}

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
  padding: 22px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: var(--line-element) solid var(--border);
}

.brand span {
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted2);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0 76px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  background: var(--soft);
  border: var(--line-element) solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  margin-bottom: 20px;
}

.hero__lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 30px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: var(--radius-card);
  border: var(--line-structural) solid var(--border);
  background: var(--accent);
  color: var(--ink);
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--quiet {
  background: var(--surface);
}

.cta-note {
  font-size: 14.5px;
  color: var(--muted2);
}

/* ── The still life, rebuilt in CSS ─────────────────────────────────── */

.plate {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--illustration-bg);
  border: var(--line-structural) solid var(--border);
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.plate__band {
  position: absolute;
  inset: 0 0 auto 0;
  height: 38%;
  background: var(--teal);
}

.plate__disc {
  position: absolute;
  left: 9%;
  top: 19%;
  width: 31%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--accent);
  border: var(--line-structural) solid var(--border);
}

.plate__square {
  position: absolute;
  right: 10%;
  top: 10%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--soft);
  border: var(--line-structural) solid var(--border);
}

.plate__shelf {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 6%;
}

/* ── Sections ───────────────────────────────────────────────────────── */

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 14px;
  max-width: 20ch;
}

.section__lede {
  font-size: 18px;
  color: var(--muted);
  max-width: var(--measure);
  margin-bottom: 36px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: var(--line-structural) solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 15.5px;
}

.card__tag {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 14px;
  background: var(--soft2);
  border: var(--line-element) solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* The one idea worth its own treatment. */
.rule-panel {
  background: var(--teal);
  border: var(--line-structural) solid var(--border);
  border-radius: var(--radius-panel);
  padding: 44px;
  color: var(--cream);
}

.rule-panel .eyebrow {
  color: var(--band-sub);
}

.rule-panel h2 {
  color: var(--cream);
  margin-bottom: 16px;
}

.rule-panel p {
  color: var(--band-sub);
  font-size: 18px;
  max-width: var(--measure);
}

.rule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.rule-case {
  background: rgba(253, 243, 231, 0.07);
  border: var(--line-element) solid var(--band-sub);
  border-radius: var(--radius-card);
  padding: 20px;
}

.rule-case strong {
  display: block;
  color: var(--cream);
  font-size: 16px;
  margin-bottom: 6px;
}

.rule-case span {
  color: var(--band-sub);
  font-size: 15px;
}

/* ── Pricing ────────────────────────────────────────────────────────── */

.price-panel {
  background: var(--surface);
  border: var(--line-structural) solid var(--border);
  border-radius: var(--radius-panel);
  padding: 40px;
  text-align: center;
}

.price-figures {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 26px 0 18px;
}

.price {
  min-width: 190px;
  padding: 20px 26px;
  background: var(--bg);
  border: var(--line-element) solid var(--border3);
  border-radius: var(--radius-card);
}

.price--best {
  background: var(--soft);
  border: var(--line-structural) solid var(--border);
}

.price__amount {
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.1;
}

.price__period {
  font-size: 14px;
  color: var(--muted2);
}

.price__badge {
  display: inline-block;
  margin-top: 9px;
  padding: 3px 10px;
  background: var(--success);
  border: var(--line-element) solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  border-top: var(--line-element) solid var(--border2);
  padding: 34px 0 48px;
  margin-top: 40px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  font-size: 14.5px;
  color: var(--muted2);
}

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

.site-footer a {
  color: var(--muted2);
}

/* ── Legal pages ────────────────────────────────────────────────────── */

.legal {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 52px 20px 80px;
}

.legal h1 {
  font-size: clamp(32px, 4.4vw, 44px);
  margin-bottom: 10px;
}

.legal__updated {
  color: var(--muted2);
  font-size: 14.5px;
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 22px;
  margin: 38px 0 12px;
}

.legal h3 {
  font-size: 17.5px;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 700;
  margin: 24px 0 8px;
}

.legal p,
.legal li {
  color: var(--muted);
  margin-bottom: 14px;
}

.legal ul {
  padding-left: 22px;
  margin: 0 0 16px;
}

.legal li {
  margin-bottom: 8px;
}

.legal strong {
  color: var(--ink);
}

.callout {
  background: var(--surface);
  border: var(--line-element) solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  margin: 24px 0;
}

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

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 22px;
  font-size: 15.5px;
}

.legal th,
.legal td {
  text-align: left;
  padding: 11px 12px;
  border: var(--line-element) solid var(--border2);
  vertical-align: top;
  color: var(--muted);
}

.legal th {
  background: var(--soft2);
  color: var(--ink);
  font-weight: 700;
}

/* ── Support page ───────────────────────────────────────────────────── */

.faq {
  border-top: var(--line-element) solid var(--border2);
}

.faq details {
  border-bottom: var(--line-element) solid var(--border2);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: '+';
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-size: 22px;
  line-height: 1;
  color: var(--muted2);
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details p {
  color: var(--muted);
  padding-bottom: 18px;
  max-width: var(--measure);
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 52px;
  }

  .hero__art {
    order: -1;
  }

  .rule-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .rule-panel,
  .price-panel {
    padding: 28px 22px;
  }

  .site-nav {
    gap: 16px;
    font-size: 14px;
  }
}
