/*
 * LinkDish public site: marketing layouts shared by the homepage and the landing pages.
 * Hero, product mocks (HTML/CSS stand-ins for the app), sources, features, household,
 * pricing, iPhone, and the landing-page blocks. Loaded after base.css.
 */

/* Tones used by icon tiles and visual panels ------------------------------------- */

.tone-sage {
  background: var(--primary-soft);
  color: var(--on-primary-soft);
}

.tone-tomato {
  background: var(--tomato-soft);
  color: var(--on-tomato-soft);
}

.tone-butter {
  background: var(--butter-soft);
  color: var(--on-butter-soft);
}

.tone-sage-bg {
  background:
    radial-gradient(
      circle at 12% 88%,
      color-mix(in srgb, var(--butter) 30%, transparent),
      transparent 40%
    ),
    var(--primary-soft);
}

.tone-butter-bg {
  background:
    radial-gradient(
      circle at 88% 12%,
      color-mix(in srgb, var(--tomato) 22%, transparent),
      transparent 42%
    ),
    var(--butter-soft);
}

.tone-tomato-bg {
  background:
    radial-gradient(
      circle at 10% 10%,
      color-mix(in srgb, var(--butter) 34%, transparent),
      transparent 40%
    ),
    var(--tomato-soft);
}

.check-list {
  display: grid;
  gap: 0;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
}

.check-list li::before {
  position: absolute;
  top: 15px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    var(--check-icon) center / 12px no-repeat,
    var(--primary);
  content: "";
}

/* Hero -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(
      ellipse 46% 60% at 96% 18%,
      color-mix(in srgb, var(--butter-soft) 92%, transparent),
      transparent 70%
    ),
    radial-gradient(
      ellipse 36% 50% at 64% 102%,
      color-mix(in srgb, var(--primary-soft) 80%, transparent),
      transparent 70%
    ),
    radial-gradient(circle at 50% -20%, var(--canvas), transparent 60%), var(--bg);
}

.hero-inner {
  display: grid;
  width: var(--shell);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  margin-inline: auto;
  padding-block: clamp(36px, 6vw, 84px) clamp(56px, 7vw, 96px);
}

.hero-copy {
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.3;
  transition:
    border-color 150ms ease,
    transform 150ms ease;
}

.hero-badge:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.hero-badge .icon {
  width: 1em;
  height: 1em;
  color: var(--primary);
}

.hero-badge-tag {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--tomato);
  color: var(--on-tomato);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: 26px;
  font-size: clamp(3.4rem, 1.5rem + 6.2vw, 7rem);
  letter-spacing: -0.062em;
  line-height: 0.88;
}

.hero-title em {
  display: block;
  margin-top: 0.06em;
  color: var(--primary);
  font-weight: 600;
}

.hero-lede {
  max-width: 580px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
  line-height: 1.62;
}

.paste-form {
  max-width: 600px;
  margin: 0 0 22px;
}

.paste-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.paste-field:focus-within {
  border-color: var(--primary);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent),
    var(--shadow-md);
}

.paste-icon {
  color: var(--tomato);
}

.paste-input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  flex: 1 1 auto;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.02rem;
}

.paste-input::placeholder {
  color: color-mix(in srgb, var(--muted) 85%, transparent);
}

.paste-submit {
  flex: 0 0 auto;
  min-height: 48px;
  border-radius: 13px;
}

.paste-hint {
  margin: 10px 0 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.paste-hint.error {
  color: var(--danger);
  font-weight: 650;
}

.hero-actions {
  margin-bottom: 18px;
}

.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.hero-note span {
  padding-inline: 4px;
  color: var(--subtle);
}

.hero-visual {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 44px 0 20px;
}

/* Phone mock ----------------------------------------------------------------------- */

.phone {
  position: relative;
  width: min(300px, 76vw);
  aspect-ratio: 300 / 620;
  padding: 9px;
  border-radius: 46px;
  background: var(--device);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 2px 6px rgba(var(--shadow-rgb), 0.12),
    0 40px 80px -24px rgba(41, 68, 59, 0.42);
}

.phone::before {
  position: absolute;
  z-index: 3;
  top: 19px;
  left: 50%;
  width: 84px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #050505;
  content: "";
}

.phone-screen {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 37px;
  background: var(--bg);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.3;
}

/* A real app screenshot filling the phone mock (390 x 844 capture, status bar included). */
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* Floating cards around the phone */

.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  line-height: 1.25;
  animation: float-in 700ms var(--ease-out) both;
}

