/* PackWell website. The app's palette and type: a serif for the wordmark and headings (New York
   on Apple devices), the system sans for everything else. */

:root {
  --terracotta: #D95933;   /* the app's accent */
  --rust: #BA4726;
  --deep: #9E381F;
  --ember: #66210F;
  --apricot: #FFA880;
  --peach: #FADCC7;
  --cream: #FCF6EF;
  --ink: #1C1A19;
  --muted: #6B6460;
  --card: #FFFFFF;
  --line: rgba(28, 26, 25, 0.08);
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 17px/1.6 var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; }

/* MARK: Header */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(252, 246, 239, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font: 700 22px/1 var(--serif); color: var(--ink); text-decoration: none;
}
.brand img { border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a, .menu-panel a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--terracotta); }
.nav a[aria-current="page"] { color: var(--terracotta); }
.nav-cta {
  background: var(--terracotta); color: #fff !important;
  padding: 9px 18px; border-radius: 999px;
}
.nav-cta:hover { background: var(--rust); }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 40px; height: 40px;
  display: flex; flex-direction: column; justify-content: center; gap: 5px; align-items: center;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.menu-panel {
  position: absolute; right: 0; top: 48px; min-width: 210px;
  background: var(--card); border-radius: 16px; padding: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  display: flex; flex-direction: column;
}
.menu-panel a { padding: 12px 14px; border-radius: 10px; }
.menu-panel a:hover { background: var(--cream); }
.menu-panel .nav-cta { text-align: center; margin-top: 6px; }

/* MARK: Hero */

.hero {
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 168, 128, 0.45), transparent 55%),
    linear-gradient(160deg, var(--terracotta), var(--rust) 55%, var(--deep));
  color: #fff;
  /* Not clipped: the phone overlaps into the section below. */
  position: relative;
  z-index: 1;
}
.hero-inner {
  max-width: var(--max); margin: 0 auto; padding: 72px 24px 0;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: end;
}
.hero-copy { padding-bottom: 88px; text-align: center; }
.hero-mark { width: 150px; margin: 0 auto 18px; }
.hero h1 { font-size: clamp(56px, 8vw, 92px); letter-spacing: -0.01em; }
.hero-tagline { font-size: 24px; font-weight: 600; margin: 14px 0 8px; }
.hero-lede { font-size: 19px; opacity: 0.92; max-width: 440px; margin: 0 auto 30px; }
.hero-phone { display: flex; justify-content: center; }
.hero-phone .phone { width: 330px; margin-bottom: -120px; }

/* Prelaunch splash: the hero alone, centered, with no phone overlapping the section below. */
.hero.is-splash .hero-inner { grid-template-columns: 1fr; padding-top: 96px; }
.hero.is-splash .hero-copy { padding-bottom: 104px; }
.hero.is-splash .hero-lede { max-width: 520px; margin-bottom: 26px; }
.hero .splash-soon { color: var(--peach); margin: 0; }
.features.is-splash { padding-top: 88px; }

/* MARK: Phones — the real app screens in a device frame */

.phone {
  background: #111;
  border-radius: 54px;
  padding: 11px;
  box-shadow: 0 40px 70px rgba(60, 20, 8, 0.35), inset 0 0 0 1.5px rgba(255, 255, 255, 0.18);
}
.phone img { border-radius: 44px; width: 100%; }
.phone-small { width: 290px; flex-shrink: 0; border-radius: 48px; padding: 10px; }
.phone-small img { border-radius: 39px; }

/* MARK: Store badges — Apple's and Google's official artwork, same height */

.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: flex-start; }
.store-badge { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.store-badge img { height: 48px; width: auto; }
.store-soon { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; opacity: 0.9; }
.hero .store-soon { color: #fff; }
.cta .store-soon { color: var(--muted); }

/* MARK: Features */

.features { max-width: var(--max); margin: 0 auto; padding: 170px 24px 40px; }
.section-title { text-align: center; font-size: clamp(32px, 4.5vw, 46px); margin-bottom: 44px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--card); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(102, 33, 15, 0.06); border: 1px solid var(--line);
}
.feature-card img { margin-bottom: 18px; }
.feature-card h3 { font-size: 21px; margin-bottom: 10px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 16px; }

/* MARK: Showcase */

.showcase { max-width: 980px; margin: 0 auto; padding: 40px 24px 20px; }
.showcase-row {
  display: flex; align-items: center; gap: 72px; padding: 56px 0;
}
.showcase-row.is-flipped { flex-direction: row-reverse; }
.showcase-copy { flex: 1; }
.eyebrow, .showcase-copy .eyebrow {
  margin: 0 0 10px; color: var(--terracotta);
  font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.showcase-copy h2 { font-size: clamp(30px, 3.8vw, 42px); margin-bottom: 16px; }
.showcase-copy p { font-size: 18px; color: var(--muted); margin: 0; }

/* MARK: Call to action */

.cta { max-width: var(--max); margin: 0 auto; padding: 40px 24px 96px; }
.cta-card {
  display: flex; align-items: center; gap: 28px;
  background: linear-gradient(135deg, #fff, var(--peach));
  border-radius: 28px; padding: 40px 44px; border: 1px solid var(--line);
}
.cta-card > img { flex-shrink: 0; }
.cta-copy { flex: 1; }
.cta-copy h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.cta-copy p { margin: 0; color: var(--muted); }

/* MARK: Documents — support, privacy, delete account */

.document {
  max-width: 760px; margin: 0 auto; padding: 64px 24px 96px;
}
.document h1 { font-size: clamp(36px, 5vw, 50px); margin-bottom: 18px; }
.document h2 { font-size: 27px; margin: 44px 0 12px; }
.document h3 { font-size: 21px; margin: 28px 0 8px; }
.document p, .document li { color: #3A3532; }
.document ul { padding-left: 22px; }
.document li { margin: 6px 0; }
.table-wrap { overflow-x: auto; margin: 18px 0; }
.document table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); border-radius: 14px; overflow: hidden; }
.document th, .document td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.document th { background: var(--peach); font-weight: 600; }

/* MARK: Footer */

.site-footer { background: linear-gradient(160deg, var(--rust), var(--deep)); color: #fff; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 44px 24px 36px;
  display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center;
}
.brand-light { color: #fff; }
.brand-light img { border-radius: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: flex-end; }
.footer-nav a { color: #fff; text-decoration: none; opacity: 0.92; font-size: 15px; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-fine { grid-column: 1 / -1; margin: 12px 0 0; font-size: 13px; opacity: 0.75; }

/* MARK: Smaller screens */

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-row { gap: 44px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; gap: 0; }
  .hero-copy { padding-bottom: 40px; }
  .hero-phone .phone { width: 270px; }
  .features { padding-top: 160px; }
  .hero.is-splash .hero-inner { padding-top: 64px; }
  .hero.is-splash .hero-copy { padding-bottom: 72px; }
  .features.is-splash { padding-top: 64px; }
  .feature-grid { grid-template-columns: 1fr; }
  .showcase-row, .showcase-row.is-flipped { flex-direction: column; gap: 32px; padding: 40px 0; text-align: center; }
  .phone-small { width: 250px; }
  .cta-card { flex-direction: column; text-align: center; padding: 36px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}
