/* Fifth Ace: the home page, the contact and privacy pages and the 404 page.
   Everything visual comes from house-rules (tokens.css, controls.css, components.css), in both themes. This file only positions and lays out: it
   sets no colour except through a token, and never restyles a .btn or a form field (tests/house-rules.test.mjs fails it if it does).
   Every page of the site uses this file. */

/* The accent is Wildcard Purple. Focus is --lilac: pale on the dark theme, purple on the light, so the ring shows on both. */
:root { --accent: var(--purple); --accent-hover: var(--purple-hover); --on-accent: #fff; --focus: var(--lilac); }
:root[data-theme="dark"] { color-scheme: dark; }
/* The home page's background (the Wildcard hero's: two corner glows and a dot grid). Names of its own, tuned for each theme. */
:root { --intro: color-mix(in srgb, var(--text) 72%, var(--text-2)); --bg-glow-a: rgba(85, 0, 136, .40); --bg-glow-b: rgba(51, 0, 79, .60); --bg-dot: rgba(240, 238, 245, .30); }
:root[data-theme="light"] { --bg-glow-a: rgba(124, 44, 176, .30); --bg-glow-b: rgba(85, 0, 136, .18); --bg-dot: rgba(85, 0, 136, .34); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 1rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lilac); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.15; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.wrap { width: min(100% - 48px, 1180px); margin-inline: auto; }
.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 { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 12px 16px; border-radius: var(--radius-xs); background: var(--text); color: var(--ink); }
.skip:focus { left: 8px; }
.muted { color: var(--text-2); }

/* ---------- background: glows and dots behind the hero and the cards, at 65%, fading out below the cards */
.stage { position: relative; isolation: isolate; overflow-x: clip; } /* the app pages' big logo bleeds off the edge: clipped, so the page never scrolls sideways */
.bg {
  position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: var(--stage-h, 1500px); overflow: hidden; opacity: .65; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 90px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 90px), transparent);
}
.bg::before {
  content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--bg-dot) 1.2px, transparent 1.4px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%);
}
/* Each glow is a box twice the size of its old radii, centred on its corner. fifthace.js sets --nx and --ny (-1 to 1, the mouse's place in the window), and
   the two glows move in opposite directions by different amounts, so they seem to sit at different depths. */
.glow { position: absolute; background: radial-gradient(ellipse closest-side, var(--glow-colour), transparent 60%); will-change: transform; }
.glow--a { --glow-colour: var(--bg-glow-a); width: 1800px; height: 1000px; left: 85%; top: 20%;
  transform: translate(-50%, -50%) translate(calc(var(--nx, 0) * -70px), calc(var(--ny, 0) * -40px)); }
.glow--b { --glow-colour: var(--bg-glow-b); width: 1400px; height: 800px; left: 5%; top: 90%;
  transform: translate(-50%, -50%) translate(calc(var(--nx, 0) * 90px), calc(var(--ny, 0) * 50px)); }

/* ---------- motion: the Wildcard site's, brought over. Things rise and fade in on load and as they scroll into view, the cards are dealt out one after
   another with a little overshoot, hovers ease, and the theme and the pages cross-fade. Nothing here is needed to read the page: without
   JavaScript the scroll reveals stay visible, and with reduced motion none of it runs (the block at the end). */
@keyframes rise { from { opacity: 0; transform: translateY(var(--from-y, 22px)) scale(var(--from-scale, 1)); } }
@keyframes bg-in { from { opacity: 0; } }
/* The logo's five cards start as one stack and fan out, back card first. Each card and the cut-out around it share an angle (--a) and a delay (--d),
   so the gaps stay between the cards the whole way. The end of the animation is the logo as it is drawn. */
@keyframes fan { from { transform: rotate(0deg); } }
.mark .c { transform-box: view-box; transform-origin: 160px 290px; transform: rotate(var(--a, 0deg));
  animation: fan .95s cubic-bezier(.3, .8, .3, 1) calc(var(--d, 0) * 1ms + 380ms) backwards; }
