/* TASS site stylesheet (2026-07 rewrite). Shared by every page. */

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

/* ── TOKENS ─────────────────────────────────────────────────────── */
:root {
  --accent:      #009E73;  /* brand green: large display text, borders, decoration */
  --accent-ink:  #007A59;  /* accent for small text and button fills (AA on white/surface) */
  --accent-deep: #006C4F;
  --btn-fg:      #FFFFFF;
  --text:        #0F0F0F;
  --muted:       #6B7280;
  --bg:          #FFFFFF;
  --surface:     #F7F7F8;
  --border:      #E4E4E7;
  --font:        'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:'Lora', 'Source Serif Pro', 'Iowan Old Style', Georgia, serif;
  --max-w:       1080px;
  --radius:      8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-ink:  #34D399;
    --accent-deep: #6EE7B7;
    --btn-fg:      #06251A;
    --text:        #F4F4F5;
    --muted:       #A1A1AA;
    --bg:          #09090B;
    --surface:     #111113;
    --border:      #27272A;
  }
}

/* ── BASE ───────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(46, 125, 94, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 125, 94, 0.04) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px;
  background-repeat: repeat;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
main a:not(.btn), .prose a { color: var(--accent-ink); border-bottom: 1px solid var(--border); }
main a:not(.btn):hover, .prose a:hover { border-color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 3px; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 2rem; }

/* ── NAV ────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-brand { display: flex; align-items: center; flex-shrink: 0; }
.nav-wordmark { height: 32px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.nav-links a { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: var(--btn-fg); }

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  padding: 0.6rem 1.3rem; border-radius: var(--radius);
  font-family: var(--font); font-size: 0.875rem; font-weight: 600;
  cursor: pointer; border: 1.5px solid transparent; transition: all 0.15s; text-decoration: none;
}
.btn-primary { background: var(--accent-ink); color: var(--btn-fg); border-color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn-lg { padding: 0.8rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ── HERO ───────────────────────────────────────────────────────── */
.hero { padding: 6rem 0 4.5rem; border-bottom: 1px solid var(--border); }
.hero-eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 600;
  line-height: 1.06; letter-spacing: -0.02em; max-width: 20ch; margin-bottom: 1.5rem;
}
.hero-accent { color: var(--accent); font-style: italic; font-weight: 500; }
.hero-sub {
  font-size: 1.125rem; color: var(--muted); max-width: 56ch;
  line-height: 1.65; margin-bottom: 2.25rem;
}
.hero-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.hero-meta { margin-top: 1.6rem; font-size: 0.8rem; color: var(--muted); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow, .hero h1, .hero-sub, .hero-actions, .hero-meta {
  animation: fadeUp 0.75s cubic-bezier(0.2, 0.65, 0.3, 1) backwards;
}
.hero h1 { animation-delay: 0.12s; }
.hero-sub { animation-delay: 0.28s; }
.hero-actions { animation-delay: 0.42s; }
.hero-meta { animation-delay: 0.54s; }
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1, .hero-sub, .hero-actions, .hero-meta { animation: none; }
}

/* ── SECTIONS ───────────────────────────────────────────────────── */
.section { padding: 5.5rem 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--surface); }
.eyebrow {
  display: block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-ink); margin-bottom: 1rem;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 600;
  line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 1.1rem;
}
h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
.section-sub { font-size: 1.0625rem; color: var(--muted); max-width: 60ch; line-height: 1.65; }

/* ── EDITION CARDS ──────────────────────────────────────────────── */
.editions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; margin-top: 3rem; }
.edition-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.25rem; background: var(--bg); display: flex; flex-direction: column;
}
.edition-card.featured { border-color: var(--accent); border-width: 2px; }
.edition-kicker { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-ink); margin-bottom: 0.6rem; }
.edition-card h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 0.35rem; }
.edition-price { font-size: 0.9rem; font-weight: 600; color: var(--muted); margin-bottom: 1.25rem; }
.edition-card p.blurb { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.25rem; }
.edition-list { list-style: none; margin-bottom: 1.75rem; flex: 1; }
.edition-list li {
  font-size: 0.875rem; color: var(--text); padding: 0.45rem 0;
  border-top: 1px solid var(--border); display: flex; align-items: baseline; gap: 0.6rem;
}
.edition-list li::before { content: '\2713'; color: var(--accent-ink); font-size: 0.75rem; font-weight: 800; flex-shrink: 0; }

