/* ChorePot marketing site — warm paper, thick friendly edges, nothing that
   looks like a spreadsheet. Palette and type match the app itself. */

:root {
  --paper: #fff6e8;
  --paper-deep: #ffeed6;
  --card: #fffdf7;
  --ink: #4a3b30;
  --ink-soft: #8a7663;
  --line: #e6d3b3;
  --coral: #ff8a5b;
  --sunshine: #ffd166;
  --leaf: #7ac74f;
  --berry: #ef6f9b;
  --sky: #4fb8b0;
  --grape: #a06cd5;

  --shadow: 0 6px 0 rgba(74, 59, 48, 0.16);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius: 22px;
  --nav-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, #fff9ee 0%, rgba(255, 249, 238, 0) 42%),
    radial-gradient(circle at 88% 0%, #ffe9c9 0%, rgba(255, 233, 201, 0) 38%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: 'Fredoka', 'Baloo 2', ui-rounded, 'SF Pro Rounded',
    'Segoe UI Rounded', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 246, 232, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--line);
}

/* The bar is sticky, so anchor targets stop just below it rather than
   scrolling underneath. */
main,
section {
  scroll-margin-top: var(--nav-height);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 36px;
  height: 36px;
  margin-top: -9px;
}

/* On wide screens the menu wrapper dissolves so brand, links and CTA sit as
   three flex siblings; on phones it becomes a drop-down under the bar. */
.nav-menu {
  display: contents;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--ink);
}

/* Burger button — hidden until the phone breakpoint */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  background: var(--card);
  box-shadow: 0 4px 0 rgba(74, 59, 48, 0.16);
  cursor: pointer;
  transition: transform 0.12s var(--spring), box-shadow 0.12s ease;
  touch-action: manipulation;
}

.nav-toggle:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 rgba(74, 59, 48, 0.16);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.25s var(--spring), opacity 0.15s;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 719px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 4px 24px 20px;
    background: var(--paper);
    border-top: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    box-shadow: 0 16px 24px -16px rgba(74, 59, 48, 0.3);
  }

  .nav-toggle[aria-expanded='true'] + .nav-menu {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 2px solid var(--line);
  }

  .nav-cta {
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 1rem;
    border-width: 3px;
    box-shadow: 0 5px 0 rgba(74, 59, 48, 0.25);
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(74, 59, 48, 0.25);
  transition: transform 0.12s var(--spring), box-shadow 0.12s ease, filter 0.2s;
  touch-action: manipulation;
}

.btn:hover {
  filter: brightness(1.04);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 rgba(74, 59, 48, 0.25);
}

.btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px dashed var(--coral);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--sunshine);
  color: var(--ink);
}

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(74, 59, 48, 0.16);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
  color: var(--ink-soft);
}

.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.btn-small {
  padding: 7px 13px;
  font-size: 0.85rem;
  border-width: 2px;
  box-shadow: 0 3px 0 rgba(74, 59, 48, 0.2);
}

/* Hero */

.hero {
  /* Top/bottom only, so .wrap's side gutters survive and the hero lines up
     with the feature cards below it. */
  padding-top: 64px;
  padding-bottom: 40px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 18px;
  line-height: 1.1;
}

.hero h1 .accent {
  color: var(--coral);
}

.hero p.lede {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hero-free-badge {
  display: inline-block;
  background: color-mix(in srgb, var(--leaf) 22%, transparent);
  color: var(--leaf);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Free */

.free {
  background: var(--paper-deep);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding: 64px 0;
  text-align: center;
}

.free-inner {
  max-width: 560px;
  margin: 0 auto;
}

.free h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 12px;
}

.free-list {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0 auto 28px;
}

.free-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 600;
}

.free-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--leaf);
  font-weight: 700;
}

.free .pot-graphic {
  margin: 48px auto 0;
}

.pot-graphic {
  position: relative;
  margin: 56px auto 0;
  max-width: 360px;
}

.pot-graphic svg:not(.pot-slip) {
  width: 100%;
  height: auto;
  display: block;
}

.pot-slip {
  position: absolute;
  width: 15%;
  filter: drop-shadow(0 3px 0 rgba(74, 59, 48, 0.15));
}

.pot-slip-a {
  top: 32%;
  left: 30%;
  transform: rotate(-14deg);
}

.pot-slip-b {
  top: 28%;
  left: 52%;
  transform: rotate(12deg);
}