@keyframes deal { from { opacity: 0; transform: translateY(56px) rotate(var(--tilt, -4deg)); } }

/* On load: the header, then the top of each page, one piece after another. It is pure CSS, so there is no flash and no wait for a script. */
.top { --from-y: -14px; }
.hero > .mark { --from-scale: .94; }
.top, .hero > *, .page > *, .notfound > *, .apphero > :not(.apphero__mark) { animation: rise .8s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 110ms + 60ms); }
.hero > :nth-child(1), .page > :nth-child(1), .notfound > :nth-child(1) { --i: 1; }
.hero > :nth-child(2), .page > :nth-child(2), .notfound > :nth-child(2) { --i: 2; }
.hero > :nth-child(3), .page > :nth-child(3), .notfound > :nth-child(3) { --i: 3; }
.hero > :nth-child(4), .page > :nth-child(4), .notfound > :nth-child(4) { --i: 4; }
.page > :nth-child(5) { --i: 5; }
.apphero > h1 { --i: 1; } .apphero > .lede { --i: 2; } .apphero > .acts { --i: 3; } .apphero > .fine { --i: 4; }
.bg { animation: bg-in 1.6s ease backwards; }

/* As they scroll into view (fifthace.js adds .is-in). Only with JavaScript, so without it everything simply shows. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; transition-delay: calc(var(--i, 0) * 120ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* The cards are dealt: each rises with a slight tilt and settles with a little overshoot. An animation, not a transition, so the hover lift still works. */
.js .deal:not(.is-in) { opacity: 0; }
.js .deal.is-in { animation: deal .85s cubic-bezier(.2, .85, .3, 1.12) backwards; animation-delay: calc(var(--i, 0) * 150ms); }

/* Links and the theme toggle ease as they change colour */
.nav a:not(.btn), .sitefoot a { transition: color .2s ease; }

/* Changing the theme cross-fades the whole page (fifthace.js starts the view transition); so does going from one page to another (Chrome and Safari). */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: ease; }
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

/* ---------- header */
.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; padding: 24px 0; }
.brand { display: flex; align-items: center; min-height: 44px; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.brand img { width: 60px; height: auto; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; font-weight: 500; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--lilac); }
/* The theme toggle is a house-rules button (.btn .btn--ghost .btn--icon), so it is the same colour, size and hover as Sign in beside it. Only its visibility is ours. */
.top { position: relative; }
/* Wide, the nav's groups simply flatten into one row: links, theme toggle, Sign in. The menu button and the panel are for phones. */
.nav__links, .nav__theme { display: contents; }
.nav__theme > span { display: none; }
.menu-toggle { display: none; }
.menu-toggle[aria-expanded="true"] .i-open, .menu-toggle[aria-expanded="false"] .i-close { display: none; }
.theme-toggle { display: none; }
.js .theme-toggle { display: inline-flex; }
:root[data-theme="dark"] .theme-toggle .i-moon, :root[data-theme="light"] .theme-toggle .i-sun { display: none; }

