/* patriotapp.site. Mobile first; the App Store slides' night sky, white and gold headlines, and real widget renders.
   Image and font URLs are asset tokens that tools/build_website.py replaces with versioned paths. */
/* Archivo (SIL OFL 1.1, fonts/OFL-Archivo.txt) at width 62, weight 800, Latin subset: the closest open match to the
   slides' SF Condensed Heavy, so headlines set the same on every browser. */
@font-face { font-family: "Patriot Display"; src: url(/assets/display.1ab81b5d1bff.woff) format("woff"); font-weight: 800; font-style: normal; font-display: swap; }
:root {
  color-scheme: dark;
  --night: #010b24;
  --navy: #0b1633;
  --raised: #1a2550;
  --mist: #aeb6cf;
  --soft: #cdd3e4;
  --text: #e9ecf4;
  --gold: #e0b872;
  --gold-hi: #ffd68c;
  --line: rgba(174, 182, 207, .16);
  --gutter: 20px;
  --display: "Patriot Display", sans-serif-condensed, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--night); color: var(--text); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--night); }
.wrap { width: min(1180px, 100% - 2 * var(--gutter) - env(safe-area-inset-left) - env(safe-area-inset-right)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 30; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--night); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); background: rgba(1, 11, 36, .72);
  -webkit-backdrop-filter: saturate(1.5) blur(20px); backdrop-filter: saturate(1.5) blur(20px); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.header-inner { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 700 20px/1 var(--sans); letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 4px 14px rgba(0, 0, 0, .4); }
