/* PackBooks - packbooks.com
 * Plain static CSS, zero external fonts, WCAG AA contrast, 200% zoom friendly.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --navy: #14213D;
  --navy-deep: #0E172B;
  --navy-soft: #1C2D50;
  --mango: #E86A17;
  --mango-ink: #BD4705;
  --mango-hover: #A33C03;
  --ivory: #F7F3EA;
  --white: #FFFFFF;
  --ink: #14213D;
  --ink-muted: #3B4963;
  --placeholder: #526075;
  --border: #E5DEC9;
  --border-light: #E2E8F0;
  --border-strong: #C9BFA5;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(20, 33, 61, 0.06);
  --shadow-md: 0 18px 42px rgba(20, 33, 61, 0.11);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem; /* 18px body text */
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--white);
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--mango-ink);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--mango-hover);
}

:focus-visible {
  outline: 3px solid var(--mango-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
}

/* Container */
.container {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo {
  height: 2.75rem;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.nav-link {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}

.nav-link:hover {
  background-color: var(--ivory);
  color: var(--navy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-sm {
  font-size: 0.94rem;
  padding: 0.55rem 1rem;
}

.btn-primary {
  background-color: var(--mango-ink);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--mango-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background-color: var(--navy);
  color: var(--white);
}

/* Band backgrounds and generous 96px rhythm */
.band-white {
  background-color: var(--white);
  color: var(--ink);
}

.band-ivory {
  background-color: var(--ivory);
  color: var(--ink);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.band-navy {
  background-color: var(--navy);
  color: var(--white);
}

.section {
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.section-header {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
}

.section-label {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
}

.band-navy .section-label {
  color: #FFB074;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.band-navy .section-title {
  color: var(--white);
}

.section-sub {
  margin: 0;
  font-size: 1.125rem;
  color: var(--ink-muted);
}

.band-navy .section-sub {
  color: #DCE5F2;
}

/* Hero */
.hero {
  padding: clamp(3.5rem, 6.5vw, 5.5rem) 0 clamp(4rem, 7vw, 6rem);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}

.hero-lockup {
  width: min(100%, 19rem);
  height: auto;
  margin-bottom: 1.35rem;
}

.hero-title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.5rem, 5vw, 4rem); /* 64px at desktop */
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--navy);
}

.hero-lead {
  margin: 0 0 1.85rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 34rem;
}

.hero-form {
  max-width: 34rem;
}

.hero-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-form-row input {
  flex: 1 1 14rem;
  min-width: 0;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--navy);
}

.hero-form-row input::placeholder {
  color: var(--placeholder);
}

.hero-form-row input:focus-visible {
  border-color: var(--mango-ink);
  outline: 3px solid rgba(189, 71, 5, 0.25);
  outline-offset: 1px;
}

.waitlist-privacy-note {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.form-status {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background-color: var(--ivory);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--mango-ink);
  font-size: 0.95rem;
  color: var(--navy);
}

.form-status[hidden] {
  display: none;
}

/* Device frames */
.device-frame {
  margin: 0;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.device-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background-color: var(--navy);
  color: #DCE5F2;
}

.device-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.28);
}

.device-bar {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #DCE5F2;
}

.device-frame img {
  width: 100%;
}

.device-phone {
  max-width: 18.5rem;
  margin-inline: auto;
  border: 8px solid var(--navy);
  border-radius: 34px;
  background-color: var(--navy);
  box-shadow: var(--shadow-md);
}

.phone-notch {
  width: 5.5rem;
  height: 0.45rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.22);
  margin: 0.55rem auto;
}

.device-phone img {
  border-radius: 0 0 24px 24px;
}

/* Product showcase */
.showcase-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
}

.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.showcase-row-reverse .showcase-copy {
  order: 2;
}

.showcase-row-reverse .showcase-media {
  order: 1;
}

.showcase-kicker {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mango-ink);
}

.showcase-copy h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.showcase-copy p {
  margin: 0;
  font-size: 1.125rem;
  color: var(--ink-muted);
}

.showcase-media-compact {
  max-width: 24rem;
  margin-inline: auto;
  width: 100%;
}

.showcase-media-phone {
  display: flex;
  justify-content: center;
}

/* Concise capabilities list */
.capability-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.5rem 2.25rem;
}

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.capability-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 12px;
  background-color: var(--ivory);
  border: 1px solid var(--border);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.capability-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.capability-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}

.capability-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* Disclosures */
.disclosure-group {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}

.disclosure {
  background-color: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.disclosure summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.disclosure summary::-webkit-details-marker {
  display: none;
}

.disclosure summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--mango-ink);
  flex-shrink: 0;
}

.disclosure[open] summary::after {
  content: "-";
}

.disclosure p {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  color: var(--ink-muted);
}

/* Navy trust band */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem;
}

.trust-card {
  background-color: var(--navy-soft);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.trust-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.trust-card p {
  margin: 0;
  font-size: 1.05rem;
  color: #DCE5F2;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.plan-card {
  position: relative;
  background-color: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.plan-card-featured {
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-md);
  padding-top: clamp(2.5rem, 4.2vw, 3.1rem);
}

.plan-ribbon {
  position: absolute;
  top: 0;
  right: 1.5rem;
  background-color: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.9rem;
  border-radius: 0 0 10px 10px;
}

.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.plan-name {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
}

.plan-tag {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy);
  background-color: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

.plan-price {
  margin: 0.5rem 0 0.65rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.plan-amount {
  font-size: 3rem; /* 48px price display */
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.plan-cadence {
  font-size: 1rem;
  color: var(--ink-muted);
}

.plan-summary {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--ink-muted);
}

.plan-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 1rem;
  color: var(--navy);
}

.plan-check {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--navy);
}

