/*
 * Packnaut website — one stylesheet for every page.
 *
 * Colours and type are the app's own (mobile/src/design/tokens.ts and
 * typography.ts), so the site reads as the same product. Fonts are served from
 * this site rather than Google Fonts: a third-party font request sends every
 * visitor's IP address to that provider, which the privacy policy would then
 * have to disclose.
 */

@font-face {
  font-family: 'Frank Ruhl Libre';
  src: url('/assets/fonts/FrankRuhlLibre_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Frank Ruhl Libre';
  src: url('/assets/fonts/FrankRuhlLibre_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('/assets/fonts/PublicSans_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('/assets/fonts/PublicSans_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBMPlexMono_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

:root {
  --canvas: #efe9da;
  --surface: #f8f5ec;
  --ink: #2b2a24;
  --muted: #6b6759;
  --primary: #4b6b54;
  --on-primary: #f8f5ec;
  --primary-tint: rgba(75, 107, 84, 0.1);
  --gold: #b8863b;
  --gold-text: #7a5720;
  --caution: #a65a42;
  --hairline: rgba(43, 42, 36, 0.1);

  --display: 'Frank Ruhl Libre', Georgia, 'Times New Roman', serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius: 16px;
  --measure: 720px;
  --wide: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1b211c;
    --surface: #232b24;
    --ink: #edeae0;
    --muted: #a6a296;
    --primary: #8cb89a;
    --on-primary: #1b211c;
    --primary-tint: rgba(140, 184, 154, 0.14);
    --gold: #d9a857;
    --gold-text: #d9a857;
    --caution: #c77e68;
    --hairline: rgba(237, 234, 224, 0.12);
    color-scheme: dark;
  }
}

/* Page-to-page navigation cross-fades instead of flashing white, so moving
   between pages feels like one app. Browsers without support just navigate. */
@view-transition {
  navigation: auto;
}
.site-header {
  view-transition-name: site-header;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 12px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 500 22px/1 var(--display);
  margin-right: auto;
}
.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 999px;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
  background: var(--primary-tint);
}

/* ---------------------------------------------------------------- layout */

main {
  display: block;
}
.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 16px;
}
.prose {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 48px 16px 72px;
}

.eyebrow {
  font: 500 13px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(34px, 6vw, 48px);
  margin: 0 0 16px;
}
h2 {
  font-size: 28px;
  margin: 48px 0 12px;
}
h3 {
  font-size: 20px;
  margin: 28px 0 8px;
}
p,
ul,
ol {
  margin: 0 0 14px;
}
li {
  margin: 6px 0;
}
.lede {
  font-size: 19px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
strong {
  font-weight: 600;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}
.card > :last-child {
  margin-bottom: 0;
}
.card h3 {
  margin-top: 0;
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 24px;
  align-items: baseline;
  margin: 16px 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.facts dt {
  font: 500 11.5px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin: 0;
}
@media (max-width: 520px) {
  .facts {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .facts dd + dt {
    margin-top: 12px;
  }
}

.callout {
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 20px 0;
}
.callout > :last-child {
  margin-bottom: 0;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0 8px;
}
.toc ol {
  margin: 8px 0 0;
  padding-left: 20px;
  columns: 2 220px;
  column-gap: 32px;
}
.toc li {
  margin: 4px 0;
  break-inside: avoid;
}

/* tables collapse to stacked rows on a phone rather than scrolling sideways */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15.5px;
}
.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 10px;
  border-bottom: 1px solid var(--hairline);
}
.table th {
  font: 500 12px/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 640px) {
  .table thead {
    display: none;
  }
  .table tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
  }
  .table td {
    display: block;
    border: 0;
    padding: 3px 0;
  }
  .table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font: 500 11px/1.4 var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font: 600 16px/1 var(--body);
  text-decoration: none;
  border: 0;
}
.button:hover {
  filter: brightness(1.06);
}
.button--quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}