/* ---------- hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding: 64px 0 96px; }
.hero .mark { width: 300px; max-width: 80%; height: auto; overflow: visible; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; line-height: 1.08; letter-spacing: -.015em; max-width: 820px; }
/* the intro text sits over the glows (and, on the app pages, the faint logo), so it is a step stronger than the other secondary text: measured at 4.5:1 or better on the pixels behind it */
.hero p { margin: 0; font-size: 1.25rem; color: var(--intro); max-width: 640px; }
.acts { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.hero .acts { justify-content: center; margin-top: 8px; }

/* ---------- the deck: a playing card's 5:7, flipping to a preview of the app */
.deck { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px; padding-bottom: 96px; }
.flip { width: 100%; max-width: 500px; justify-self: center; perspective: 1800px; scroll-margin-top: 24px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.js .flip { cursor: pointer; }
.js .flip a, .js .flip button { cursor: pointer; }
/* Picking a card up: it lifts, takes a pale ring, a deeper shadow and a purple glow (the Wildcard cards' hover). Pointers that can hover only. */
@media (hover: hover) {
  .flip:hover { transform: translateY(-6px); }
  .flip:hover .face {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--lilac) 40%, transparent) inset, 0 34px 60px -28px var(--shade), 0 0 50px -20px color-mix(in srgb, var(--purple-bright) 70%, transparent);
  }
}
.flip__inner { display: grid; aspect-ratio: 5 / 7; transform-style: preserve-3d; transition: transform .6s ease; }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.face {
  grid-area: 1 / 1; position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 16px; padding: 72px 44px 64px;
  border-radius: var(--radius-lg); background: var(--slate); box-shadow: 0 0 0 1px var(--line-strong) inset;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: box-shadow .35s cubic-bezier(.2, .8, .2, 1);
}
/* clip, not hidden: hidden would stop the card growing to fit its text on a narrow phone */
.face--front { overflow: clip; }
.face--back { transform: rotateY(180deg); padding: 28px 32px 36px; gap: 18px; }
.face h2 { font-size: 2.75rem; font-weight: 700; line-height: 1.05; }
.face p { margin: 0; }
.tagline { font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
.pip { position: absolute; font-size: 2rem; font-weight: 700; line-height: 1; color: var(--lilac); }
.pip--tl { top: 22px; left: 26px; }
.watermark { position: absolute; z-index: -1; top: -9%; right: -13%; height: 54%; background: var(--lilac); opacity: .11; transform: rotate(7deg); pointer-events: none;
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
/* The app's logo, large and cut off by the card's edges, like the cards in the portal's menu. The card clips it; the text stays above it. */
.watermark--ante { aspect-ratio: 1; -webkit-mask-image: url(/assets/ante-mark.svg); mask-image: url(/assets/ante-mark.svg); }
.watermark--cardea { aspect-ratio: 76 / 56; -webkit-mask-image: url(/assets/cardea-mark.svg); mask-image: url(/assets/cardea-mark.svg); }
.pip--br { bottom: 22px; right: 26px; transform: rotate(180deg); }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks svg { width: 20px; height: 20px; flex: none; color: var(--lilac); fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.face .acts { margin-top: auto; padding-top: 12px; }
/* Without JavaScript a card cannot flip, so the buttons that flip it are not shown (js-flag.js adds .js) */
[data-flip] { display: none; }
.js [data-flip] { display: inline-flex; }

.back-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.back-head .name { display: flex; align-items: baseline; gap: 10px; font-weight: 600; font-size: 1.25rem; }
.back-head .name b { font-size: 1.5rem; color: var(--lilac); }
.back-head .name small { font-size: var(--fs-label); font-weight: 500; letter-spacing: .14em; color: var(--text-2); }
/* The preview is a picture of the app, not the app: nothing in it takes a click, and it is hidden from assistive technology (a sentence says what it shows).
   When a real screenshot is ready, put an <img alt="..."> where .preview is and delete the sentence: the card keeps its shape. */
.preview { display: flex; flex-direction: column; gap: 18px; pointer-events: none; user-select: none; }
.panel { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--radius-md); background: var(--ink); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.panel--row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 20px 24px; gap: 12px; }
.meta { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-small); color: var(--text-2); }
.bar { height: 6px; border-radius: 3px; background: var(--line-strong); }
.bar span { display: block; width: 17%; height: 6px; border-radius: 3px; background: var(--purple); }
.question { font-size: 1.375rem; font-weight: 600; line-height: 1.35; }
.answers { display: flex; flex-wrap: wrap; gap: 10px; }
.taps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 12px; }
.fake-link { color: var(--lilac); text-decoration: underline; }
.fake-label { font-weight: 600; }
.fake-row { display: flex; gap: 10px; }
.fake-input { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--steel); color: var(--fog); }

/* ---------- principles, about */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; padding: 48px 0 96px; border-top: 1px solid var(--line-strong); }
.principles h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 600; }
.principles p { margin: 0; color: var(--text-2); }
.about { display: flex; flex-direction: column; gap: 12px; padding: 48px; margin-bottom: 72px; border-radius: var(--radius-lg); background: var(--blue-gray); }
.about h2 { font-size: 2rem; font-weight: 700; }
.about p { margin: 0; font-size: 1.125rem; color: var(--text-2); max-width: 760px; }