.float-card small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.float-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
}

.float-icon-tomato {
  background: var(--tomato-soft);
  color: var(--on-tomato-soft);
}

.float-check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
}

.float-check .icon {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}

.float-import {
  top: 0;
  left: -4%;
  animation-delay: 120ms;
}

.float-timer {
  top: 46%;
  right: -3%;
  border-color: transparent;
  background: var(--tomato);
  color: var(--on-tomato);
  animation-delay: 260ms;
}

.float-timer small {
  color: inherit;
  opacity: 0.85;
}

.float-timer strong {
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
}

.timer-ring {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(currentColor 0 72%, rgba(255, 255, 255, 0.28) 72% 100%);
  -webkit-mask: radial-gradient(circle, transparent 10px, #000 10.5px);
  mask: radial-gradient(circle, transparent 10px, #000 10.5px);
}

.float-list {
  bottom: 13%;
  left: -6%;
  display: grid;
  gap: 5px;
  min-width: 170px;
  animation-delay: 400ms;
}

.float-list small {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.float-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 650;
}

.float-item i {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
}

.float-item.is-done {
  color: var(--muted);
  text-decoration: line-through;
}

.float-item.is-done i {
  border-color: var(--primary);
  background:
    var(--check-icon) center / 10px no-repeat,
    var(--primary);
}

@keyframes float-in {
  from {
    transform: translateY(14px) scale(0.98);
  }

  to {
    transform: none;
  }
}

/* Sample recipes strip --------------------------------------------------------------- */

.sample-strip {
  border-block: 1px solid var(--border);
  background: var(--canvas);
}

.sample-inner {
  display: flex;
  align-items: center;
  gap: 14px 22px;
  padding-block: 18px;
}

.sample-title {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.sample-links {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-links a {
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.sample-links a:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

/* Sources ------------------------------------------------------------------------------ */

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--canvas);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.source-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.source-icon,
.bento-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 14px;
}

.source-icon .icon,
.bento-icon .icon {
  width: 24px;
  height: 24px;
}

.source-card h3 {
  margin-bottom: 8px;
  font-size: 1.42rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.source-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.source-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.source-notes p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 16px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.93rem;
}

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

.source-notes .icon {
  margin-top: 2px;
  color: var(--tomato);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: clamp(48px, 7vw, 80px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--tomato-soft);
}

.steps li:nth-child(2) {
  background: var(--butter-soft);
}

.steps li:nth-child(3) {
  background: var(--primary-soft);
}

.step-number {
  display: block;
  margin-bottom: 26px;
  color: var(--on-tomato-soft);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.steps li:nth-child(2) .step-number {
  color: var(--on-butter-soft);
}

.steps li:nth-child(3) .step-number {
  color: var(--on-primary-soft);
}

.steps h3 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.steps p {
  margin: 0;
  color: var(--ink);
  opacity: 0.78;
}

/* Features ------------------------------------------------------------------------------ */

.features {
  background:
    radial-gradient(
      ellipse 40% 30% at 0% 12%,
      color-mix(in srgb, var(--primary-soft) 70%, transparent),
      transparent 70%
    ),
    radial-gradient(
      ellipse 36% 26% at 100% 55%,
      color-mix(in srgb, var(--tomato-soft) 70%, transparent),
      transparent 70%
    ),
    var(--bg);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
  margin-bottom: clamp(64px, 9vw, 120px);
}

.feature-row-flip {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.feature-row-flip .feature-copy {
  order: 2;
}

.feature-copy {
  min-width: 0;
  max-width: 520px;
}

.feature-copy h3 {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 1.5rem + 3vw, 4.2rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.feature-copy h3 em {
  color: var(--primary);
  font-weight: 600;
}

.feature-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.68;
}

.feature-visual {
  display: grid;
  min-width: 0;
  min-height: 460px;
  place-items: center;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--border);
  border-radius: 32px;
}

/* A real app screenshot rising from the bottom edge of the feature panel. */
.feature-visual-shot {
  align-items: end;
  padding-bottom: 0;
  overflow: hidden;
}

.feature-shot {
  width: min(100%, 300px);
}

.feature-shot picture {
  max-height: 520px;
  overflow: hidden;
  border: 8px solid var(--device);
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
  background: var(--device);
  box-shadow: var(--shadow-lg);
}
.mock-thumb {
  width: 44px;
  height: 33px;
  border-radius: 8px;
}
/* Bento grid */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bento-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
}

.bento-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.95rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.bento-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.bento-cook {
  grid-row: span 2;
  padding-bottom: 0;
  background:
    radial-gradient(
      circle at 90% 0%,
      color-mix(in srgb, var(--butter) 26%, transparent),
      transparent 40%
    ),
    var(--surface);
}

/* Dark mode shown on a night-time card in either site theme. */
.bento-dark {
  --night-ink: #f4ede1;
  --night-muted: #c8bead;
  padding-bottom: 0;
  border-color: #34302a;
  background:
    radial-gradient(circle at 100% 0%, rgba(221, 231, 223, 0.14), transparent 55%), #211f1b;
  color: var(--night-ink);
}

.bento-dark p {
  color: var(--night-muted);
}

.bento-dark .bento-icon {
  background: rgba(221, 231, 223, 0.14);
  color: #bcd6c6;
}

.bento-dark .bento-screen-peek picture {
  max-height: 250px;
  border-color: #0b0a09;
}

/* Start the peek at the search bar so the recipe photos show. */
.bento-screen-peek img {
  margin-top: -40%;
}

.bento-photos {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.bento-photos .bento-copy {
  flex: 1 1 0;
  min-width: 0;
}

.photo-strip {
  display: grid;
  flex: 1.1 1 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.photo-strip picture {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.photo-strip picture:nth-child(2n) {
  transform: translateY(10px);
}

.bento-screen {
  position: relative;
  width: min(100%, 300px);
  margin: 28px auto 0;
}

/* Pinned to the card's bottom edge whatever height the row ends up. */
.bento-cook .bento-screen,
.bento-dark .bento-screen {
  margin-top: auto;
}

.bento-cook .bento-copy,
.bento-dark .bento-copy {
  margin-bottom: 28px;
}

/* The cook card spans two rows, so there is room for the whole screen. */
.bento-cook .bento-screen picture {
  max-height: 660px;
}

.bento-screen picture {
  max-height: 440px;
  overflow: hidden;
  border: 7px solid var(--device);
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  background: var(--device);
}

.units-demo,
.search-demo {
  margin-top: 22px;
}

.units-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--tint);
}

.units-toggle label {
  min-width: 76px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

#units-us:checked ~ .units-toggle label[for="units-us"],
#units-metric:checked ~ .units-toggle label[for="units-metric"] {
  background: var(--primary);
  color: var(--on-primary);
}

#units-us:focus-visible ~ .units-toggle label[for="units-us"],
#units-metric:focus-visible ~ .units-toggle label[for="units-metric"] {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.units-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.units-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.97rem;
}

.units-list [data-us],
.units-list [data-metric] {
  font-weight: 800;
}

.units-list [data-metric],
#units-metric:checked ~ .units-list [data-us] {
  display: none;
}

#units-metric:checked ~ .units-list [data-metric] {
  display: inline;
}

.units-oven {
  display: flex;
  align-items: center;
  gap: 6px;
}

.units-oven .icon {
  color: var(--tomato);
}

.search-demo {
  display: grid;
  gap: 8px;
}

.search-demo-field {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  background: var(--canvas);
  font-weight: 700;
}

.search-demo-hit {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--canvas);
}

