/* LemonList website. Tokens follow docs/design-system.md §4 (color) and §5 (type). */

:root {
  color-scheme: light dark;

  --canvas: #f7f5fa;
  --surface: #ffffff;
  --sunken: #efecf3;
  --border: #e3deea;
  --border-strong: #8c8398;
  --text: #1e1726;
  --muted: #5f566b;
  --faint: #8a8195;
  --primary: #5a2e7c;
  --primary-pressed: #47215f;
  --on-primary: #ffffff;
  --primary-soft: #f0e7f7;
  --accent: #ffd43b;
  --on-accent: #2a2000;
  --accent-soft: #fff1b8;
  --success: #276e45;

  --brand: #5a2e7c; /* aubergine band */
  --on-brand: #ffffff;
  --on-brand-muted: #e1cfef;
  --brand-line: rgba(255, 255, 255, 0.16);

  --sticker-tomato: #ff7b6b;
  --sticker-lagoon: #4fc9d9;
  --sticker-lime: #b5de5a;
  --sticker-ink: #1e1726;

  --shadow: 0 1px 2px rgba(42, 20, 56, 0.06), 0 12px 32px rgba(42, 20, 56, 0.1);

  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-text: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, system-ui, sans-serif;

  --gutter: 16px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #120e16;
    --surface: #1b1621;
    --sunken: #0e0b12;
    --border: #2f2838;
    --border-strong: #6e6479;
    --text: #f3eff7;
    --muted: #ada4b8;
    --faint: #7c7387;
    --primary: #c6a3ea;
    --primary-pressed: #b48adf;
    --on-primary: #1f1029;
    --primary-soft: #2c2138;
    --accent: #f7cd3c;
    --on-accent: #241b00;
    --accent-soft: #3a3115;
    --success: #6ccb8e;

    --brand: #2a1438;
    --on-brand-muted: #c6a3ea;
    --brand-line: rgba(255, 255, 255, 0.12);

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem; /* 17px, the app's body size */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: var(--radius-s);
  font-weight: 600;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

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

/* Aisle sign: the app's category-header style. */
.aisle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ---------------------------------------------------------------- Top bar */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.bar .brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 6px;
}

.bar .brand img {
  height: 30px;
  width: auto;
}

.bar nav {
  display: flex;
  gap: 4px;
}

.bar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

.bar nav a:hover {
  background: var(--brand-line);
}

/* ---------------------------------------------------------------- Hero (landing) */

.hero {
  background: var(--brand);
  color: var(--on-brand);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 40px;
  padding: 24px 0 64px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    padding: 48px 0 96px;
  }
}