/* ---------- footer */
.sitefoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 28px 0 40px; border-top: 1px solid var(--line-strong); font-size: .9rem; color: var(--text-2); }
.sitefoot nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.sitefoot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); }
.sitefoot a:hover { color: var(--lilac); }

/* ---------- the app pages (Ante, Cardea): a hero, what it does, how it works, plans, questions */
.apphero { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 40px 0 80px; }
.apphero > :not(.apphero__mark) { max-width: 760px; }
.apphero h1 { font-size: clamp(2.3rem, 6vw, 3.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.lede { margin: 0; font-size: 1.15rem; color: var(--intro); max-width: 62ch; }
.apphero .lede { font-size: 1.25rem; }
.fine { margin: -6px 0 0; font-size: .9rem; color: var(--intro); }
/* the app's logo, large and tilted behind the top right, in the same pale lilac as the card watermarks */
.apphero__mark { position: absolute; z-index: -1; top: 4%; right: -2%; height: 78%; background: var(--lilac); opacity: .11; transform: rotate(7deg); pointer-events: none;
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.apphero__mark--ante { aspect-ratio: 1; -webkit-mask-image: url(/assets/ante-mark.svg); mask-image: url(/assets/ante-mark.svg); }
.apphero__mark--cardea { aspect-ratio: 76 / 56; -webkit-mask-image: url(/assets/cardea-mark.svg); mask-image: url(/assets/cardea-mark.svg); }

.section { padding-block: 56px; border-top: 1px solid var(--line-strong); }
.section > h2, .section > div > h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 8px; }
.features, .faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px 40px; margin-top: 28px; }
.features h3, .faq h3, .steps h3 { margin-bottom: 8px; font-size: 1.15rem; font-weight: 600; }
.features p, .faq p, .steps p { margin: 0; color: var(--text-2); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px; margin: 28px 0 0; padding: 0; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--blue-gray); color: var(--lilac); font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; margin: 28px 0 32px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.plan p { margin: 0; color: var(--text-2); }
.plan .btn { margin-top: auto; }
.plan .price { color: var(--text); font-size: 2.5rem; font-weight: 700; line-height: 1; }
.price small { font-size: .95rem; font-weight: 400; color: var(--text-2); }
.compare tbody th { white-space: normal; min-width: 11rem; }
.compare td { min-width: 9.5rem; font-variant-numeric: tabular-nums; }
.notes { display: grid; gap: 12px; margin-top: 24px; }
.notes .note { margin: 0; }
.closing { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-block: 72px 24px; text-align: center; }
.closing .acts { justify-content: center; }

/* the Pro mark (house-rules' .pro-mark): placed beside headings and in the table, never restyled. A solid Ace is Pro; a dashed one beside "Not included" says the feature needs Pro. */
.plan__head { display: flex; align-items: center; gap: 12px; }
.features h3 .pro-mark, .compare th .pro-mark { margin-left: .5em; }
.compare td .pro-mark { margin-right: .5em; }
/* ---------- inner pages: contact, privacy, 404 */
.page { max-width: 760px; margin-inline: auto; padding: 32px 0 96px; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -.015em; margin-bottom: 16px; }
.page > p { color: var(--text-2); font-size: 1.125rem; }
.placeholder { padding: 24px; border-radius: var(--radius-md); background: var(--blue-gray); font-weight: 600; }

.contact-form { display: grid; gap: 20px; margin-top: 32px; padding: 32px; border-radius: var(--radius-lg); background: var(--slate); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.contact-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.contact-form fieldset { margin: 0; }
.contact-form .topics { display: flex; flex-wrap: wrap; gap: 0 24px; }
.contact-form .topics label { display: flex; align-items: center; min-height: 44px; } /* the whole label is the tap target, not just the 18px box */
.contact-form .trap { position: absolute; left: -9999px; }
.contact-form .turnstile:empty { display: none; }
.contact-form .status { margin: 0; }
.thanks { margin-top: 32px; padding: 32px; border-radius: var(--radius-lg); background: var(--slate); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.thanks h2 { font-size: 1.75rem; margin-bottom: 8px; }
.thanks p { margin: 0 0 20px; color: var(--text-2); }
.thanks h2:focus { outline: none; }
.direct { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin-top: 24px; color: var(--text-2); }
.direct a { display: inline-flex; align-items: center; min-height: 44px; min-width: 0; overflow-wrap: anywhere; } /* a long address may break, so large text never scrolls the page sideways */
.notfound { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 48px 0 96px; }
.notfound img { width: 200px; max-width: 60%; height: auto; }
.notfound h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); font-weight: 700; line-height: 1.1; }
.notfound p { margin: 0; color: var(--text-2); font-size: 1.125rem; max-width: 520px; }

@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, 1180px); }
  /* The phone header is one row: the name on the left, Sign in and the menu button on the right. The menu button opens a panel with the page links and the
     theme toggle (fifthace.js). Without JavaScript there is no button, and the links simply wrap onto a row of their own. */
  .top { flex-wrap: nowrap; gap: 12px; padding-block: 16px; }
  .brand { min-width: 0; gap: 8px; font-size: 1.25rem; }
  .brand img { width: 44px; flex: none; }
  .nav { flex: none; flex-wrap: nowrap; gap: 8px; }
  html:not(.js) .top, html:not(.js) .nav { flex-wrap: wrap; }
  .js .menu-toggle { display: inline-flex; }
  .js .nav__links {
    position: absolute; z-index: 20; top: calc(100% - 6px); left: 0; right: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px;
    border-radius: var(--radius-lg); background: var(--slate); box-shadow: 0 0 0 1px var(--line-strong) inset, 0 24px 48px -24px var(--shade);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
  }
  .js .nav__links.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js .nav__links a:not(.btn) { display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .js .nav__links a:not(.btn):hover { background: var(--wash-hover); }
  .js .nav__theme { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 8px 8px 0 14px; border-top: 1px solid var(--line-strong); }
  .js .nav__theme > span { display: block; font-weight: 500; }
  .sitefoot { gap: 0 16px; }
  .face { padding: 76px 28px 56px; }
  .face--back { padding: 24px 20px 28px; }
  .about { padding: 32px 24px; }
  /* the comparison table is all three columns on a phone: the cells wrap instead of the table scrolling sideways */
  .compare tbody th, .compare td { min-width: 0; padding-inline: 8px; }
  .compare th { font-size: .75rem; }
  .apphero { padding: 24px 0 56px; }
  .apphero__mark { top: 0; right: -34%; height: 40%; opacity: .08; }
  .section { padding-block: 44px; }
  .hero { padding: 32px 0 64px; }
  .contact-form, .thanks { padding: 24px 20px; }
}
@media (max-width: 360px) {
  .brand { font-size: 1.1rem; gap: 6px; }
  .brand img { width: 36px; }
  .compare tbody th, .compare td { padding-inline: 5px; font-size: .85rem; }
}
/* Windows high contrast (forced colors) removes shadows and background images: surfaces drawn with them get a real border, and the decorative background goes */
@media (forced-colors: active) {
  .face, .panel, .contact-form, .thanks, .about, .js .nav__links { border: 1px solid CanvasText; }
  .bg, .watermark, .apphero__mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* no 3D and no animation: the faces swap instantly, and the one turned away is hidden */
  .flip__inner { transition: none; transform: none !important; }
  .flip { transition: none; }
  .flip:hover { transform: none; }
  .top, .hero > *, .page > *, .notfound > *, .apphero > :not(.apphero__mark), .bg, .js .deal.is-in, .mark .c { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .deal:not(.is-in) { opacity: 1; }
  .nav a:not(.btn), .sitefoot a { transition: none; }
  .js .nav__links { transition: none; }
  .face--back { transform: none; }
  .face[inert] { visibility: hidden; }
}
