/*
 * alphaPDF site styles.
 *
 * Structure, rhythm, type scale and component shape are the shared Maskia
 * system (see maskia.co/shared/maskia.css); only the palette below is
 * alphaPDF's own. This file stays self-contained so the alphaPDF site can be
 * deployed and validated independently of the rest of maskia.co.
 */

:root {
  color-scheme: light;

  /* alphaPDF brand palette. These exact token names and values are asserted by
     scripts/check-website.mjs, so the semantic names below alias them rather
     than replacing them. */
  --bg: #f7f6f3;
  --surface: #ffffff;
  --section-soft: #efeeea;
  --ink: #292925;
  --muted: #5d5b55;
  --line: #dedbd4;
  --teal: #00777c;
  --teal-dark: #005d65;
  --teal-bright: #0e9895;

  /* Semantic names used by the shared Maskia structure. */
  --surface-soft: var(--section-soft);
  --line-strong: var(--ink);
  --accent: var(--teal);
  --accent-dark: var(--teal-dark);
  --accent-bright: var(--teal-bright);
  --on-accent: #ffffff;

  /* Shared structure. */
  --shadow: 8px 8px 0 rgba(41, 41, 37, .10);
  --shadow-sm: 3px 3px 0 rgba(41, 41, 37, .08);
  --radius: 6px;
  --radius-lg: 10px;
  --page: 1180px;
  --gutter: 40px;
  --sans: "Aptos", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }

:where(a, button, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip-link:focus { left: 0; }

/* ── Navigation ─────────────────────────────────────────────────────── */

.site-nav { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.site-nav-inner {
  width: min(var(--page), calc(100% - var(--gutter)));
  min-height: 68px; margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
}
/* One mark in the header on every page: Maskia. alphaPDF identifies itself in
   the body of the page, never in the global navigation. */
.site-logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.site-logo img { height: 19px; width: auto; }
.site-nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.site-nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav-links a:hover { color: var(--ink); }
.site-nav-links a.button { color: var(--ink); font-weight: 700; padding: 9px 17px; }
.site-nav-links a.button-primary { color: var(--on-accent); }
.site-nav-cta { margin-left: 4px; }

/* ── Buttons ────────────────────────────────────────────────────────── */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: .97rem; text-decoration: none;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(41, 41, 37, .13); }
.button:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(41, 41, 37, .13); }
.button-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-secondary { border-color: var(--line); box-shadow: none; }
.button-secondary:hover { box-shadow: none; border-color: var(--line-strong); }

/* ── Section rhythm ─────────────────────────────────────────────────── */