.plan-details {
  margin: 0 0 1.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-light);
  flex: 1;
}

.plan-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--navy);
}

.plan-details ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.plan-cta {
  width: 100%;
  margin-top: auto;
}

/* Bottom FAQ + Waitlist band */
.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.waitlist-card {
  background-color: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.waitlist-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
}

.waitlist-sub {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--ink-muted);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.field-hint {
  font-weight: 400;
  color: var(--ink-muted);
}

.field input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--navy);
}

.field input::placeholder {
  color: var(--placeholder);
}

.field input:focus-visible {
  border-color: var(--mango-ink);
  outline: 3px solid rgba(189, 71, 5, 0.25);
  outline-offset: 1px;
}

/* Footer */
.site-footer {
  background-color: var(--navy-deep);
  color: #D6DFEC;
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-logo-wrap {
  display: inline-block;
  background-color: var(--white);
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  text-decoration: none;
}

.footer-logo {
  height: 2.5rem;
  width: auto;
}

.footer-parent {
  margin: 0;
  font-size: 0.95rem;
  color: #D6DFEC;
}

.footer-parent a {
  color: #FFB074;
}

.footer-parent a:hover {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.footer-links a {
  color: #E2E8F0;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-placeholder {
  font-size: 0.92rem;
  color: #B8C7DE;
}

.footer-links a:focus-visible,
.footer-parent a:focus-visible,
.footer-logo-wrap:focus-visible {
  outline-color: #FFB074;
}

.footer-meta {
  width: 100%;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: #C2CEE0;
}

/* Legal and support pages */
.legal-main {
  background-color: var(--white);
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.legal {
  max-width: 50rem;
}

.legal h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--navy);
}

.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--navy);
  scroll-margin-top: 5rem;
}

.legal h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.15rem;
  color: var(--navy);
  scroll-margin-top: 5rem;
}

.legal p,
.legal li {
  color: var(--ink);
}

.legal ul,
.legal ol {
  padding-left: 1.4rem;
}

.legal li + li {
  margin-top: 0.5rem;
}

.legal code {
  font-size: 0.92em;
  background-color: var(--ivory);
  padding: 0.05rem 0.35rem;
  border-radius: 6px;
}

.legal-lead {
  font-size: 1.2rem;
  color: var(--ink-muted);
}

.legal-meta {
  margin: 0.15rem 0;
  font-size: 0.98rem;
  color: var(--ink-muted);
}

.draft-banner {
  margin: 0 0 2rem;
  padding: 0.9rem 1.1rem;
  background-color: var(--ivory);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--mango-ink);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

mark.draft-note {
  background-color: #FFF0C2;
  color: var(--navy);
  padding: 0 0.2rem;
  border-radius: 4px;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-wrap th,
.table-wrap td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--border-light);
}

.table-wrap th {
  background-color: var(--ivory);
  color: var(--navy);
}

.support-card {
  margin: 1.5rem 0 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background-color: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.support-card h2 {
  margin-top: 0;
}

.support-list {
  display: grid;
  grid-template-columns: minmax(7rem, auto) 1fr;
  gap: 0.6rem 1.25rem;
  margin: 0;
}

.support-list dt {
  font-weight: 700;
  color: var(--navy);
}

.support-list dd {
  margin: 0;
}

@media (max-width: 34rem) {
  .support-list {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .support-list dd {
    margin-bottom: 0.6rem;
  }
}

/* Responsive adjustments */
@media (max-width: 56rem) {
  .hero-layout,
  .showcase-row,
  .pricing-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .showcase-row-reverse .showcase-copy,
  .showcase-row-reverse .showcase-media {
    order: initial;
  }

  .hero-lead,
  .hero-form {
    max-width: none;
  }
}

@media (max-width: 42rem) {
  .site-header {
    position: static;
  }

  .header-inner {
    padding: 0.6rem 0;
  }

  .header-logo {
    height: 2.2rem;
  }

  /* Collapse header nav to a single button on phones so 390px is never cramped */
  .site-nav .nav-link {
    display: none;
  }

  .hero-form-row .btn {
    width: 100%;
  }
}

@media (max-height: 500px) {
  .site-header {
    position: static;
  }

  .header-inner {
    padding: 0.45rem 0;
  }

  .header-logo {
    height: 2rem;
  }

  .hero {
    padding: 1rem 0 2.5rem;
  }

  .hero-lockup {
    display: none;
  }

  .hero-title {
    font-size: clamp(1.85rem, 3.8vw, 2.35rem);
    margin-bottom: 0.5rem;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 0.9rem;
  }

  .hero-form-row input {
    padding: 0.65rem 0.9rem;
  }

  .hero-form-row .btn {
    padding: 0.65rem 1.25rem;
  }
}

@media (max-height: 500px) and (min-width: 34rem) {
  .hero-form-row {
    flex-wrap: nowrap;
  }

  .hero-form-row .btn {
    width: auto;
  }
}

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

  .btn,
  .nav-link {
    transition: none;
  }

  .btn-primary:hover {
    transform: none;
  }
}