/* ── FEATURES GRID ──────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: 3rem;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg);
}
.feature-cell { padding: 2rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature-cell:nth-child(even) { border-right: none; }
.feature-cell:nth-last-child(-n+2) { border-bottom: none; }
.feature-num { font-size: 0.7rem; font-weight: 800; color: var(--accent-ink); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.feature-cell h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.feature-cell p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* ── TABLES ─────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto; margin-top: 2.5rem;
  border-top: 2px solid var(--accent); border-bottom: 1px solid var(--border);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th {
  padding: 0.8rem 1rem 0.6rem; text-align: left;
  font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border); color: var(--muted);
}
.data-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); color: var(--muted); }
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { color: var(--text); font-weight: 500; }
.table-note { font-size: 0.8125rem; color: var(--muted); margin-top: 0.9rem; max-width: 64ch; line-height: 1.6; }

.license-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.5rem;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
}
.license-mit    { background: #DCFCE7; color: #166534; }
.license-ccby   { background: #DBEAFE; color: #1E40AF; }
.license-apache { background: #FFE4E6; color: #9F1239; }
.license-pddl   { background: #E4E4E7; color: #3F3F46; }
.license-tass   { background: #D1FAE5; color: #065F46; }
@media (prefers-color-scheme: dark) {
  .license-mit    { background: #14532D; color: #86EFAC; }
  .license-ccby   { background: #1E3A5F; color: #93C5FD; }
  .license-apache { background: #4C0519; color: #FDA4AF; }
  .license-pddl   { background: #27272A; color: #D4D4D8; }
  .license-tass   { background: #04231A; color: #6FC19A; }
}

/* ── T-LEX LIST ─────────────────────────────────────────────────── */
.tlex-list { margin-top: 2.5rem; border-top: 1px solid var(--border); }
.tlex-item {
  padding: 1.1rem 0; border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 10rem; gap: 0.35rem 1rem; align-items: baseline;
}
.tlex-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.005em; }
.tlex-status {
  grid-column: 2; grid-row: 1; text-align: right;
  font-size: 0.68rem; font-weight: 700; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase; align-self: start; padding-top: 0.2rem;
}
.tlex-status.shipping { color: var(--accent-ink); }
.tlex-desc { grid-column: 1 / -1; font-size: 0.875rem; color: var(--muted); line-height: 1.6; max-width: 68ch; }

/* ── PRICING ────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.pricing-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; display: flex; flex-direction: column;
}
.pricing-card .tier { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-ink); margin-bottom: 0.75rem; }
.pricing-card .price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; margin-bottom: 0.35rem; }
.pricing-card .price span { font-family: var(--font); font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.pricing-card .meta { font-size: 0.8125rem; color: var(--muted); margin-bottom: 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--border); }
.pricing-card ul { list-style: none; margin-bottom: 1.4rem; flex: 1; }
.pricing-card li { font-size: 0.84rem; color: var(--text); padding: 0.3rem 0 0.3rem 1.15rem; position: relative; }
.pricing-card li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; font-size: 0.72rem; }
.pricing-fine { font-size: 0.875rem; color: var(--muted); margin-top: 1.75rem; max-width: 72ch; line-height: 1.65; }

/* ── PROSE PAGES (legal, about, support) ───────────────────────── */
.page { padding: 4rem 0 6rem; }
.page-eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-ink); margin-bottom: 1rem; display: block; }
.page-title { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 0.5rem; }
.page-meta { font-size: 0.875rem; color: var(--muted); margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.prose h2 { font-family: var(--font); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; margin: 2.4rem 0 0.75rem; }
.prose h3 { font-size: 0.9375rem; font-weight: 700; margin: 1.75rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; font-size: 0.9375rem; color: var(--text); line-height: 1.7; }
.prose ul, .prose ol { margin: 0.5rem 0 1rem 1.5rem; }
.prose li { font-size: 0.9375rem; color: var(--text); margin-bottom: 0.35rem; line-height: 1.65; }
.prose .caps { font-size: 0.875rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.875rem; }
.prose th { text-align: left; font-weight: 600; padding: 0.5rem 0.75rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.prose td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); color: var(--text); }
.prose tr:last-child td { border-bottom: none; }

.callout {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.75rem; margin: 2rem 0;
}
.callout h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.callout p { font-size: 0.9375rem; color: var(--muted); margin-bottom: 0.75rem; }
.callout p:last-child { margin-bottom: 0; }

.faq-item { border-bottom: 1px solid var(--border); padding: 1.4rem 0; }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-q { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.faq-a { font-size: 0.9375rem; color: var(--muted); max-width: 72ch; line-height: 1.65; margin: 0; }

/* ── FOOTER ─────────────────────────────────────────────────────── */
.footer { padding: 3rem 0 2.5rem; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand { font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; }
.footer-sub { font-size: 0.775rem; color: var(--muted); margin-top: 2px; }
.footer-links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.footer-links a { font-size: 0.8125rem; color: var(--muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy {
  max-width: var(--max-w); margin: 1.5rem auto 0;
  padding: 1.5rem 2rem 0; border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--muted);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .editions-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero { padding: 4.5rem 0 3.5rem; }
  .section { padding: 4rem 0; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-cell { border-right: none; }
  .feature-cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .feature-cell:last-child { border-bottom: none; }
  .nav-links { gap: 0.9rem; }
  .nav-links a:not(.btn) { display: none; }
  .tlex-item { grid-template-columns: 1fr; }
  .tlex-status { grid-column: 1; grid-row: auto; text-align: left; padding-top: 0; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}