/* Sections */

section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head .kicker {
  color: var(--coral);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 10px 0 12px;
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
}

/* How it works */

.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.step .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sunshine);
  border: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Features */

.features {
  background: var(--paper-deep);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.feature-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 719px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.feature-card .icon {
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.feature-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.feature-list li + li {
  margin-top: 4px;
}

.icon-coral { background: color-mix(in srgb, var(--coral) 22%, transparent); color: var(--coral); }
.icon-leaf { background: color-mix(in srgb, var(--leaf) 22%, transparent); color: var(--leaf); }
.icon-berry { background: color-mix(in srgb, var(--berry) 22%, transparent); color: var(--berry); }
.icon-sky { background: color-mix(in srgb, var(--sky) 22%, transparent); color: var(--sky); }
.icon-grape { background: color-mix(in srgb, var(--grape) 22%, transparent); color: var(--grape); }
.icon-sunshine { background: color-mix(in srgb, var(--sunshine) 30%, transparent); color: #a67c00; }

.icon-multi { position: relative; }
.icon-multi svg { position: absolute; }
.icon-multi svg:nth-child(1) { top: 7px; left: 50%; transform: translateX(-50%); }
.icon-multi svg:nth-child(2) { bottom: 7px; left: 5px; }
.icon-multi svg:nth-child(3) { bottom: 7px; right: 5px; }

/* Screenshots showcase */

.showcase {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
  justify-items: center;
}

.showcase figure {
  margin: 0;
  text-align: center;
}

.showcase a {
  display: block;
  text-decoration: none;
  cursor: zoom-in;
  transition: transform 0.2s var(--spring);
}

.showcase a:hover {
  transform: translateY(-4px);
}

.showcase img {
  border-radius: 28px;
  border: 4px solid var(--ink);
  box-shadow: 0 10px 0 var(--line);
  max-width: 260px;
}

.showcase figcaption {
  margin-top: 14px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Lightbox (CSS-only, opened via :target) */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(20, 14, 8, 0.88);
  cursor: zoom-out;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 420px);
  max-height: 90vh;
  border-radius: 24px;
  border: 4px solid var(--paper);
  box-shadow: 0 16px 0 rgba(0, 0, 0, 0.25);
}

/* Premium */

.plus {
  background: var(--sunshine);
  color: var(--ink);
  border-radius: 32px;
  padding: 56px 32px;
  text-align: center;
}

.plus .wrap {
  padding: 0;
}

.plus-badge {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  padding: 6px 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  margin-bottom: 18px;
}

.plus h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}

.plus p.lede {
  max-width: 520px;
  margin: 0 auto 32px;
  color: var(--ink);
}

.plus-table {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 32px;
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
}

.plus-table th,
.plus-table td {
  padding: 12px 16px;
  text-align: center;
}

.plus-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.plus-table thead th:first-child {
  border-bottom: none;
}

.plus-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}

.plus-table tbody tr:not(:last-child) th,
.plus-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.plus-table tbody td:last-child {
  color: #7a3b12;
  font-weight: 700;
}

.plus .btn-primary {
  background: var(--card);
}

.plus-fine {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.75;
}

/* Legal pages (terms, privacy) */

.legal {
  padding: 56px 0 88px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 28px;
}

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

.legal-content {
  max-width: 680px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 8px;
}

.legal .subhead {
  color: var(--ink-soft);
  margin: 0 0 40px;
  font-size: 1.05rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 36px 0 10px;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p {
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.legal ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--ink-soft);
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--sky);
}

/* Coming soon */

.coming-soon {
  display: inline-block;
  margin: 4px 0 0;
  padding: 6px 16px;
  border: 2px dashed var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Video */

.video {
  padding-top: 0;
}

.video-frame {
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */

footer {
  border-top: 2px solid var(--line);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  margin-top: -5px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-note {
  width: 100%;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-top: 8px;
}

/* Phones */

@media (max-width: 719px) {
  .hero {
    padding-top: 48px;
  }

  /* Scale the headline with the screen so "A shared chores pot" (the line
     before the <br>) still fits on one line on narrow phones. */
  .hero h1 {
    font-size: clamp(1.75rem, 9vw, 2.2rem);
  }

  .pot-graphic {
    margin-top: 40px;
  }

  section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .plus {
    border-radius: 28px;
    padding: 44px 24px;
  }
}