.search-demo-hit.is-top {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.search-demo-hit b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.2;
}

.search-demo-hit small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.search-demo-hit.is-top small {
  color: var(--on-primary-soft);
}

/* Household ------------------------------------------------------------------------------ */

.household {
  padding: 24px;
}

.household-inner {
  display: grid;
  width: min(100%, 1320px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 7vw, 110px);
  margin-inline: auto;
  padding: clamp(48px, 8vw, 116px);
  border: 1px solid var(--border);
  border-radius: 38px;
  background:
    radial-gradient(
      circle at 94% 10%,
      color-mix(in srgb, var(--butter) 56%, transparent),
      transparent 32%
    ),
    linear-gradient(135deg, var(--primary-soft), var(--tint));
}

.household-copy {
  min-width: 0;
}

.household .section-title,
.iphone .section-title {
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4.4rem);
}

.household-copy > p:not(.eyebrow) {
  max-width: 500px;
  color: var(--ink);
  font-size: 1.08rem;
  opacity: 0.82;
}

.household-demo {
  min-width: 0;
  padding: 8px 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: var(--shadow-md);
}

.household-row {
  display: grid;
  min-height: 92px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 2px;
}

.household-row + .household-row {
  border-top: 1px solid var(--border);
}

.avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.avatar-tomato {
  background: var(--tomato-soft);
  color: var(--on-tomato-soft);
}

