* { box-sizing: border-box; }

:root {
  --ink: #132544;
  --navy: #1d4696;
  --navy-dark: #153473;
  --sky: #e4edfc;
  --paper: #fcfaf5;
  --mist: #f2f5fb;
  --soft: #4a5b7c;
  --gold: #f6c445;
  --gold-hover: #ffd363;
  --coral: #d64c63;
  --line: #dce3f0;
  --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 Inter, system-ui, sans-serif;
  overflow-x: clip;
}

h1, h2, h3, .pg-title, summary {
  font-family: var(--display);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

a { color: inherit; }
:focus-visible {
  outline: 3px solid #7ca4ff;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(16px, 5vw, 72px);
  background: var(--sky);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 22px var(--display);
  text-decoration: none;
  letter-spacing: -0.02em;
  min-height: 44px;
}

.nav nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}

.nav nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.nav nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 12px;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn:hover { background: var(--navy-dark); }
.btn:active { transform: translateY(1px); }
.btn.big { font-size: 17px; padding: 14px 28px; min-height: 52px; }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { background: var(--gold-hover); }

/* Hero & Open Yearbook Spread */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  background: linear-gradient(180deg, var(--sky) 0%, var(--paper) 100%);
  padding: clamp(36px, 5.5vw, 84px) clamp(16px, 5vw, 72px) clamp(56px, 7vw, 104px);
}

.hero h1 { font-size: clamp(38px, 4.6vw, 68px); }
.lead p {
  font-size: clamp(17px, 1.4vw, 19px);
  color: #324468;
  max-width: 34em;
  margin: 20px 0 28px;
}

.spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: rotate(-1.5deg);
  border-radius: 14px;
  box-shadow: 0 22px 38px -12px rgba(19, 37, 68, 0.22), 0 4px 12px rgba(19, 37, 68, 0.08);
}

.pg {
  background: #fff;
  aspect-ratio: 8.5 / 11;
  padding: 7%;
  position: relative;
  min-width: 0;
}

.left {
  border-radius: 14px 2px 2px 14px;
  box-shadow: inset -18px 0 22px -18px rgba(19, 37, 68, 0.35);
  display: grid;
  grid-template: auto 1.45fr 1fr auto / 1fr 1fr;
  gap: 8px;
}

.right {
  border-radius: 2px 14px 14px 2px;
  box-shadow: inset 18px 0 22px -18px rgba(19, 37, 68, 0.35);
  display: flex;
  flex-direction: column;
}

.pg .pg-title {
  font-weight: 700;
  font-size: clamp(16px, 2vw, 28px);
  color: var(--navy);
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.photo-card {
  border: 2px solid #f1ece1;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(19, 37, 68, 0.08);
}

.pg svg {
  display: block;
  width: 100%;
  height: 100%;
}

.a { grid-column: 1 / -1; min-height: 0; }
.b, .c { min-height: 0; }

.pg em {
  font: 600 clamp(15px, 1.9vw, 26px) / 1.05 Caveat, cursive;
  color: var(--navy);
}

.left em {
  grid-column: 1 / -1;
  align-self: end;
  padding-top: 2px;
}

.faces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 6px;
}

.faces span {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  border: 1.5px solid #f1ece1;
}

.one, .two {
  position: absolute;
  white-space: nowrap;
}

.one {
  left: 10%;
  bottom: 16%;
  transform: rotate(-6deg);
}

.two {
  right: 8%;
  bottom: 6%;
  color: var(--coral);
  transform: rotate(3.5deg);
}

/* Main Content Sections */
.how, .compare, .faq {
  padding: clamp(56px, 7vw, 96px) clamp(16px, 5vw, 72px);
  max-width: 1440px;
  margin: auto;
}

section > h2, .privacy h2 {
  font-size: clamp(28px, 3.5vw, 46px);
}

.how ol {
  list-style: none;
  counter-reset: n;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 0;
  margin: 40px 0 0;
}

.how li {
  counter-increment: n;
  border-top: 3px solid var(--navy);
  padding-top: 16px;
}

