/* Kiwi Kettle commerce and policy pages */
.subpage {
  min-height: 100vh;
  background:
    radial-gradient(720px 420px at 88% 4%, rgb(168 224 74 / 20%), transparent 62%),
    radial-gradient(600px 380px at 4% 18%, rgb(224 122 60 / 12%), transparent 68%),
    var(--cream);
}

.subnav {
  position: sticky;
  top: 0;
  z-index: 40;
  color: var(--on-dark);
  background: rgb(15 36 16 / 94%);
  backdrop-filter: blur(18px) saturate(1.35);
  border-bottom: 1px solid rgb(255 255 255 / 9%);
}
.subnav__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.subnav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
}
.subnav__links a {
  color: var(--on-dark-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
}
.subnav__links a:hover,
.subnav__links a[aria-current="page"] { color: #fff; }

.subhero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 108px) 0 clamp(54px, 8vw, 88px);
  color: var(--on-dark);
  background:
    radial-gradient(700px 380px at 88% 15%, #285429 0%, transparent 68%),
    linear-gradient(145deg, var(--forest), #142f16);
}
.subhero::after {
  content: "";
  position: absolute;
  right: -110px;
  top: -140px;
  width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: url("../images/logo.svg") center/contain no-repeat;
  opacity: .13;
  animation: spin 70s linear infinite;
}
.subhero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(30px, 7vw, 90px);
}
.subhero h1 {
  max-width: 13ch;
  margin-bottom: .25em;
  color: #fff;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}
.subhero__lede {
  max-width: 58ch;
  color: var(--on-dark-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.subhero__app {
  width: clamp(122px, 18vw, 210px);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 34%;
  background: rgb(255 255 255 / 10%);
  box-shadow: 0 34px 70px -26px rgb(0 0 0 / 75%), inset 0 0 0 1px rgb(255 255 255 / 20%);
  transform: rotate(4deg);
}
.subhero__app img { width: 100%; height: 100%; border-radius: 29%; }
.subhero__apps { display: flex; align-items: center; padding-right: 18px; }
.subhero__apps .subhero__app { width: clamp(108px, 14vw, 170px); }
.subhero__apps .subhero__app + .subhero__app { margin-left: -26px; transform: rotate(-5deg) translateY(18px); }
.subhero__apps .subhero__app--pickle { border-radius: 29%; background: #dfe7ff; }
.subhero__apps .subhero__app--pickle img { border-radius: 24%; }

.app-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 28px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.app-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 17px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font: 800 .94rem/1 var(--body);
  cursor: pointer;
}
.app-tab img { width: 27px; height: 27px; border-radius: 8px; }
.app-tab[aria-selected="true"] {
  color: var(--forest);
  background: var(--lime);
  box-shadow: 0 8px 18px -12px rgb(15 36 16 / 60%);
}
.app-panel[hidden] { display: none; }
.app-panel__heading { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
.app-panel__heading img { width: 58px; height: 58px; border-radius: 17px; box-shadow: var(--shadow-md); }
.app-panel__heading p { margin: 2px 0 0; color: var(--ink-soft); }
.app-panel__heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.7rem); }

.portfolio-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 28px 0 0;
  padding: 18px 20px;
  border-radius: 18px;
  color: var(--forest);
  background: linear-gradient(135deg, #eef8d7, #fff9d9);
  border: 1px solid #d9e9b6;
}
.portfolio-note span { font-size: 1.25rem; line-height: 1.25; }
.portfolio-note p { margin: 0; }

.product-section,
.policy-section { padding: clamp(60px, 9vw, 105px) 0; }
.product-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}
.product-story,
.product-proof,
.policy-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.product-story { padding: clamp(28px, 5vw, 52px); }
.product-story h2 { max-width: 13ch; }
.product-story p { color: var(--ink-soft); max-width: 62ch; }
.product-proof {
  padding: 28px;
  background: linear-gradient(150deg, #492164, #7f3c93);
  color: #fff;
}
.product-proof h3 { color: #fff; }
.product-proof ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.product-proof li { display: flex; gap: 10px; color: rgb(255 255 255 / 82%); }
.product-proof li::before { content: "✓"; color: #ffd75e; font-weight: 800; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.price-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.price-card--featured {
  color: var(--on-dark);
  background:
    radial-gradient(420px 260px at 110% -10%, #396c30, transparent 66%),
    var(--forest);
  border: 0;
  box-shadow: 0 30px 70px -30px rgb(15 36 16 / 75%);
}
.price-card--featured h3 { color: #fff; }
.price-badge {
  align-self: flex-start;
  margin-bottom: 26px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--forest);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.price-card--featured .price-badge { background: var(--lime); }
.price-card h3 { font-size: 1.75rem; }
.price {
  margin: 6px 0 20px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.price small { font: 600 .85rem/1.3 var(--body); letter-spacing: 0; opacity: .7; }
.price-card p { color: var(--ink-soft); }
.price-card--featured p { color: var(--on-dark-soft); }
.price-card ul { margin: 8px 0 28px; padding: 0; list-style: none; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 9px; }
.price-card li::before { content: "✦"; color: var(--copper); }
.price-card--featured li::before { color: var(--lime); }
.price-card .price-action { margin-top: auto; }
.price-action {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  background: var(--tint);
  color: var(--forest);
}
.price-card--featured .price-action { background: var(--lime); }
.pricing-fineprint {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--tint);
  color: var(--ink-soft);
  font-size: .94rem;
}
.pricing-fineprint p:last-child { margin-bottom: 0; }

.policy-wrap { width: min(900px, 100% - 32px); margin-inline: auto; }
.policy-card { padding: clamp(28px, 6vw, 64px); }
.policy-card h1 { font-size: clamp(2.7rem, 7vw, 5rem); }
.policy-card h2 {
  max-width: none;
  margin-top: 1.7em;
  font-size: clamp(1.45rem, 3vw, 2rem);
}
.policy-card h3 { margin-top: 1.5em; }
.policy-card p,
.policy-card li { color: var(--ink-soft); }
.policy-card strong { color: var(--ink); }
.policy-card a { color: #397d18; font-weight: 700; }
.policy-updated { color: var(--ink-soft); }
.policy-summary {
  margin: 28px 0 36px;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--tint), #fff7d3);
  border-left: 5px solid var(--lime);
}
.policy-summary p:last-child { margin-bottom: 0; }
.policy-card ul { padding-left: 1.25em; }
.policy-card li + li { margin-top: .45em; }

.subfooter { padding: 36px 0; background: var(--forest); color: var(--on-dark-soft); }
.subfooter__inner { display: grid; gap: 20px; }
.subfooter__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.subfooter__links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.subfooter a { color: inherit; }
.subfooter__links a { text-decoration: none; font-weight: 700; }
.subfooter__links a:hover { color: #fff; }
.subfooter__note { margin: 0; font-size: .88rem; }

@media (max-width: 860px) {
  .subhero__grid,
  .product-intro { grid-template-columns: 1fr; }
  .subhero__app { grid-row: 1; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card { min-height: 0; }
}
@media (max-width: 680px) {
  .subnav__inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .subnav__links { justify-content: flex-start; gap: 8px 16px; }
  .subhero { padding-top: 52px; }
  .app-tabs { display: grid; width: 100%; border-radius: 24px; }
  .app-tab { justify-content: flex-start; }
}