.avatar-butter {
  background: var(--butter-soft);
  color: var(--on-butter-soft);
}

.household-row small,
.household-row strong {
  display: block;
}

.household-row small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.household-row strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-state {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
}

/* Pricing -------------------------------------------------------------------------------- */

.period-toggle {
  display: flex;
  width: fit-content;
  margin: -12px auto 34px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--tint);
}

.period-toggle button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
}

.period-toggle button[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.period-save {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--butter-soft);
  color: var(--on-butter-soft);
  font-size: 0.75rem;
  font-weight: 800;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.plan-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(26px, 3vw, 34px);
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--canvas);
}

.plan-name {
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.plan-tagline {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-bottom: 6px;
}

.plan-amount {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 2.2rem + 1.8vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.plan-unit {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.plan-note {
  min-height: 1.6em;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-features {
  display: grid;
  gap: 12px;
  margin: 24px 0 28px;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-size: 0.97rem;
}

.plan-features li::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    var(--check-icon) center / 12px no-repeat,
    var(--primary);
  content: "";
}

.plan-card .button {
  width: 100%;
  margin-top: auto;
}

/* The recommended plan sits on the forest band in both themes. */
.plan-card-featured {
  border-color: var(--band);
  background:
    radial-gradient(circle at 100% 0, rgba(185, 82, 51, 0.5), transparent 42%), var(--band);
  box-shadow: 0 24px 60px -20px rgba(41, 68, 59, 0.55);
  color: var(--band-ink);
}

.plan-card-featured .plan-name,
.plan-card-featured .plan-features li {
  color: var(--band-ink);
}

.plan-card-featured .plan-tagline,
.plan-card-featured .plan-unit,
.plan-card-featured .plan-note {
  color: var(--band-muted);
}

.plan-card-featured .plan-features {
  border-color: var(--band-line);
}

.plan-card-featured .plan-features li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2329443b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E")
      center / 12px no-repeat,
    var(--butter);
}

.plan-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--butter);
  color: #2a200a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.plan-compare {
  margin-top: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--canvas);
}

.plan-compare summary {
  padding: 18px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
  padding: 0 12px 16px;
}

.plan-compare table,
.compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.plan-compare th,
.plan-compare td,
.compare-table th,
.compare-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
}

.plan-compare thead th,
.compare-table thead th {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-compare tbody th,
.compare-table tbody th {
  font-weight: 700;
}

.plan-compare th small,
.compare-table th small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.yes,
.no {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.yes::before {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    var(--check-icon) center / 12px no-repeat,
    var(--primary);
  content: "";
}

.no {
  color: var(--muted);
  font-weight: 600;
}

.no::before {
  width: 12px;
  height: 2px;
  margin-inline: 3px;
  background: var(--border-strong);
  content: "";
}

.pricing-footnote {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

/* iPhone --------------------------------------------------------------------------------- */

.iphone-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.waitlist-form {
  max-width: 540px;
  margin-top: 28px;
}

.waitlist-field {
  display: flex;
  gap: 10px;
}

.waitlist-field .input {
  flex: 1 1 auto;
}

.waitlist-field .button {
  flex: 0 0 auto;
}

.waitlist-form .form-status {
  margin-top: 10px;
}

.waitlist-fineprint,
.waitlist-noscript {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.iphone-today {
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.iphone-today h3 {
  margin-bottom: 6px;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.iphone-today > p {
  color: var(--muted);
}

.iphone-today ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.iphone-today li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.iphone-today li > span:first-child {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  font-weight: 800;
}

.iphone-today li > span:last-child {
  padding-top: 4px;
}

.iphone-today li .icon {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-bottom: -3px;
  color: var(--primary);
}

/* Landing pages --------------------------------------------------------------------------- */

.lp-hero {
  overflow: clip;
  background:
    radial-gradient(
      ellipse 44% 60% at 96% 10%,
      color-mix(in srgb, var(--butter-soft) 90%, transparent),
      transparent 70%
    ),
    radial-gradient(
      ellipse 30% 40% at 60% 100%,
      color-mix(in srgb, var(--primary-soft) 70%, transparent),
      transparent 70%
    ),
    var(--bg);
}

.lp-hero-inner {
  display: grid;
  width: var(--shell);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  margin-inline: auto;
  padding-block: clamp(28px, 4vw, 56px) clamp(64px, 8vw, 104px);
}

.lp-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 1.5rem + 4.8vw, 5.8rem);
  letter-spacing: -0.058em;
  line-height: 0.92;
}

.lp-hero h1 em {
  color: var(--primary);
  font-weight: 600;
}

.lp-hero .hero-lede {
  max-width: 600px;
}

.lp-visual {
  display: grid;
  min-width: 0;
  place-items: center;
}

.shot-frame {
  position: relative;
  width: min(100%, 320px);
  margin-inline: auto;
}

.shot-frame picture {
  overflow: hidden;
  border: 8px solid var(--device);
  border-radius: 40px;
  background: var(--device);
  box-shadow: var(--shadow-lg);
}

.shot-frame .shot-crop {
  max-height: 560px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.info-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--canvas);
}

.info-card h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.info-card p + p {
  margin-top: 10px;
}

.info-card .step-number {
  margin-bottom: 18px;
  font-size: 2.2rem;
}

.lp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
}

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--canvas);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  min-width: 640px;
  font-size: 0.97rem;
}