.how li::before {
  content: counter(n);
  font: 600 38px / 1 Caveat, cursive;
  color: var(--navy);
}

.how h3 { font-size: 21px; margin: 6px 0 8px; }
.how p { margin: 0; color: var(--soft); }

/* Privacy Band */
.privacy {
  background: var(--ink);
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: clamp(48px, 6vw, 84px) clamp(16px, 5vw, 72px);
}

.privacy p { color: #c7d5f0; font-size: 18px; max-width: 32em; }
.privacy ul { margin: 0; padding: 0; list-style: none; }
.privacy li { padding: 14px 0; border-bottom: 1px solid #304675; font-weight: 500; }
.privacy li:last-child { border: 0; }

/* Comparison Table */
.scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  text-align: left;
}

th, td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

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

thead th { color: var(--soft); font-weight: 600; font-size: 15px; }
td:last-child, thead th:last-child { background: var(--mist); color: var(--ink); font-weight: 600; }
tbody td:nth-child(2) { color: var(--soft); }

/* FAQ Accordion */
.faq {
  padding-top: 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}

details { border-bottom: 1px solid var(--line); }

summary {
  cursor: pointer;
  padding: 18px 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 20px;
  font-weight: 700;
  list-style: none;
  transition: color 0.15s ease;
}

summary:hover { color: var(--navy); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--navy); flex-shrink: 0; }
details[open] summary::after { content: "–"; }

details p {
  margin: 0 0 20px;
  color: var(--soft);
  max-width: 62ch;
}

/* Closing CTA & Footer */
.end {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: clamp(56px, 7vw, 96px) 16px;
}

.end h2 { margin-bottom: 28px; }

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px clamp(16px, 5vw, 72px);
  font-size: 15px;
  color: var(--soft);
}

/* Responsive Breakpoints */
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; gap: 8px 16px; }
  .nav .btn { margin-left: auto; }
  .nav nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    border-top: 1px solid rgba(19, 37, 68, 0.1);
    padding-top: 4px;
  }
  .hero, .privacy, .faq { grid-template-columns: minmax(0, 1fr); }
  .how ol { grid-template-columns: 1fr 1fr; }
  .faq { gap: 20px; }
}

@media (max-width: 520px) {
  .how ol { grid-template-columns: 1fr; }
  .spread { transform: none; }
  .one { font-size: 13px; bottom: 13%; left: 7%; }
  .two { font-size: 13px; bottom: 4%; right: 6%; }
}

.hero, .privacy {
  padding-left: max(clamp(16px, 5vw, 72px), calc(50vw - 648px));
  padding-right: max(clamp(16px, 5vw, 72px), calc(50vw - 648px));
}

/* Pricing */
.pricing { padding: 0 clamp(16px, 5vw, 72px) clamp(56px, 7vw, 96px); max-width: 1440px; margin: auto; }
.pricing-lead { color: var(--soft); font-size: 18px; margin: 14px 0 0; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; }
.plan:first-child { border: 2px solid var(--navy); }
.plan h3 { font-size: 21px; }
.plan .price { font: 700 32px/1.1 var(--display); color: var(--navy); margin: 14px 0 0; letter-spacing: -0.02em; }
.plan .price span { font: 500 16px Inter, system-ui, sans-serif; color: var(--soft); letter-spacing: 0; }
.plan ul { padding-left: 20px; margin: 20px 0 24px; color: var(--soft); }
.plan li { margin: 6px 0; }
.plan .btn, .plan .soon { margin-top: auto; }
.plan .soon { margin-bottom: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--mist); color: var(--soft); font-weight: 600; font-size: 15px; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .nav nav { font-size: 14px; gap: 10px; } }

/* Privacy and terms */
.legal { max-width: 760px; margin: auto; padding: clamp(36px, 5vw, 72px) clamp(16px, 5vw, 32px) 64px; }
.legal h1 { font-size: clamp(34px, 4vw, 48px); }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal .updated { color: var(--soft); margin: 10px 0 28px; }
.legal p, .legal li { color: #324468; }
.legal li { margin: 8px 0; }
.legal a, footer a { color: var(--navy); }