.header-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.header-nav a:not(.status) { display: none; text-decoration: none; color: var(--soft); }
.header-nav a:not(.status):hover, .header-nav a[aria-current] { color: #fff; }
.status { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 0 15px; border-radius: 99px; text-decoration: none;
  font-size: 14px; font-weight: 650; color: var(--gold-hi); background: rgba(224, 184, 114, .12); border: 1px solid rgba(224, 184, 114, .38); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 4px rgba(255, 214, 140, .16); }

/* ---------- type ---------- */
.display { margin: 0; container-type: inline-size; font-family: var(--display); font-weight: 800;
  text-transform: uppercase; line-height: .9; letter-spacing: 0; color: #fff; text-align: center; text-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
/* Each line fills the headline's width (k = font size / width, measured by the build); r keeps the cap proportional. */
.display > span { display: block; font-size: min(calc(var(--k) * (100vw - 40px)), calc(var(--r) * var(--cap))); font-size: min(calc(var(--k) * 100cqi), calc(var(--r) * var(--cap))); }
.display > span + span { margin-top: .05em; }
.display .gold { color: var(--gold); }
.lead { margin: 18px auto 0; max-width: 24ch; font-size: clamp(19px, 5.2vw, 23px); line-height: 1.4; font-weight: 500; color: var(--soft); text-align: center; text-wrap: balance; }

/* ---------- store button ---------- */
.store-button { display: inline-flex; align-items: center; gap: 12px; margin: 28px 0 0; padding: 10px 22px 10px 12px; min-height: 62px; border-radius: 18px;
  background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .28); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
.store-button svg { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.store-button span { display: flex; flex-direction: column; text-align: left; font-size: 13px; line-height: 1.2; font-weight: 500; color: rgba(255, 255, 255, .82); }
.store-button strong { font-size: 22px; line-height: 1.1; font-weight: 650; letter-spacing: -.01em; color: #fff; }
a.store-button:hover { border-color: rgba(255, 255, 255, .6); }

/* ---------- sections ---------- */
.copy { text-align: center; }
.hero { position: relative; overflow: hidden; overflow: clip; padding: 36px 0 0; background: url(/assets/sky-portrait.a582c7975845.webp) center bottom / 100% auto no-repeat, var(--night); }
.hero .lead { max-width: 21ch; }
/* The art carries its own halos: shown wider than the screen, the widgets fill it and the halos bleed off the edges. */
.art { display: flex; justify-content: center; margin-top: 10px; }
.art img { flex-shrink: 0; width: 152vw; max-width: none; margin: -15vw 0 -9vw; }
.art-hero { margin-top: 6px; }
.art-hero img { width: 124vw; margin: 0 0 -4vw; }

.feature, .themes { position: relative; padding: 64px 0 28px; overflow: hidden; overflow: clip; }
.ground-night { background: radial-gradient(90% 55% at 50% 62%, rgba(60, 100, 230, .30), transparent 72%), url(/assets/stars.c946e8a85b7c.png) 0 0 / 300px repeat,
  linear-gradient(var(--night), #0e1b47 50%, var(--night)); }
.ground-warm { background: radial-gradient(85% 55% at 50% 60%, rgba(224, 160, 90, .26), transparent 72%), url(/assets/stars.c946e8a85b7c.png) 120px 60px / 300px repeat,
  linear-gradient(var(--night), #281d18 22%, #1a1310 78%, var(--night)); }
.ground-deep { background: radial-gradient(85% 50% at 50% 66%, rgba(90, 110, 200, .26), transparent 72%), url(/assets/stars.c946e8a85b7c.png) 60px 140px / 300px repeat,
  linear-gradient(var(--night), #0e1630 50%, var(--night)); }
.ground-red { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 30px, transparent 30px 60px), linear-gradient(#c4204a, #7a0e28); }
.ground-red .display .gold { color: #ffe2aa; }
.ground-red .lead { color: #ffe9ec; }
.ground-memorial { background: linear-gradient(var(--night), rgba(1, 11, 36, .42) 22%, rgba(11, 22, 51, .5) 70%, var(--night)), url(/assets/memorial.c55c8cd2dce7.webp) center / cover no-repeat, var(--navy); }
.ground-dusk { background: radial-gradient(85% 45% at 50% 45%, rgba(200, 140, 90, .24), transparent 72%), url(/assets/stars.c946e8a85b7c.png) 200px 0 / 300px repeat,
  linear-gradient(var(--night), #221a1e 30%, #110d14 80%, var(--night)); }

/* theme photos, drifting by */
.strip { margin-top: 40px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.strip ul { display: flex; width: max-content; margin: 0; padding: 12px 0 24px; list-style: none; }
.strip li { margin-right: 14px; }
.strip img { width: 128px; height: 228px; object-fit: cover; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 16px 34px rgba(0, 0, 0, .5); }

/* pricing */
.pricing { padding: 64px 0 72px; background: url(/assets/stars.c946e8a85b7c.png) 40px 30px / 300px repeat, var(--night); }
.price-card { max-width: 560px; margin: 0 auto; padding: 44px 22px 34px; text-align: center; border-radius: 32px;
  background: linear-gradient(180deg, rgba(26, 37, 80, .92), rgba(13, 21, 48, .92)); border: 1px solid rgba(224, 184, 114, .3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08); }
.price-line { margin: 18px auto 30px; max-width: 22ch; font-size: 21px; line-height: 1.4; font-weight: 500; color: #fff; text-wrap: balance; }
.promises { display: flex; justify-content: center; gap: 26px; margin: 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line);
  font-size: 15px; font-weight: 600; color: var(--soft); }
.promises li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.promises svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* closing */
.closing { padding: 72px 0 clamp(200px, 62vw, 380px); text-align: center; background: url(/assets/sky-portrait.a582c7975845.webp) center bottom / 100% auto no-repeat, var(--night); }
.closing-inner { display: flex; flex-direction: column; align-items: center; }
.closing-icon { width: 104px; height: 104px; margin-bottom: 30px; border-radius: 24px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 20px 60px rgba(224, 184, 114, .28), 0 18px 40px rgba(0, 0, 0, .5); }
.closing .display { width: 100%; }

/* ---------- footer ---------- */
.site-footer { padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); background: #000814; border-top: 1px solid rgba(255, 255, 255, .07); color: var(--mist); font-size: 14px; }
.footer-top { display: flex; flex-direction: column; gap: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 16px; font-weight: 600; }
.footer-links a { text-decoration: none; color: var(--soft); padding: 6px 0; }
.footer-links a:hover { color: #fff; }
.fine { margin: 26px 0 0; line-height: 1.6; max-width: 70ch; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .status .dot { animation: pulse 2.4s ease-in-out infinite; }
  .art-hero img { animation: float 7s ease-in-out infinite; }
  .strip ul { animation: drift 70s linear infinite; }
  .strip:hover ul { animation-play-state: paused; }
  @supports (animation-timeline: view()) {
    .feature .art img, .themes .art img, .price-card { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 32%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .strip { overflow-x: auto; scroll-snap-type: x mandatory; }
  .strip li { scroll-snap-align: center; }
  .strip li[aria-hidden] { display: none; }
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 214, 140, 0); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: .15; transform: translateY(56px) scale(.95); } to { opacity: 1; transform: none; } }

/* ---------- documents (privacy, terms, support) ---------- */
.doc main { padding: 34px 0 72px; background: radial-gradient(120% 40% at 50% 0, rgba(60, 100, 230, .22), transparent 70%), var(--night); }
.doc-wrap { max-width: 760px; }
.doc-tabs { display: flex; gap: 8px; margin-bottom: 34px; overflow-x: auto; scrollbar-width: none; }
.doc-tabs::-webkit-scrollbar { display: none; }
.doc-tabs a { flex-shrink: 0; padding: 9px 16px; border-radius: 99px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--soft); border: 1px solid var(--line); }
.doc-tabs a[aria-current] { background: #fff; color: var(--night); border-color: #fff; }
.doc-title { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .92; font-size: clamp(48px, 14vw, 88px); color: #fff; }
.doc-meta { margin: 12px 0 0; font-size: 15px; font-weight: 600; color: var(--gold); }
.doc-content { margin-top: 34px; font-size: 17px; line-height: 1.7; color: #d9deeb; }
.doc-content h2 { margin: 44px 0 10px; font-size: 23px; line-height: 1.25; letter-spacing: -.01em; color: #fff; }
.doc-content p, .doc-content ul, .doc-content ol { margin: 0 0 16px; }
.doc-content li { margin-bottom: 8px; }
.doc-content strong { color: #fff; }
.doc-content a { color: var(--gold-hi); text-underline-offset: 4px; }
.doc-content table { width: 100%; margin: 8px 0 22px; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.doc-content th, .doc-content td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 130px; }
.doc-content th { color: #fff; font-weight: 650; }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 36px; }
  .header-inner { height: 68px; }
  .header-nav a:not(.status) { display: inline; }
  .feature, .themes { padding: 100px 0 40px; }
  .art img { width: min(120vw, 900px); margin: -11% 0 -7%; }
  .art-hero img { width: min(110vw, 760px); margin: 0 0 -3%; }
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 980px) {
  .hero { padding: 40px 0 0; background: url(/assets/sky-wide.0775982273d4.webp) center bottom / cover no-repeat, var(--night); }
  .hero-inner, .feature-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .hero-inner { min-height: calc(100svh - 68px); grid-template-columns: 1.05fr .95fr; }
  .copy { text-align: left; }
  .display { text-align: left; }
  .lead { margin-left: 0; text-align: left; max-width: 22ch; }
  .art, .art-hero { margin: 0; }
  .copy { position: relative; z-index: 1; }
  .art img { width: auto; height: clamp(720px, 96vh, 940px); margin: -70px 0 -60px; }
  .art-hero img { width: auto; height: min(calc(100svh - 90px), 1000px); margin: 20px 0 0; }
  .flip .copy { order: 2; }
  .feature, .themes { padding: 120px 0; }
  .themes .strip { margin-top: 70px; }
  .strip img { width: 160px; height: 285px; }
  .closing { padding-top: 110px; padding-bottom: clamp(260px, 30vw, 460px); background: url(/assets/sky-wide.0775982273d4.webp) center bottom / cover no-repeat, var(--night); }
  .closing .display { max-width: 820px; text-align: center; }
}