/* ---------------------------------------------------------------- home */

.hero {
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
}
.hero .lede {
  font-size: 20px;
  max-width: 34ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero__note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* A stylised packing list, drawn in HTML, standing in for a screenshot. */
.demo {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 22px 20px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.35);
}
.demo__title {
  font: 500 26px/1.1 var(--display);
  margin: 4px 0 2px;
}
.demo__meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}
.demo__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--hairline);
  overflow: hidden;
  margin-bottom: 18px;
}
.demo__bar span {
  display: block;
  height: 100%;
  width: 42%;
  background: var(--gold);
  border-radius: 999px;
}
.demo__group {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 6px;
}
.demo__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15.5px;
}
.demo__item:last-child {
  border-bottom: 0;
}
.demo__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.8px solid var(--muted);
  flex: none;
}
.demo__item--done {
  color: var(--muted);
}
.demo__item--done .demo__check {
  background: var(--primary);
  border-color: var(--primary);
}
.demo__qty {
  margin-left: auto;
  font: 500 13px/1 var(--mono);
  color: var(--muted);
}
.demo__why {
  display: block;
  font-size: 12.5px;
  color: var(--gold-text);
  margin-top: 2px;
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--hairline);
}
.section h2 {
  margin-top: 0;
}
.steps,
.features {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}
.features {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.step,
.feature {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px;
}
.step__n {
  font: 500 13px/1 var(--mono);
  color: var(--gold-text);
  letter-spacing: 0.1em;
}
.step h3,
.feature h3 {
  margin: 10px 0 6px;
}
.step p,
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.compare {
  max-width: 640px;
}
.compare td:not(:first-child),
.compare th:not(:first-child) {
  text-align: center;
  width: 90px;
}
.yes {
  color: var(--primary);
  font-weight: 600;
}
.no {
  color: var(--muted);
}
@media (max-width: 640px) {
  .compare thead {
    display: table-header-group;
  }
  .compare tr {
    display: table-row;
  }
  .compare td {
    display: table-cell;
    border-bottom: 1px solid var(--hairline);
    padding: 12px 6px;
  }
  .compare td:not(:first-child),
  .compare th:not(:first-child) {
    width: 64px;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 0 40px;
    gap: 36px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- faq */

details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 4px 18px;
  margin: 10px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  float: right;
  color: var(--muted);
  font-weight: 400;
}
details[open] summary::after {
  content: '–';
}
details > :not(summary) {
  margin-bottom: 14px;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 24px;
}
.site-footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 28px 16px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  font-size: 14.5px;
  color: var(--muted);
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-left: auto;
}
.site-footer a {
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 560px) {
  .site-nav a {
    padding: 8px 7px;
    font-size: 14px;
  }
  .site-footer__links {
    margin-left: 0;
  }
}

/* The mockups pin a theme regardless of the visitor's, alternating section by
   section, so everyone sees the app in both light and dark. */
.theme-light {
  --canvas: #efe9da;
  --surface: #f8f5ec;
  --ink: #2b2a24;
  --muted: #6b6759;
  --primary: #4b6b54;
  --on-primary: #f8f5ec;
  --primary-tint: rgba(75, 107, 84, 0.1);
  --gold: #b8863b;
  --gold-text: #7a5720;
  --caution: #a65a42;
  --hairline: rgba(43, 42, 36, 0.1);
  --on-caution: #efe9da;
  --denim-ink: #3f5c74;
  --denim-tint: rgba(91, 124, 153, 0.09);
  --denim-border: rgba(91, 124, 153, 0.22);
  color: var(--ink);
}
.theme-dark {
  --canvas: #1b211c;
  --surface: #232b24;
  --ink: #edeae0;
  --muted: #a6a296;
  --primary: #8cb89a;
  --on-primary: #1b211c;
  --primary-tint: rgba(140, 184, 154, 0.14);
  --gold: #d9a857;
  --gold-text: #d9a857;
  --caution: #c77e68;
  --hairline: rgba(237, 234, 224, 0.12);
  --on-caution: #1b211c;
  --denim-ink: #8fb0c7;
  --denim-tint: rgba(143, 176, 199, 0.12);
  --denim-border: rgba(143, 176, 199, 0.28);
  color: var(--ink);
}
.theme-light,
.theme-dark {
  outline: 1px solid rgba(128, 128, 128, 0.18);
  outline-offset: -1px;
}

/* ---------------------------------------------------------------- home, v2 */

.center {
  text-align: center;
}
.demo__progress {
  font: 500 12px/1 var(--mono);
  color: var(--muted);
  margin: -10px 0 4px;
}
.demo__group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo__group svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}
.demo__note {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 760px;
  margin: 28px auto 0;
}
.ba__col {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.ba__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 18px;
}
.ba__col li {
  padding: 8px 0 8px 34px;
  position: relative;
  color: var(--muted);
}
.ba__col li::before {
  content: '✕';
  position: absolute;
  left: 0;
  top: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 11px/1 var(--body);
  background: rgba(166, 90, 66, 0.12);
  color: #a65a42;
}
/* Same fixed look as the Pro card, in both themes. */
.ba__col--after {
  background: linear-gradient(160deg, #40604a 0%, #243529 100%);
  color: #f8f5ec;
  border: 0;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}
.ba__col--after li {
  color: #f8f5ec;
  font-weight: 600;
}
.ba__col--after li::before {
  content: '✓';
  background: #d9a857;
  color: #1b211c;
}
.ba__label {
  font: 500 12px/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.ba__col--after .ba__label {
  color: #d9a857;
}

.spot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.spot--flip > :first-child {
  order: 2;
}
.spot h2 {
  margin-top: 0;
  font-size: clamp(28px, 4vw, 36px);
}
.spot p.muted {
  font-size: 18px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 20px 50px -34px rgba(0, 0, 0, 0.35);
}
.panel__head {
  font: 500 20px/1.2 var(--display);
  margin: 0 0 14px;
}
.panel--stack {
  display: grid;
  gap: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.notif {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 15.5px;
  box-shadow: 0 16px 40px -30px rgba(0, 0, 0, 0.4);
}
.notif::before {
  content: '';
  grid-row: span 2;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: url('/assets/icon-512.png') center / cover;
}
.notif p {
  margin: 0;
}
.notif__when {
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 4px !important;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-size: 14.5px;
}
.chip svg {
  width: 15px;
  height: 15px;
}
.chip--pro {
  background: var(--primary);
  color: var(--on-primary);
  border-color: transparent;
  font-weight: 600;
}

.phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.phone {
  width: 210px;
  background: var(--canvas);
  border: 8px solid #0e110f;
  border-radius: 34px;
  min-height: 400px;
  padding: 12px 14px 18px;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.55);
}
.phones__sync svg {
  width: 34px;
  height: 34px;
  color: var(--primary);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.badges span {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-weight: 600;
  font-size: 15px;
}
.badges span::before {
  content: '✓ ';
  color: var(--primary);
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px;
  max-width: 820px;
  margin: 28px auto 0;
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 28px;
}
.plan__name {
  font: 500 30px/1 var(--display);
  margin: 0 0 6px;
}
.plan__tag {
  color: var(--muted);
  margin-bottom: 18px;
}
.plan__list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.plan__list li {
  padding: 7px 0 7px 34px;
  position: relative;
}
.plan__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 12px/1 var(--body);
  background: var(--primary-tint);
  color: var(--primary);
}
.plan__list b {
  font-weight: 600;
}

/* Pro keeps one fixed look in both themes: deep green, cream, gold. */
.plan--pro {
  position: relative;
  background: linear-gradient(160deg, #40604a 0%, #243529 100%);
  color: #f8f5ec;
  border: 0;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}
.plan--pro::after {
  content: 'Recommended';
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #d9a857;
  color: #1b211c;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.plan--pro .plan__tag,
.plan--pro .plan__fine {
  color: rgba(248, 245, 236, 0.75);
}
.plan--pro .plan__list li::before {
  background: #d9a857;
  color: #1b211c;
}
.plan__fine {
  font-size: 14px;
  margin: 12px 0 0;
}
.button--gold {
  background: #d9a857;
  color: #1b211c;
}

.cta {
  text-align: center;
  padding: 64px 0 40px;
  border-top: 1px solid var(--hairline);
}
.cta img {
  border-radius: 18px;
}
.cta h2 {
  margin: 16px 0 20px;
}

@media (max-width: 860px) {
  .ba,
  .spot,
  .plans {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .spot--flip > :first-child {
    order: 0;
  }
}
@media (max-width: 420px) {
  .phone {
    width: 120px;
  }
  .day {
    font-size: 17px;
  }
}

.demo__check {
  display: grid;
  place-items: center;
}
.demo__item--done .demo__check::after {
  content: '✓';
  color: var(--on-primary);
  font: 700 12px/1 var(--body);
}

/* A copy of the app's ForecastRow, expanded (features/weather). Denim is the
   app's weather-only colour. */
.fc {
  background: var(--surface);
  border: 1px solid var(--denim-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px -34px rgba(0, 0, 0, 0.35);
  color: var(--denim-ink);
}
.fc svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.fc__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
}
.fc__summary {
  flex: 1;
  font-size: 15px;
}
.fc__badge {
  background: var(--denim-tint);
  border-radius: 7px;
  padding: 3px 7px;
  font: 500 12px/1 var(--mono);
  text-transform: uppercase;
}
.fc .fc__chev {
  width: 14px;
  height: 14px;
}
.fc__strip {
  display: flex;
  justify-content: center;
  gap: 28px;
  border-top: 1px solid var(--denim-border);
  padding: 16px 16px 18px;
}
.fc__day {
  width: 50px;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.fc__day b {
  font: 500 11px/1 var(--mono);
  color: var(--muted);
  white-space: nowrap;
}
.fc__day i {
  font: 500 14px/1 var(--mono);
  font-style: normal;
}

/* The top half of a phone showing the real packing-list screen
   (features/packing-list). The bottom fades out, as if cut off. */
.ph {
  align-self: end;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  height: 600px;
  overflow: hidden;
  background: var(--canvas);
  border: 10px solid #0e110f;
  border-bottom: 0;
  border-radius: 48px 48px 0 0;
  padding: 14px 18px 0;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55);
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}
.ph__status {
  display: flex;
  justify-content: space-between;
  font: 500 13px/1 var(--mono);
  margin-bottom: 18px;
}
.ph__icons {
  display: flex;
  gap: 4px;
}
.ph__icons i {
  width: 16px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  opacity: 0.7;
}
.ph__eyebrow {
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.ph__title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font: 500 34px/1.1 var(--display);
  margin: 2px 0 14px;
}
.ph__title span:last-child {
  font: 400 20px/1 var(--body);
}
.ph .demo__bar {
  margin-bottom: 16px;
}
.ph .demo__bar span {
  width: 40%;
}
.fc--row {
  margin: 4px 0 18px;
  box-shadow: none;
}
.ph__group {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 10px;
}
.ph__group svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.ph__group span {
  flex: 1;
}
.ph__group .ph__chev {
  width: 14px;
  height: 14px;
}
.ph__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--surface);
  border-radius: 14px;
  font-size: 15.5px;
}
.ph__name {
  flex: 1;
}
.ph__name small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.ph__qty {
  font: 500 13px/1 var(--mono);
  color: var(--muted);
}
.ph__item--done {
  opacity: 0.55;
}
.hero {
  padding-bottom: 0;
}
@media (max-width: 860px) {
  .ph {
    height: 520px;
  }
}

.ph__item--done .demo__check {
  background: var(--primary);
  border-color: var(--primary);
}
.ph__item--done .demo__check::after {
  content: '✓';
  color: var(--on-primary);
  font: 700 12px/1 var(--body);
}

/* Hero, stacked: copy centred above a dark and a light phone. */
.hero--stack {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 40px;
}
.hero--stack .lede {
  margin-left: auto;
  margin-right: auto;
}
.hero--stack .hero__actions {
  justify-content: center;
}
.hero__phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
  text-align: left;
}
.hero__phones .ph {
  margin: 0;
  flex: 0 1 420px;
}
.hero__phones .ph + .ph {
  margin-top: 48px;
}
.hero__dots {
  display: none;
}
.hero--stack {
  grid-template-columns: minmax(0, 1fr);
}

/* Phones and small tablets: the two trips become a swipeable row, one phone
   at a time with the next peeking in, and dots saying which one you're on. */
@media (max-width: 720px) {
  .hero__phones {
    position: relative;
    justify-content: flex-start;
    gap: 14px;
    width: calc(100% + 32px);
    margin: 0 -16px;
    padding: 4px 11vw 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 11vw;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .hero__phones::-webkit-scrollbar {
    display: none;
  }
  .hero__phones .ph {
    flex: 0 0 78vw;
    max-width: 420px;
    scroll-snap-align: center;
  }
  .hero__phones .ph + .ph {
    margin-top: 0;
  }
  .hero__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: -24px;
  }
  .hero__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--muted);
    opacity: 0.4;
    cursor: pointer;
    transition:
      width 0.2s ease,
      opacity 0.2s ease;
  }
  .hero__dots button[aria-current='true'] {
    width: 24px;
    opacity: 1;
    background: var(--gold);
  }
}

