:root {
  --navy: #0B2245;
  --teal: #347472;
  --gold: #C9930A;
  --body: #5C5C5C;
  --bg: #FAFAF6;
  --white: #FFFFFF;
  --cream: #FDF3D0;
  --light-teal: #D4EDEA;
  --light-blue: #D6E8F5;
  --border: #D6D0C4;
  --muted: #888888;

  --display: Georgia, "Times New Roman", serif;
  --text: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--navy); margin: 0 0 .5em; line-height: 1.15; }
h1, h2 { font-family: var(--display); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.gold { color: var(--gold); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons: 44px minimum tap height */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem var(--text); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: #163563; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #A97B08; }
.btn[aria-disabled="true"], .btn:disabled {
  background: #E9E6DE; color: var(--muted); border-color: transparent; cursor: default;
}

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 250, 246, .95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { font: 700 1.6rem var(--display); color: var(--navy); text-decoration: none; }
.logo span { color: var(--teal); }
.topnav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.topnav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--navy); text-decoration: none; font-weight: 700; font-size: .95rem; border-radius: 8px;
}
.topnav a:hover { background: var(--light-blue); }

/* Hero */
.hero { padding: 56px 0 48px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; top: -120px; right: -120px;
  width: 340px; height: 340px; border-radius: 50%; background: var(--navy); opacity: .06;
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.series {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); font-weight: 700; margin-bottom: .8em;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.lede { font-size: 1.2rem; max-width: 34ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 130px; padding: 18px; border-radius: var(--radius);
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11, 34, 69, .12); }
.tile-name { font: 700 1.25rem var(--display); }
.tile-sub { font-size: .9rem; opacity: .85; }
.tile-courses { background: var(--navy); color: var(--white); }
.tile-planners { background: var(--teal); color: var(--white); }
.tile-books { background: var(--cream); color: var(--navy); }
.tile-prompts { background: var(--light-teal); color: var(--navy); }

/* Why buy here */
.why { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item { border-left: 3px solid var(--gold); padding-left: 14px; }
.why-item h3 { margin-bottom: .25em; }
.why-item p { margin: 0; font-size: .95rem; }

/* Shop */
.shop { padding: 56px 0; scroll-margin-top: 64px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.filter {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--white); color: var(--navy);
  font: 700 .95rem var(--text); cursor: pointer;
}
.filter:hover { border-color: var(--navy); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.count { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.cover {
  position: relative; height: 150px; padding: 16px;
  display: flex; align-items: flex-end;
}
.cover-title { font: 700 1.15rem/1.2 var(--display); max-width: 90%; }
.cover-courses { background: var(--navy); color: var(--white); }
.cover-planners { background: var(--teal); color: var(--white); }
.cover-books { background: var(--cream); color: var(--navy); }
.cover-prompts { background: var(--light-teal); color: var(--navy); }
.cover-teams { background: var(--light-blue); color: var(--navy); }
.cover-kind {
  position: absolute; top: 14px; left: 16px;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; opacity: .85;
}
.badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold); color: var(--white);
  font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.badge-soon { background: var(--white); color: var(--navy); border: 1px solid var(--border); }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card-body h3 { font: 700 1.1rem/1.25 var(--display); margin-bottom: .35em; }
.card-blurb { font-size: .98rem; margin-bottom: .5em; }
.card-format { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font: 700 1.25rem var(--display); color: var(--navy); }
.price-tba { font: 400 .9rem var(--text); color: var(--muted); }
.price-note { display: block; font: 400 .8rem var(--text); color: var(--muted); }
.card .btn { padding: 8px 18px; }

/* Free planner */
.free { background: var(--navy); color: #DCE3EE; padding: 56px 0; scroll-margin-top: 64px; }
.free h2 { color: var(--white); }
.free-inner { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; }
.free-cover {
  aspect-ratio: 8.5 / 11; border-radius: 6px; background: var(--teal);
  border-bottom: 6px solid var(--gold);
  display: flex; flex-direction: column; justify-content: space-between; padding: 22px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
}
.free-cover-label {
  align-self: flex-start; background: var(--gold); color: var(--white);
  font-weight: 700; font-size: .8rem; padding: 3px 12px; border-radius: 999px;
}
.free-cover-title { font: 700 1.5rem/1.2 var(--display); color: var(--white); }
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.signup input {
  flex: 1 1 200px; min-height: 48px; padding: 0 16px;
  border-radius: 999px; border: 1px solid transparent; font: 1rem var(--text);
}
.signup-note { font-size: .9rem; margin-top: 12px; color: #B9C4D6; }

/* Also on */
.also { padding: 48px 0; text-align: center; }
.also p { max-width: 52ch; margin: 0 auto 20px; }
.also-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.also-link {
  display: flex; flex-direction: column; min-width: 150px; min-height: 44px; padding: 12px 20px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--white);
  text-decoration: none; color: var(--navy);
}
.also-link:hover { border-color: var(--navy); }
.also-link strong { font-family: var(--display); font-size: 1.1rem; }
.also-link span { font-size: .85rem; color: var(--muted); }

/* About */
.about { background: var(--white); border-top: 1px solid var(--border); padding: 56px 0; scroll-margin-top: 64px; }
.about-inner { display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: center; max-width: 860px; }
.about-photo {
  width: 180px; height: 180px; border-radius: 50%; overflow: hidden;
  background: var(--light-blue); display: grid; place-items: center;
  font: 700 2.6rem var(--display); color: var(--navy);
  border: 4px solid var(--gold);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.footer { border-top: 3px solid var(--gold); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-logo { font: 700 1.2rem var(--display); color: var(--navy); margin: 0; }
.footer-tag { font-size: .85rem; margin: 0; }
.footer-links { display: flex; gap: 4px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: .9rem; color: var(--navy); }

/* Tablet and phone */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 8px; }
  .topnav { justify-content: flex-start; margin-left: -12px; }
  .topnav a { padding: 0 10px; font-size: .9rem; }
  .hero { padding: 36px 0; }
  .tile { min-height: 104px; padding: 14px; }
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .free-inner, .about-inner { grid-template-columns: 1fr; }
  .free-cover { max-width: 180px; }
  .about-photo { width: 140px; height: 140px; }
  .signup .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
