/* Legal English Apps — product site */

:root {
  --ink: #1b2333;
  --ink-soft: #4a5266;
  --paper: #faf8f4;
  --paper-alt: #f2efe8;
  --card: #ffffff;
  --line: #e5e0d5;
  --navy: #22315a;
  --navy-deep: #16213d;
  --gold: #a9812f;
  --gold-deep: #8a6a24;
  --green-soft: #eef3ee;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27,35,51,0.04), 0 8px 24px rgba(27,35,51,0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef0f4;
    --ink-soft: #b7bccb;
    --paper: #14182280;
    --paper: #12151d;
    --paper-alt: #1a1f2b;
    --card: #191d28;
    --line: #2a2f3d;
    --navy: #7f95c9;
    --navy-deep: #cdd8f2;
    --gold: #d4ac5c;
    --gold-deep: #e6c07a;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.brand-name {
  font-family: Georgia, "Iowan Old Style", serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav a:hover { color: var(--ink); }

/* Hero */

.hero {
  padding: 72px 0 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0 26px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-note.center { text-align: center; margin-top: 8px; }

.hero-art {
  display: flex;
  justify-content: center;
}

.app-icon-large {
  width: 200px;
  height: 200px;
  border-radius: 44px;
  box-shadow: var(--shadow);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--navy-deep);
  color: #fff;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(22,33,61,0.25); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--ink-soft); }

.btn-disabled {
  background: var(--paper-alt);
  color: var(--ink-soft);
  border-color: var(--line);
  cursor: default;
  justify-content: center;
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}

/* Store badges — official artwork, unmodified (see STORE-BADGES.md).
   Apple: min 40px height onscreen.  The Play PNG ships with built-in
   padding, so its CSS height is larger to match visible badge heights
   (Google requires Play >= other badges when shown together). */

.store-badges {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* In cards the badges sit side by side; 40px is Apple's onscreen
   minimum and keeps the pair inside a desktop card column. */
.store-badges--card {
  margin-top: 18px;
  gap: 12px;
}

.store-badges--card .store-badge img {
  height: 40px;
}

.store-badges--card .store-badge--play img {
  height: 60px;
  margin: -10px;
}

.store-badge {
  position: relative;
  display: inline-flex;
  text-decoration: none;
}

.store-badge img {
  display: block;
  height: 48px;
  width: auto;
}

/* The Play PNG's visible badge is 564x168 inside a 646x250 canvas
   (41px transparent padding all around).  72px total height renders
   the visible badge at ~48px, matching the Apple badge; the negative
   margins cancel the padding in the layout. */
.store-badge--play img {
  height: 72px;
  margin: -12px;
}

.store-badge--soon img {
  filter: grayscale(1) opacity(0.5);
}

.store-badge-note {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Trust strip */

.trust-strip {
  background: var(--navy-deep);
  color: #eef1f8;
  padding: 32px 0;
}

.trust-strip p {
  margin: 0;
  font-size: 17px;
  max-width: 74ch;
}

.trust-strip strong { color: var(--gold); }

/* Sections */

section h2 {
  font-size: 30px;
  text-align: center;
}

.section-lede {
  text-align: center;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 auto 40px;
  font-size: 16px;
}

.apps-section, .pricing-section, .features-section {
  padding: 72px 0;
}

.pricing-section { background: var(--paper-alt); }

/* App cards */

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.app-card--live { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }

.app-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.app-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

.app-card-icon--mono {
  padding: 6px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
}

.app-card h3 {
  font-size: 19px;
  margin: 4px 0 0;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
}

.badge-live { background: #e9f2e6; color: #3c6b2e; }
.badge-soon { background: var(--paper-alt); color: var(--ink-soft); border: 1px solid var(--line); }

.app-desc {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 16px;
}

.topic-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink);
  flex-grow: 1;
}

.topic-list li { margin-bottom: 6px; }

.in-development {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 40px;
}

.in-development strong { color: var(--ink); }

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 8px;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.pricing-card--featured {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.price {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 6px;
}

.pricing-card h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.pricing-card p:last-child {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
}

/* Features */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.feature p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

/* Legal pages (privacy policy etc.) */

.legal-section {
  padding: 56px 0 72px;
}

.legal-content {
  max-width: 720px;
}

.legal-content h1 {
  font-size: 34px;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 28px;
}

.legal-content h2 {
  font-size: 22px;
  margin-top: 36px;
}

.legal-content h3 {
  font-size: 17px;
  margin-top: 26px;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  font-size: 16px;
}

.legal-content strong { color: var(--ink); }

.legal-content ul {
  padding-left: 22px;
}

.legal-content li { margin-bottom: 6px; }

.legal-content a { color: var(--navy); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
}

.footer-inner { text-align: center; }

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.brand-mark--small { width: 18px; height: 18px; }

.disclaimer {
  font-size: 12px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 auto 10px;
}

.footer-links {
  font-size: 12px;
  margin: 0 0 10px;
}

.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }

.copyright {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .app-icon-large { width: 140px; height: 140px; border-radius: 32px; }
  .app-grid, .pricing-grid, .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .site-nav { gap: 16px; font-size: 14px; }
}