.compare-table th,
.compare-table td {
  padding: 16px 18px;
}

.compare-table thead th:nth-child(2),
.compare-table tbody td:nth-child(2) {
  background: color-mix(in srgb, var(--primary-soft) 55%, transparent);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related a {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
  transition:
    border-color 150ms ease,
    transform 150ms ease;
}

.related a:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.related .icon {
  color: var(--primary);
}

/* A clean-vs-cluttered comparison used on the websites landing page. */
.clutter-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  width: 100%;
}

.clutter-page,
.clean-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
}

.clutter-page {
  display: grid;
  gap: 8px;
  align-content: start;
  background: var(--canvas);
}

.clutter-page span {
  display: block;
  border-radius: 6px;
  background: var(--tint);
}

.clutter-ad {
  display: grid !important;
  min-height: 46px;
  place-items: center;
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.clutter-line {
  height: 8px;
}

.clutter-line.short {
  width: 60%;
}

.clean-card b {
  display: block;
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.15;
}

.clean-card .mock-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}

.clean-card ul {
  margin: 8px 0 0;
  padding-left: 16px;
  color: var(--ink);
}

.clean-card small {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-weight: 750;
}

.label-chip {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.label-chip.good {
  background: var(--primary-soft);
  color: var(--on-primary-soft);
}

.related-title {
  margin-bottom: 22px;
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem);
  letter-spacing: -0.035em;
}

/* YouTube and photo scan demos on the landing pages. */
.video-demo,
.scan-demo {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.video-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--device);
  box-shadow: var(--shadow-lg);
  color: #fbf7f0;
}

.video-art {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 13;
  opacity: 0.92;
}

.video-play {
  position: absolute;
  top: 38%;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.video-play .icon {
  width: 28px;
  height: 28px;
}

.video-meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 36px 14px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.video-meta b {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
}

.video-meta small {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0.85;
}

.video-arrow {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--tomato);
  box-shadow: var(--shadow-md);
  color: var(--on-tomato);
}

.paper-card {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 22px 20px;
  transform: rotate(-2.5deg);
  border-radius: 6px;
  background:
    repeating-linear-gradient(transparent 0 25px, rgba(41, 68, 59, 0.14) 25px 26px), #fbf1dc;
  box-shadow: var(--shadow-lg);
  color: #3b2f12;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.6;
}

.paper-card b {
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.2;
}

/* Responsive -------------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .float-import {
    left: -6%;
  }

  .float-timer {
    right: -6%;
  }
}

@media (max-width: 1040px) {
  .hero-inner,
  .lp-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
    gap: 32px;
  }

  .hero-title {
    font-size: clamp(3.4rem, 1rem + 6.4vw, 5.6rem);
  }

  .float-import {
    left: -10%;
  }

  .float-timer {
    right: -3%;
  }

  .float-list {
    left: -4%;
  }

  .source-grid,
  .bento,
  .card-grid,
  .related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-cook {
    grid-row: span 2;
  }

  .bento-photos {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .photo-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .photo-strip picture:nth-child(2n) {
    transform: none;
  }

  .feature-row,
  .feature-row-flip {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-row-flip .feature-copy {
    order: 0;
  }

  .feature-copy {
    max-width: 680px;
  }

  .feature-visual {
    min-height: 0;
  }

  .household-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin-inline: auto;
  }

  /* Stacked plans lead with the recommended one. */
  .plan-card-featured {
    order: -1;
  }

  .iphone-inner,
  .lp-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .lp-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    padding-top: 8px;
  }

  .float-import {
    left: calc(50% - 300px);
  }

  .float-timer {
    right: calc(50% - 290px);
  }

  .float-list {
    left: calc(50% - 280px);
  }
}