.hero .eyebrow {
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 5.75rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero h1 .mark {
  /* A lemon underline, like a highlighter stroke on a paper list. */
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: none;
}

.hero .lede {
  margin-top: 22px;
  font-size: clamp(1.125rem, 2.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--on-brand-muted);
  max-width: 34ch;
}

.hero .lede strong {
  color: var(--on-brand);
  font-weight: 600;
}

/* Shelf tag: the yellow price tag from a store shelf. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  border-radius: 6px;
  padding: 10px 16px 10px 30px;
  position: relative;
  line-height: 1.25;
}

.tag::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--brand);
}

.hero .tag {
  margin-top: 32px;
}

.tag small {
  font-weight: 400;
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------- List mockup */

.phone {
  background: var(--surface);
  color: var(--text);
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(14, 6, 20, 0.35);
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  transform: rotate(2deg);
}

@media (prefers-reduced-motion: no-preference) {
  .phone {
    transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .phone:hover {
    transform: rotate(0deg);
  }
}

.screen {
  background: var(--canvas);
  border-radius: 26px;
  padding: 20px 16px 22px;
  overflow: hidden;
}

.screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.screen-head h2 {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stickers {
  display: flex;
}

.sticker {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--sticker-ink);
  border: 2px solid var(--canvas);
  margin-left: -6px;
}

.sticker.tomato { background: var(--sticker-tomato); }
.sticker.lagoon { background: var(--sticker-lagoon); }
.sticker.lime { background: var(--sticker-lime); }

.group {
  background: var(--surface);
  border-radius: var(--radius-m);
  padding: 2px 0;
  margin-top: 8px;
}

.group + .aisle-label {
  margin-top: 16px;
}

.aisle-label {
  color: var(--muted);
  padding: 0 4px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}

.row:first-child {
  border-top: 0;
}

.row .box {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
}

.row.done .box {
  background: var(--primary);
  border-color: var(--primary);
  position: relative;
}

.row.done .box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--on-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.row .name {
  flex: 1;
  min-width: 0;
}

.row .qty {
  color: var(--muted);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.row.done .name,
.row.done .qty {
  color: var(--muted);
  text-decoration: line-through;
}

.row.new {
  background: var(--accent-soft);
}

.row.new .who {
  font-size: 0.75rem;
  color: var(--muted);
  display: block;
  line-height: 1.3;
}

/* ---------------------------------------------------------------- Sections */

section {
  padding: 72px 0;
}

@media (min-width: 900px) {
  section {
    padding: 104px 0;
  }
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head .aisle {
  color: var(--primary);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.125rem;
}

.features {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 720px) and (max-width: 999px) {
  .features > li:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(6, 1fr);
  }
  .features > li {
    grid-column: span 2;
  }
  .features > li.wide {
    grid-column: span 3;
  }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 26px 24px 28px;
}

.feature .num {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 6px;
  padding: 5px 9px 4px;
  margin-bottom: 18px;
}

.feature h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
}

.feature.build {
  background: var(--accent-soft);
  border-color: transparent;
}

.feature.build .num {
  background: var(--accent);
  color: var(--on-accent);
}

/* ---------------------------------------------------------------- Plans */

.plans-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.plans {
  display: grid;
  gap: 16px;
}

@media (min-width: 820px) {
  .plans {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.plan {
  border-radius: var(--radius-l);
  padding: 28px 24px 30px;
  border: 1px solid var(--border);
  background: var(--canvas);
  display: flex;
  flex-direction: column;
}

.plan h3 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan .price {
  margin-top: 8px;
  font-size: 1.125rem;
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

.plan .price .per {
  font-size: 0.9375rem;
}

.plan .price strong {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.plan ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.plan li {
  padding-left: 30px;
  position: relative;
}

.plan li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 7px;
  height: 12px;
  border: solid var(--success);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.plan.premium {
  background: var(--brand);
  color: var(--on-brand);
  border-color: transparent;
}

.plan.premium .price {
  color: var(--on-brand-muted);
}

.plan.premium .price strong {
  color: var(--on-brand);
}

.plan.premium li::before {
  border-color: var(--accent);
}

.plan .note {
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.plan.premium .note {
  color: var(--on-brand-muted);
}

.starter {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  background: var(--accent-soft);
  border-radius: var(--radius-l);
  padding: 22px 24px;
}

.starter .tag::before {
  background: var(--on-accent);
}

.starter p {
  flex: 1 1 320px;
}

/* ---------------------------------------------------------------- Coming soon */

.soon {
  text-align: left;
}

.soon-card {
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 28px;
  padding: 40px 24px;
  display: grid;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 720px) {
  .soon-card {
    padding: 56px 56px;
  }
}

.soon-card h2 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.soon-card p {
  color: var(--on-brand-muted);
  max-width: 52ch;
  font-size: 1.125rem;
}

.soon-card a,
.soon-card .aisle {
  color: var(--accent);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.platform {
  border: 1.5px solid var(--brand-line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  color: var(--on-brand);
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 44px;
  color: var(--muted);
  font-size: 0.9375rem;
}

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

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin-left: -12px;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}

.site-footer nav a:hover {
  background: var(--sunken);
}

/* ---------------------------------------------------------------- Inner pages */

.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-head .bar nav a:hover {
  background: var(--sunken);
}

.page-head .bar nav a[aria-current='page'] {
  background: var(--primary-soft);
  color: var(--primary);
}

.page {
  padding: 48px 0 80px;
}

.prose {
  max-width: 70ch;
}

.prose h1 {
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.prose .meta {
  margin-top: 12px;
  color: var(--muted);
}

.prose h2 {
  font-size: 1.625rem;
  font-weight: 700;
  margin: 48px 0 12px;
  scroll-margin-top: 16px;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 8px;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

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

.prose li::marker {
  color: var(--faint);
}

.prose strong {
  font-weight: 700;
}

.toc {
  margin: 32px 0 8px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}

.toc .aisle {
  color: var(--muted);
  margin-bottom: 10px;
}

.toc ol {
  margin: 0;
  padding-left: 1.3em;
  columns: 1;
}

@media (min-width: 720px) {
  .toc ol {
    columns: 2;
    column-gap: 32px;
  }
}

.toc li {
  margin-bottom: 4px;
  break-inside: avoid;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 24px;
  margin: 28px 0 8px;
}

.callout .aisle {
  color: var(--muted);
  margin-bottom: 6px;
}

.email {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 5vw, 1.75rem);
  letter-spacing: -0.01em;
  word-break: break-word;
}

.faq details {
  border-top: 1px solid var(--border);
}

.faq details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  font-weight: 600;
  font-size: 1.125rem;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  width: 32px;
  text-align: center;
}

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

.faq .answer {
  padding: 0 0 20px;
}

.faq .answer > * + * {
  margin-top: 12px;
}

.faq ol,
.faq ul {
  padding-left: 1.4em;
  margin: 0;
}

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

/* ---------------------------------------------------------------- Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.button:hover {
  background: var(--primary-pressed);
}

.button.secondary {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
}

.button.secondary:hover {
  background: var(--sunken);
}

/* ---------------------------------------------------------------- Join page */

.join-card {
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px 24px;
  box-shadow: var(--shadow);
}

@media (min-width: 720px) {
  .join-card {
    padding: 44px 44px;
  }
}

.join-card h1 {
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.join-card .lead {
  margin-top: 12px;
  color: var(--muted);
}

.code {
  margin: 28px 0 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.code span {
  display: inline-grid;
  place-items: center;
  width: 2.3ch;
  height: 2.1em;
  background: var(--accent-soft);
  border-radius: 10px;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: clamp(1.75rem, 8vw, 2.25rem);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.steps {
  margin: 28px 0 0;
  padding-left: 1.3em;
  color: var(--muted);
}

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

.status {
  min-height: 1.5em;
  margin-top: 12px;
  color: var(--success);
  font-weight: 600;
}

[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------------- 404 */

.lost {
  padding: 72px 0 96px;
  max-width: 560px;
}

.lost .aisle {
  color: var(--primary);
}

.lost h1 {
  margin-top: 12px;
  font-size: clamp(2.5rem, 9vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lost p {
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: 1.125rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .page-head nav,
  .site-footer nav,
  .toc,
  .skip {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