/* The app's Templates tab (features/templates). */
.ph--short {
  height: 560px;
  max-width: 420px;
}
.ph__eyebrow--gap {
  margin-top: 22px;
}
.tpl {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  background: var(--surface);
  border-radius: 18px;
  font-size: 16px;
}
.tpl__icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  display: block;
}
.tpl__body {
  flex: 1;
}
.tpl__body small {
  display: block;
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.tpl__go {
  color: var(--muted);
}
.ph__rail {
  display: flex;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}
.ph__rail .chip {
  flex: none;
}
.ph__cta {
  margin-top: 18px;
  padding: 15px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  text-align: center;
  font-size: 16px;
}

.fc--row .fc__row {
  gap: 12px;
  padding: 0 18px;
  min-height: 56px;
}
.fc__summary {
  white-space: nowrap;
}
.fc__badge {
  flex: none;
}

.fc--alert {
  background: var(--denim-tint);
}
.fc__count {
  flex: none;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--caution);
  color: var(--on-caution);
  font: 600 12px/1 var(--mono);
}

/* ---------------------------------------------------------------- interactive mockups (site.js) */

[hidden] {
  display: none !important;
}
.eyebrow .pro {
  color: var(--gold);
  font-weight: 600;
}
.ph {
  position: relative;
}
:where(.ph__item, .ph__group, .fc__row, .tpl, .sg button, .sheet__done) {
  font: inherit;
  color: inherit;
  text-align: left;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ph__item {
  width: 100%;
  transition:
    opacity 0.2s ease,
    transform 0.12s ease;
}
.ph__item:active,
.tpl:active {
  transform: scale(0.98);
}
.ph__item--done {
  opacity: 0.55;
}
.ph__item--new {
  animation: ph-in 0.3s ease-out;
}
@keyframes ph-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.demo__check {
  transition: background 0.15s ease;
}
.ph__group {
  width: 100%;
  background: none;
  padding: 0;
}
.ph__chev {
  transition: transform 0.2s ease;
}
.ph__group[aria-expanded='false'] .ph__chev {
  transform: rotate(-90deg);
}
.fc__row {
  width: 100%;
  background: none;
}
.fc__row[aria-expanded='true'] .fc__chev {
  transform: rotate(180deg);
}
.fc .fc__chev {
  transition: transform 0.2s ease;
}
.fc--row .fc__strip {
  border-top: 1px solid var(--denim-border);
}
.tpl {
  width: 100%;
  color: var(--ink);
}
.ph__rail {
  overflow-x: auto;
  scrollbar-width: none;
}
.ph__rail::-webkit-scrollbar {
  display: none;
}
:is(.ph__item, .ph__group, .fc__row, .tpl, .sg button, .sheet__done):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ReviewSuggestionsSheet, drawn inside the phone. */
.ph:has(.sheet:not([hidden]))::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 82%;
  overflow-y: auto;
  z-index: 2;
  background: var(--canvas);
  border-radius: 24px 24px 0 0;
  padding: 10px 18px 18px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  animation: sheet-up 0.28s ease-out;
}
@keyframes sheet-up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}
.sheet__grabber {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.25;
  margin: 0 auto 14px;
}
.sheet__eyebrow {
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--denim-ink);
  margin: 0 0 6px;
}
.sheet__title {
  font: 500 22px/1.2 var(--display);
  margin: 0 0 6px;
}
.sheet__body,
.sheet__hint {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 14px;
}
.sheet__hint {
  text-align: center;
  font-size: 12px;
  margin: 6px 0 0;
}
.sg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  font-size: 15px;
}
.sg__text {
  flex: 1;
}
.sg__text small {
  display: block;
  font: 500 10.5px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--denim-ink);
  margin-top: 3px;
}
.sg__add {
  background: none;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
}
.sg__ignore {
  background: none;
  color: var(--muted);
  padding: 4px;
}
.sheet__done {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  color: var(--muted);
  padding: 10px;
}