@media (max-width: 820px) {
  .sample-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .sample-links {
    flex-wrap: nowrap;
    width: calc(100% + 32px);
    margin-inline: -16px;
    padding: 2px 16px 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sample-links a {
    flex: 0 0 auto;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps li {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 14px;
  }

  .steps .step-number {
    grid-row: span 2;
    margin: 0;
    font-size: 2.1rem;
  }

  .source-notes {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .float-import {
    top: 2%;
    left: 0;
  }

  .float-timer {
    top: 50%;
    right: 0;
  }

  .float-list {
    bottom: 3%;
    left: 0;
  }

  .source-grid,
  .bento,
  .card-grid,
  .card-grid-2,
  .related {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-demo,
  .scan-demo {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr);
    gap: 8px;
  }

  /* Tables become stacked cards on phones, labelled by data-label. */
  .compare-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .compare-table,
  .plan-compare table {
    min-width: 0;
  }

  .compare-table thead,
  .plan-compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .compare-table tr,
  .plan-compare tbody tr {
    display: grid;
    gap: 4px 12px;
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--canvas);
  }

  .plan-compare tbody tr {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--surface);
  }

  .compare-table th,
  .compare-table td,
  .plan-compare th,
  .plan-compare td {
    display: block;
    padding: 2px 0;
    border: 0;
  }

  .compare-table tbody td:nth-child(2) {
    background: none;
  }

  .compare-table tbody th,
  .plan-compare tbody th {
    grid-column: 1 / -1;
    margin-bottom: 4px;
    font-family: var(--font-display);
    font-size: 1.12rem;
  }

  .compare-table td[data-label]::before,
  .plan-compare td[data-label]::before {
    display: block;
    color: var(--primary);
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .plan-compare td {
    font-size: 0.88rem;
  }

  .plan-compare .yes,
  .plan-compare .no {
    font-size: 0;
  }

  .shot-frame {
    width: min(100%, 250px);
  }

  .shot-frame .shot-crop {
    max-height: 400px;
  }

  .video-arrow {
    width: 30px;
    height: 30px;
  }

  .video-play {
    top: 30%;
    width: 42px;
    height: 42px;
  }

  .video-meta {
    padding: 28px 10px 10px;
  }

  .video-meta b {
    font-size: 0.8rem;
  }

  .video-meta small {
    font-size: 0.7rem;
  }

  .bento-cook {
    grid-row: auto;
  }

  .bento-cook .bento-screen picture {
    max-height: 440px;
  }

  .source-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    padding: 18px;
  }

  .source-card .source-icon {
    width: 44px;
    height: 44px;
    grid-row: span 2;
    margin: 0;
  }

  .source-card h3 {
    margin-bottom: 4px;
    font-size: 1.25rem;
  }

  .source-card p {
    font-size: 0.92rem;
  }
}

@media (max-width: 560px) {
  .hero-inner {
    padding-top: 24px;
  }

  .hero-badge {
    font-size: 0.8rem;
  }

  .paste-field {
    flex-wrap: wrap;
    padding: 6px 6px 6px 14px;
  }

  .paste-input {
    width: calc(100% - 40px);
  }

  .paste-submit {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .phone {
    width: min(270px, 70vw);
  }

  .float-card {
    padding: 8px 11px;
  }

  .float-import strong {
    font-size: 0.88rem;
  }

  .float-import small {
    font-size: 0.68rem;
  }

  .float-import .float-icon {
    width: 30px;
    height: 30px;
  }

  .float-timer strong {
    font-size: 1.1rem;
  }

  .float-list {
    min-width: 0;
  }

  .source-card,
  .bento-card,
  .info-card {
    padding: 22px;
  }

  .feature-visual {
    padding: 16px;
    border-radius: 24px;
  }
  .household {
    padding: 10px;
  }

  .household-inner {
    padding: 44px 20px;
    border-radius: 26px;
  }

  .household-demo {
    padding-inline: 14px;
  }

  .household-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .row-state {
    display: none;
  }

  .period-toggle button {
    padding-inline: 14px;
  }

  .waitlist-field {
    flex-direction: column;
  }

  .waitlist-field .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-card {
    animation: none;
  }
}