.section { padding: 82px 0; width: min(var(--page), calc(100% - var(--gutter))); margin-inline: auto; }
.eyebrow { margin: 0 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.section-heading { max-width: 62ch; margin-bottom: 40px; }
.section-heading h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-heading p { margin: 14px 0 0; color: var(--muted); font-size: 1.05rem; }

/* ── Product lockup ─────────────────────────────────────────────────── */

/* alphaPDF identifies itself here, in the body of its own page. */
.product-lockup { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.product-lockup img { width: 34px; height: 34px; }
.product-lockup .name { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.product-lockup .kind { color: var(--muted); font-size: .95rem; }
.product-lockup .kind::before { content: "·"; margin: 0 9px 0 3px; }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  width: min(var(--page), calc(100% - var(--gutter))); margin-inline: auto;
  padding: 88px 0 74px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 54px; align-items: center;
}
.hero-copy { max-width: none; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); text-wrap: balance; }
.hero h1 span { color: var(--accent-bright); }
.hero-lede { margin: 20px 0 0; font-size: clamp(1.05rem, 1.9vw, 1.2rem); color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin: 20px 0 0; font-size: .9rem; color: var(--muted); }

/* Product frame — alphaPDF's hero visual. */
.product-frame {
  background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.product-frame { margin: 0; }
.product-frame img { width: 100%; height: auto; }
.product-frame figcaption { padding: 12px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.product-frame figcaption span { color: var(--accent); }

/* ── Trust strip ────────────────────────────────────────────────────── */

.trust-strip {
  border-block: 1px solid var(--line); background: var(--surface-soft);
  padding: 18px max(calc(var(--gutter) / 2), calc((100vw - var(--page)) / 2));
  display: flex; flex-wrap: wrap; gap: 12px 34px;
}
.trust-strip p { margin: 0; display: inline-flex; align-items: baseline; gap: 9px; font-size: .93rem; color: var(--muted); }
.trust-strip strong { color: var(--ink); position: relative; padding-left: 16px; }
.trust-strip strong::before { content: ""; position: absolute; left: 0; top: .45em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ── Cards ──────────────────────────────────────────────────────────── */

.feature-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.feature-grid article {
  background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow);
}
.feature-grid h3 { font-size: 1.16rem; margin-bottom: 8px; }
.feature-grid p { margin: 0; color: var(--muted); }
.feature-grid span { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .13em; color: var(--accent); margin-bottom: 12px; }

/* ── Bands ──────────────────────────────────────────────────────────── */

.privacy-band, .comparison-band {
  background: var(--surface-soft); border-block: 1px solid var(--line);
  padding: 72px max(calc(var(--gutter) / 2), calc((100vw - var(--page)) / 2));
}
.privacy-band { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 34px 46px; align-items: start; }
.comparison-band .section-heading { margin-bottom: 44px; }
.privacy-copy { max-width: 62ch; }
.privacy-copy p:first-child { margin-top: 0; }
.privacy-copy a { color: var(--accent); font-weight: 700; }
.privacy-copy h2, .comparison-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.privacy-copy p { color: var(--muted); font-size: 1.04rem; }
.privacy-copy ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 11px; }
.privacy-copy li { position: relative; padding-left: 27px; color: var(--muted); }
.privacy-copy li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px; border-radius: 3px; background: var(--accent); }

/* ── Pricing ────────────────────────────────────────────────────────── */

.pricing-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.price-card {
  background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.price-card.featured { border-width: 2px; }
.price-kicker { margin: 0 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.price-name { font-size: 1.3rem; margin-bottom: 10px; }
.price { display: flex; align-items: baseline; gap: 9px; margin: 4px 0 16px; }
.price strong { font-size: 2.5rem; letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: .93rem; }
.price-card ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 11px; }
.price-card li { position: relative; padding-left: 27px; color: var(--muted); }
.price-card li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px; border-radius: 3px; background: var(--accent); }
.price-card .button { margin-top: auto; }

/* ── Tables ─────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border: 1.5px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .96rem; }
thead th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
tbody th { font-weight: 600; }
td { text-align: center; width: 132px; color: var(--muted); }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* ── FAQ ────────────────────────────────────────────────────────────── */

.faq-grid { display: grid; gap: 12px; max-width: 820px; }
details { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-sm); }
summary { font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; font-weight: 700; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* ── Support page ───────────────────────────────────────────────────── */

.support-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 26px; }
.support-card { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.support-card h2 { font-size: 1.1rem; margin-bottom: 8px; }
.support-card p { margin: 0; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--line); padding: 46px 0; background: var(--surface-soft); }
.site-footer-inner {
  width: min(var(--page), calc(100% - var(--gutter))); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: var(--ink); }
.footer-legal {
  width: min(var(--page), calc(100% - var(--gutter))); margin: 18px auto 0;
  color: var(--muted); font-size: .85rem; max-width: 70ch;
}

/* ── Legal pages ────────────────────────────────────────────────────── */

.legal-shell { width: min(800px, calc(100% - var(--gutter))); margin-inline: auto; padding: 68px 0 104px; }
.legal-shell h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
.legal-shell h2 { margin: 2.4rem 0 .6rem; font-size: 1.24rem; }
.legal-shell p, .legal-shell li { color: var(--muted); }
.legal-shell li { margin: .45rem 0; }
.legal-shell a { color: var(--accent-dark); }
.legal-intro { margin: 26px 0 34px; font-size: 1.06rem; }
.legal-meta { margin-bottom: 12px; color: var(--muted); font-size: .88rem; }
.legal-card {
  background: var(--surface); border: 1.5px solid var(--line);
  border-left: 5px solid var(--accent-bright); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm); margin: 26px 0;
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero, .privacy-band { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  :root { --gutter: 32px; }
  .section { padding: 60px 0; }
  .hero { padding: 62px 0 54px; }
  .privacy-band, .comparison-band { padding: 56px 0; }
  .site-nav-links { gap: 18px; }
  .site-nav-links a { font-size: .9rem; }
  .site-footer nav { margin-left: 0; }
}

@media (max-width: 560px) {
  .site-nav-links .nav-hide-sm { display: none; }
  .hero-actions .button { width: 100%; }
}

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