/* Sync pair: a tick on one phone lands on the other. */
.phone .ph__status {
  margin-bottom: 14px;
  font-size: 11px;
}
.phone__title {
  font: 500 24px/1 var(--display);
  margin: 0 0 10px;
}
.phone .ph__eyebrow {
  font-size: 10px;
  margin-bottom: 6px;
}
.phone .demo__bar {
  margin-bottom: 14px;
}
.phone .ph__item {
  min-height: 0;
  padding: 10px;
  margin-bottom: 6px;
  background: var(--surface);
  border-radius: 12px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.phone .demo__check {
  width: 16px;
  height: 16px;
}
.phone .ph__item--done .demo__check {
  background: var(--primary);
  border-color: var(--primary);
}
.phone .ph__item--done .demo__check::after {
  content: '✓';
  color: var(--on-primary);
  font: 700 10px/1 var(--body);
}
.phones__sync.is-syncing svg {
  animation: spin 0.6s ease-in-out;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.phones__hint {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0 0;
}

/* Phones: the sync pair splits the width evenly, with tighter insides so
   item names stay on one line. */
@media (max-width: 520px) {
  .phones {
    gap: 6px;
  }
  .phone {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    width: auto;
    border-width: 6px;
    border-radius: 26px;
    padding: 10px 8px 14px;
  }
  .phone .ph__item {
    padding: 8px 7px;
    gap: 6px;
    font-size: 12px;
    white-space: nowrap;
  }
  .phone .demo__check {
    width: 14px;
    height: 14px;
  }
  .phone__title {
    font-size: 20px;
  }
  .phones__sync svg {
    width: 22px;
    height: 22px;
  }
  .tpl__body small {
    letter-spacing: 0.04em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ph__item,
  .ph__item--new,
  .sheet,
  .phones__sync.is-syncing svg {
    animation: none;
    transition: none;
  }
}
.phone .demo__bar span {
  width: 25%;
}
.ph:has(.sheet:not([hidden])) {
  -webkit-mask-image: none;
  mask-image: none;
}

/* Mockups and cards lift a little under the pointer. Pointer devices only,
   and never with reduced motion. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ph,
  .phone,
  .fc,
  .notif,
  .ba__col,
  .plan,
  .badges span {
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }
  .ph:hover,
  .phone:hover,
  .plan:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px -34px rgba(0, 0, 0, 0.6);
  }
  .fc:not(.fc--row):hover,
  .notif:hover,
  .ba__col:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.5);
  }
  .notif:hover {
    transform: translateX(6px);
  }
  .badges span:hover {
    transform: scale(1.05);
  }
  .ph__item:hover,
  .tpl:hover,
  .ph__group:hover {
    filter: brightness(1.06);
  }
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(217, 168, 87, 0.25);
  }
}

/* Every Google Play button pulses on its own, gently. */
@media (prefers-reduced-motion: no-preference) {
  .button--gold {
    animation: pulse 2s ease-in-out infinite;
  }
}

/* Narrow phones: the forecast row keeps its badge in view and shortens the
   summary instead. */
@media (max-width: 520px) {
  .fc--row .fc__row {
    gap: 8px;
    padding: 0 12px;
  }
  .fc__summary {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
  }
  .fc__badge {
    font-size: 11px;
  }
}

/* Narrow phones: the mockups shrink like a screenshot would, rather than
   wrapping their own text. */
@media (max-width: 520px) {
  .ph {
    border-width: 8px;
    border-radius: 40px 40px 0 0;
    padding: 12px 14px 0;
  }
  .ph__status {
    margin-bottom: 12px;
    font-size: 12px;
  }
  .ph__eyebrow,
  .ph__group {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .ph__title {
    font-size: 28px;
    margin-bottom: 10px;
  }
  .ph__item {
    min-height: 44px;
    padding: 8px 12px;
    margin-bottom: 6px;
    gap: 10px;
    font-size: 14px;
  }
  .ph__name small {
    font-size: 11.5px;
  }
  .fc--row {
    margin-bottom: 12px;
  }
  .fc--row .fc__row {
    min-height: 46px;
  }
  .tpl {
    padding: 12px 14px;
    gap: 12px;
    font-size: 15px;
  }
  .sheet {
    padding: 8px 14px 14px;
  }
  .sheet__title {
    font-size: 19px;
  }
  .sg {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* Tablets: before/after stay side by side, and the stacked sections keep
   their text and pictures at a readable width instead of stretching. */
@media (min-width: 641px) and (max-width: 860px) {
  .ba {
    grid-template-columns: 1fr 1fr;
  }
  .spot {
    justify-items: center;
  }
  .spot > * {
    width: 100%;
    max-width: 560px;
  }
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

/* The templates phone is short enough to show whole, so its main button isn't
   lost in the fade the tall phones use. */
.ph--short {
  height: auto;
  padding-bottom: 22px;
  border-bottom: 10px solid #0e110f;
  border-radius: 48px;
  -webkit-mask-image: none;
  mask-image: none;
}
@media (max-width: 520px) {
  .ph--short {
    border-bottom-width: 8px;
    border-radius: 40px;
  }
}

/* Grid columns never grow past their share because of something that won't
   wrap (the sync phones' item names were pushing a 320px screen sideways). */
.spot {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 860px) {
  .spot {
    grid-template-columns: minmax(0, 1fr);
  }
}
.sync,
.phones {
  min-width: 0;
}
.phone .ph__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The smallest phones: the header stays on one line. */
@media (max-width: 380px) {
  .site-header__inner {
    gap: 8px;
  }
  .brand {
    font-size: 19px;
    gap: 8px;
  }
  .brand svg {
    width: 26px;
    height: 26px;
  }
  .site-nav {
    flex-wrap: nowrap;
    gap: 0;
  }
  .site-nav a {
    padding: 6px;
    font-size: 13px;
  }
}
