/* Termify — site styles. One file, no framework. Brand colours come from the logo. */

:root {
  --blue: #0949b4;
  --blue-700: #073b93;
  --blue-50: #eef3fc;
  --coral: #ee5150;
  --coral-50: #fdeeee;
  --slate: #3f4554;
  --ink: #1d2230;
  --text: #4a5163;
  --muted: #6b7385;
  --mist: #cbd5e3;
  --line: #e3e8f0;
  --tint: #f6f8fb;
  --white: #fff;
  --green: #12805c;
  --green-50: #e8f6f0;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(29 34 48 / .06), 0 8px 24px -8px rgb(29 34 48 / .12);
  --shadow-lg: 0 2px 4px rgb(29 34 48 / .04), 0 24px 48px -16px rgb(29 34 48 / .22);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 2px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { --container: 780px; }

.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 1rem; color: var(--white); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--font); text-decoration: none; white-space: nowrap;
  padding: .8rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .15s; }
.btn:hover .icon { transform: translateX(2px); }
.btn--sm { font-size: .9375rem; padding: .6rem 1rem; }
.btn--lg { font-size: 1.0625rem; padding: 1rem 1.5rem; }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 1px 2px rgb(9 73 180 / .3), 0 8px 20px -8px rgb(9 73 180 / .6); }
.btn--primary:hover { background: var(--blue-700); color: var(--white); }
.btn--ghost { color: var(--ink); border-color: var(--line); background: var(--white); }
.btn--ghost:hover { border-color: var(--mist); color: var(--ink); background: var(--tint); }
.btn--light { background: var(--white); color: var(--blue); }
.btn--light:hover { background: var(--blue-50); color: var(--blue-700); }

.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: .875rem; }
.lede { font-size: 1.1875rem; color: var(--text); }

/* Header: floating pill that sits over the top of the first section */
:root { --header-h: 84px; }
.site-header { position: sticky; top: 0; z-index: 50; padding-top: 12px; height: var(--header-h); margin-bottom: calc(-1 * var(--header-h)); pointer-events: none; }
.site-header > .container { pointer-events: auto; }
main > :first-child { padding-top: calc(clamp(3rem, 7vw, 6rem) + var(--header-h)); }

.pill {
  display: flex; align-items: center; gap: 1.5rem; height: 62px; padding: 0 10px 0 12px;
  background: rgb(255 255 255 / .92);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.lockup { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.lockup__icon { width: 38px; height: 38px; }
.lockup__word { width: auto; height: 22px; }

.pill__nav { display: flex; align-items: center; gap: 1.75rem; margin: 0 auto; font-size: .9375rem; font-weight: 500; }
.pill__nav a { color: var(--text); text-decoration: none; }
.pill__nav > a, .pill__nav .menu__trigger { white-space: nowrap; }
.pill__login { white-space: nowrap; }
/* Spanish labels are longer: tighter gaps on narrower desktops */
@media (max-width: 1180px) { .pill__nav { gap: 1.1rem; } }
/* Spanish menu needs more room: phone menu below 1100px */
@media (max-width: 1100px) {
  html[lang=es] .pill__nav, html[lang=es] .pill__login { display: none; }
  html[lang=es] .pill { justify-content: space-between; }
  html[lang=es] .mobile-menu { display: block; }
}
.pill__nav a:hover, .menu:hover .menu__trigger, .menu:focus-within .menu__trigger { color: var(--ink); }
.pill__actions { display: flex; align-items: center; gap: 1rem; }
.pill__login { color: var(--ink); font-weight: 600; font-size: .9375rem; text-decoration: none; padding: .5rem .25rem; }
.pill__login:hover { color: var(--blue); }

/* Documents menu: opens on hover or keyboard focus, no JavaScript */
.menu { position: relative; }
.menu__trigger { display: flex; align-items: center; gap: .25rem; padding: 1.25rem 0; }
.caret { width: .95em; height: .95em; transition: transform .15s; }
.menu:hover .caret, .menu:focus-within .caret { transform: rotate(180deg); }
.menu__panel {
  position: absolute; left: 50%; top: 100%; width: 40rem; padding: .75rem;
  translate: -50% 6px; opacity: 0; visibility: hidden; transition: opacity .15s, translate .15s, visibility 0s .15s;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.menu__panel::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; } /* hover bridge */
.menu:hover .menu__panel, .menu:focus-within .menu__panel { opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0s; }
.menu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.menu__grid a { display: flex; gap: .75rem; padding: .65rem .75rem; border-radius: 10px; font-size: .84rem; line-height: 1.4; color: var(--muted); }
.menu__grid a:hover, .menu__grid a:focus-visible { background: var(--tint); color: var(--muted); }
.menu__grid strong { display: block; color: var(--ink); font-size: .9rem; font-weight: 600; margin-bottom: .1rem; }
.menu__icon { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 9px; background: var(--blue-50); color: var(--blue); }
.menu__icon--coral { background: var(--coral-50); color: var(--coral); }
.menu__icon .icon { width: 1.1rem; height: 1.1rem; }
.menu__foot { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; padding: .8rem .75rem .35rem; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.pill__nav .menu__foot a { color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.menu__foot .icon { width: 1em; height: 1em; }

/* Mobile menu (details/summary, no JavaScript) */
.mobile-menu { display: none; }
/* Everything clickable shows the hand cursor (browsers leave <button> on the arrow by default). */
button, [role="button"], summary, select, label:has(> input[type=checkbox]), label:has(> input[type=radio]), input[type=color] { cursor: pointer; }
button:disabled, select:disabled, [aria-disabled="true"] { cursor: not-allowed; }
.mobile-menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; color: var(--ink); border: 1px solid var(--line); background: var(--white); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary .icon { width: 1.25rem; height: 1.25rem; }
/* Open, the button shows a cross so it's obvious how to close the menu. */
.mobile-menu .mobile-menu__close, .mobile-menu[open] .mobile-menu__open { display: none; }
.mobile-menu[open] .mobile-menu__close { display: block; }
.mobile-menu__panel {
  /* Anchored to the whole pill (same width, just below it), never taller than the screen, page dimmed behind. */
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 1rem;
  max-height: calc(100dvh - var(--header-h) - 1rem); overflow-y: auto; overscroll-behavior: contain;
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
/* Open: the page behind dims, but the header bar (logo, button, the close cross) stays bright above it.
   The dim layer also catches taps, so tapping outside closes the menu without pressing what's underneath. */
.menu-open .site-header::after { content: ""; position: fixed; inset: 0; z-index: -1; background: rgb(15 23 42 / .35); pointer-events: auto; }
.mobile-menu__main { display: grid; grid-template-columns: 1fr 1fr; column-gap: .25rem; }
.mobile-menu[open] summary { background: var(--ink); border-color: var(--ink); color: #fff; }
.mobile-menu[open] summary .icon { stroke-width: 2.4; }
.mobile-menu__label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 .5rem .4rem; }
.mobile-menu a { display: block; padding: .55rem .5rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.mobile-menu a:hover { background: var(--tint); }
.mobile-menu__main { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .pill__nav, .pill__login { display: none; }
  .pill { justify-content: space-between; }
  .mobile-menu { display: block; }
  .pill { position: relative; }
  .pill__actions { gap: .5rem; }
}
@media (max-width: 400px) {
  .lockup__word { height: 19px; }
  .pill .btn--sm { padding: .55rem .85rem; font-size: .875rem; }
}

/* Hero */
.hero {
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--blue-50), transparent 70%),
    radial-gradient(40rem 24rem at -10% 110%, #fdf3f3, transparent 70%);
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.375rem, 5.2vw, 3.75rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 1.25rem; }
.hero .lede { max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.herosite { margin-top: 2rem; max-width: 34rem; }
.herosite__box { display: flex; align-items: center; gap: .5rem; padding: .4rem .4rem .4rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg, 0 8px 24px rgba(16,24,40,.08)); transition: border-color .15s, box-shadow .15s; }
.herosite__box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.herosite__box > .icon { flex: none; width: 20px; height: 20px; color: var(--muted); }
.herosite__box input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 1.0625rem; color: var(--ink); padding: .6rem 0; }
.herosite__box .btn { flex: none; padding: .8rem 1.2rem; }
.herosite__note { margin-top: .75rem; font-size: .875rem; color: var(--muted); }
.herosite__note a { font-weight: 600; }
@media (max-width: 560px) {
  .herosite__box { flex-wrap: wrap; padding: .4rem; }
  .herosite__box > .icon { margin-left: .6rem; }
  .herosite__box input { padding: .7rem .2rem; }
  .herosite__box .btn { width: 100%; justify-content: center; }
}
.hero__points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; font-size: .9375rem; color: var(--muted); }
.hero__points li { display: flex; align-items: center; gap: .4rem; }
.hero__points .icon { color: var(--green); }

.hero__visual { position: relative; display: flex; flex-direction: column; }
/* "Your answers" sits on top of the paper's top edge; the paper's top padding leaves room for it. */
.answers {
  position: relative; z-index: 2; align-self: flex-start; width: min(17rem, 80%); margin-bottom: -2.25rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .9rem 1.1rem .7rem; font-size: .875rem; transform: rotate(-1.5deg);
}
.answers__title { font-weight: 700; color: var(--ink); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .35rem; }
.answers dl { margin: 0; display: grid; }
.answers dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-top: 1px solid var(--line); }
.answers dl div:first-child { border-top: 0; }
.answers dt { color: var(--muted); }
.answers dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }

.paper {
  margin-left: clamp(1.5rem, 5vw, 4rem); position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.6rem 1.25rem; font-size: .9rem; line-height: 1.6;
  padding-top: 3.25rem;
  transform: rotate(1.25deg);
}
.paper p { margin-bottom: .75rem; }
.paper__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: .9rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.paper__badge { font-weight: 700; color: var(--ink); }
.paper__meta { color: var(--muted); font-size: .8125rem; }
.paper__title { font-size: .9375rem; margin: 1rem 0 .4rem; letter-spacing: -.01em; }
.paper__title:first-of-type { margin-top: 0; }
.paper__foot { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .9rem; margin-top: .25rem; border-top: 1px solid var(--line); }
.hl { color: inherit; padding: .05em .2em; border-radius: 4px; }
.hl--blue { background: var(--blue-50); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--blue) 35%, transparent); }
.hl--coral { background: var(--coral-50); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--coral) 40%, transparent); }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .8125rem; font-weight: 600; color: var(--slate); background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .7rem; }
.chip .icon { width: 1em; height: 1em; }
.chip--ok { color: var(--green); background: var(--green-50); border-color: transparent; }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 34rem; }
}
@media (max-width: 560px) {
  .paper { margin-left: .75rem; transform: none; }
}

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--tint); border-block: 1px solid var(--line); }
.section__head { max-width: 44rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section__head h2 { font-size: clamp(1.875rem, 3.6vw, 2.625rem); font-weight: 800; margin-bottom: 1rem; }
.section__head p:not(.eyebrow) { font-size: 1.125rem; }

/* Documents */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.doc {
  display: flex; flex-direction: column; gap: .6rem;
  padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  scroll-margin-top: 100px;
}
.doc:hover { border-color: var(--mist); box-shadow: var(--shadow); transform: translateY(-2px); }
.doc:target { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.doc__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 10px; background: var(--blue-50); color: var(--blue); margin-bottom: .4rem; }
.doc:nth-child(4n+2) .doc__icon, .doc:nth-child(4n+4) .doc__icon { background: var(--coral-50); color: var(--coral); }
.doc__icon .icon { width: 1.4rem; height: 1.4rem; }
.doc h3 { font-size: 1.125rem; }
.doc p { font-size: .9375rem; }
.doc__for { margin-top: auto; padding-top: .75rem; border-top: 1px dashed var(--line); color: var(--muted); font-size: .875rem !important; }
.doc__for strong { color: var(--slate); font-weight: 600; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.step__num { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--blue); color: var(--white); font-weight: 700; margin-bottom: 1.25rem; }
.step h3 { font-size: 1.25rem; margin-bottom: .6rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3.5rem; }
.feature { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.1rem; }
.feature__icon { grid-row: span 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); color: var(--slate); }
.feature h3 { font-size: 1.1875rem; align-self: center; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; gap: 2rem; } }

.platforms { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.platforms p { color: var(--muted); font-size: .9375rem; }
.platforms ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.platforms li { font-size: .875rem; font-weight: 600; color: var(--slate); padding: .4rem .85rem; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); }

/* Laws */
.laws { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.law { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; border-top: 3px solid var(--blue); }
.law h3 { font-size: 1.1875rem; margin-bottom: .6rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; }
.law h3 span { font-size: .8125rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.law p { font-size: .9375rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; font-size: 1.125rem; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.5rem; height: 1.5rem; margin-top: .05rem; border-radius: 999px; background: var(--tint) center/.75rem no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%233f4554' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M6 2v8M2 6h8'/%3E%3C/svg%3E");
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue); }
.faq details p { padding: 0 2.5rem 1.5rem 0; }

/* CTA band */
.cta-band { background: var(--blue); color: rgb(255 255 255 / .85); padding: clamp(3rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40rem 20rem at 100% 0%, rgb(255 255 255 / .12), transparent 70%); pointer-events: none; }
.cta-band__inner { position: relative; display: flex; align-items: center; gap: 1.75rem; }
.cta-band__inner > div { flex: 1; }
.cta-band h2 { color: var(--white); font-size: clamp(1.625rem, 3vw, 2.125rem); font-weight: 800; margin-bottom: .4rem; }
.cta-band img { height: 72px; width: auto; }
@media (max-width: 760px) { .cta-band__inner { flex-direction: column; align-items: flex-start; } }

/* Footer */
.site-footer { background: var(--ink); color: rgb(255 255 255 / .65); padding: 4rem 0 2.5rem; font-size: .9375rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgb(255 255 255 / .1); }
.site-footer__brand .lockup { margin-bottom: 1rem; }
.site-footer__brand p { max-width: 20rem; }
.site-footer h2 { color: var(--white); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer li + li { margin-top: .5rem; }
.site-footer a { color: rgb(255 255 255 / .75); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__legal { padding-top: 1.5rem; display: grid; gap: .5rem; font-size: .8125rem; color: rgb(255 255 255 / .5); }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* 404 */
.notfound { text-align: center; }
.notfound h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.notfound .lede { margin-inline: auto; }
.notfound__docs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 2rem auto 0; max-width: 38rem; text-align: left; }
@media (max-width: 560px) { .notfound__docs { grid-template-columns: 1fr; } }
.notfound__docs a { display: flex; align-items: center; gap: .65rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s; }
.notfound__docs a:hover { border-color: var(--blue); color: var(--blue); }
.notfound__docs .icon { flex: none; width: 1.15rem; height: 1.15rem; color: var(--blue); }
.notfound__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Utilities */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section__head--center { margin-inline: auto; text-align: center; }

/* Document landing page hero */
.dhero { padding-bottom: clamp(3rem, 6vw, 5rem); background: radial-gradient(60rem 28rem at 50% -10%, var(--blue-50), transparent 70%); text-align: center; }
.dhero__inner { display: flex; flex-direction: column; align-items: center; }
.dhero h1 { font-size: clamp(2.375rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 1.1rem; }
.dhero .lede { max-width: 40rem; }
.dhero .hero__actions { justify-content: center; }
.dhero__icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 16px; background: var(--white); color: var(--blue); box-shadow: var(--shadow); border: 1px solid var(--line); margin: 1.75rem 0 1.25rem; }
.dhero__icon .icon { width: 1.75rem; height: 1.75rem; }
.dhero__laws { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2rem; }
.dhero__laws li { display: inline-flex; align-items: center; gap: .35rem; font-size: .8125rem; font-weight: 600; color: var(--slate); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .75rem; }
.dhero__laws .icon { width: 1em; height: 1em; color: var(--green); }

.crumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .4rem; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--mist); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

/* Live preview widget */
.preview { display: grid; grid-template-columns: 22rem 1fr; gap: 1.5rem; align-items: start; }
.preview__form { position: sticky; top: calc(var(--header-h) + 1rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); display: grid; gap: 1.25rem; }
.preview__label { font-weight: 700; color: var(--ink); }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; padding: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: .55rem; }
.field legend span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); opacity: .8; margin-left: .25rem; }
.field input[type=text] { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); transition: border-color .15s, background .15s, box-shadow .15s; }
.field input[type=text]:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px var(--blue-50); }
.choices { display: flex; flex-wrap: wrap; gap: .4rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; font-weight: 500; color: var(--slate); padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); transition: all .15s; user-select: none; }
.choice input[type=checkbox] + span::before { content: ""; width: .8rem; height: .8rem; border-radius: 4px; border: 1.5px solid var(--mist); transition: all .15s; }
/* Hover only where there's a real pointer: on phones the last tapped option kept the tint after being unticked (owner, 2026-11-18). */
@media (hover: hover) { .choice:hover span { border-color: var(--mist); background: var(--tint); } }
.choice:active span { background: var(--tint); }
.choice input:checked + span { color: var(--blue); border-color: var(--blue); background: var(--blue-50); }
.choice input[type=checkbox]:checked + span::before { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5l2.2 2.2L9.5 3.5'/%3E%3C/svg%3E") center/100% no-repeat; }
.choice input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 2px; }
.preview__note { font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.preview.is-live .preview__submit { display: none; }

.preview__paper { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.preview__bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: var(--tint); border-bottom: 1px solid var(--line); }
.preview__bar span { width: .65rem; height: .65rem; border-radius: 50%; background: var(--mist); }
.preview__bar em { font-style: normal; font-size: .8125rem; color: var(--muted); margin: 0 auto; padding: .2rem .9rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; }

.pdoc { position: relative; max-height: 40rem; overflow-y: auto; padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem; font-size: .9375rem; line-height: 1.7; color: var(--text); scrollbar-width: thin; }
.pdoc__head { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: .75rem; }
.pdoc__kicker { font-size: .8125rem; font-weight: 700; color: var(--blue); letter-spacing: .04em; text-transform: uppercase; }
.pdoc__title { font-size: 1.75rem; font-weight: 800; margin: .2rem 0 .3rem; }
.pdoc__date { font-size: .8125rem; color: var(--muted); }
.pdoc__stats { font-size: .8125rem; color: var(--muted); margin-bottom: 1.25rem; }
.pdoc__section { margin-bottom: 1.4rem; }
.pdoc h3 { font-size: 1.0625rem; margin-bottom: .5rem; letter-spacing: -.01em; }
.pdoc p { margin-bottom: .6rem; }
.pdoc ul { list-style: disc; padding-left: 1.2rem; margin-bottom: .6rem; display: grid; gap: .35rem; }
.pdoc a { color: var(--blue); text-decoration: none; }
.pdoc li::marker { color: var(--mist); }
.pdoc strong { color: var(--ink); font-weight: 600; }
.pdoc .is-cond { border-radius: 4px; }
.pdoc .is-new { animation: pdoc-new 2.2s ease-out; }
@keyframes pdoc-new {
  0%, 35% { background: #fff4c2; box-shadow: 0 0 0 4px #fff4c2; }
  100% { background: transparent; box-shadow: 0 0 0 4px transparent; }
}
@media (prefers-reduced-motion: reduce) { .pdoc .is-new { animation: none; } }

@media (max-width: 900px) {
  .preview { grid-template-columns: 1fr; }
  .preview__form { position: static; }
  .pdoc { max-height: 32rem; }
}

/* Who needs it (split layout) */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split__head h2 { font-size: clamp(1.875rem, 3.6vw, 2.625rem); font-weight: 800; margin-bottom: 1rem; }
.split__head p:not(.eyebrow) { font-size: 1.125rem; }
.who { display: grid; gap: 1rem; }
.who li { display: flex; gap: 1rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); }
.who__check { flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--green-50); color: var(--green); }
.who__check .icon { width: 1rem; height: 1rem; }
.who h3 { font-size: 1.0625rem; margin-bottom: .2rem; }
.who p { font-size: .9375rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* What's included */
.includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.includes li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.includes__num { display: block; font-size: .8125rem; font-weight: 800; color: var(--coral); letter-spacing: .06em; margin-bottom: .75rem; }
.includes h3 { font-size: 1.125rem; margin-bottom: .4rem; }
.includes p { font-size: .9375rem; }
@media (max-width: 900px) { .includes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .includes { grid-template-columns: 1fr; } }

/* Linked document cards */
.doc--link { position: relative; }
.doc--link h3 a { color: var(--ink); text-decoration: none; }
.doc--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.doc--link:hover h3 a { color: var(--blue); }
.docs--related { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.try__more { margin-top: 1.75rem; text-align: center; font-size: .9375rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .9rem; }
.try__more a { font-weight: 600; text-decoration: none; }
.try__more a:hover { text-decoration: underline; }

/* Footer: 4 columns now */
.site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }

/* Platform pages */
.includes--steps { grid-template-columns: repeat(4, 1fr); }
.includes--steps .includes__num { color: var(--blue); }
@media (max-width: 1000px) { .includes--steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .includes--steps { grid-template-columns: 1fr; } }
.tip { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--blue-50); color: var(--slate); font-size: .9375rem; }
.tip .icon { color: var(--blue); margin-top: .15rem; }
.platform-links { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.platform-links p { color: var(--muted); font-size: .9375rem; }
.platform-links ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.platform-links a { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.platform-links a:hover { border-color: var(--blue); color: var(--blue); }
.platform-links .icon { width: 1rem; height: 1rem; color: var(--blue); }

/* Pricing */
.dhero--pricing { padding-bottom: 1rem; }
.section--pricing { padding-top: 2rem; }
.plans { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 1.25rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 2rem 1.75rem; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.plan--featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
.plan__badge { position: absolute; top: -.8rem; left: 1.75rem; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--white); background: var(--blue); padding: .3rem .7rem; border-radius: 999px; }
.plan__badge--quiet { background: var(--green-50); color: var(--green); }
.plan__name { font-size: 1.25rem; }
.plan__price { display: flex; align-items: baseline; gap: .5rem; color: var(--muted); }
.plan__price strong { font-size: 2.75rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.plan__terms { font-size: .9375rem; color: var(--text); min-height: 3em; }
.plan__terms strong { color: var(--ink); }
.plan__list { display: grid; gap: .55rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--line); flex: 1; }
.plan__list li { display: flex; gap: .55rem; font-size: .9375rem; }
.plan__list .icon { color: var(--green); width: 1.1rem; height: 1.1rem; margin-top: .2rem; }
.plan .btn { width: 100%; }
.plan__current { color: var(--green, #0a7a43); border-color: currentColor; }
.plan__current .icon { width: 1rem; height: 1rem; }
.plans__guarantee { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: 1.75rem; color: var(--muted); font-size: .9rem; text-align: center; flex-wrap: wrap; }
.plans__guarantee .icon { color: var(--green); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } .plan--featured { order: -1; } .plans > .plan:first-child { order: 1; } }   /* phones: paid plans together, the free preview last */

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; position: relative; }
.timeline li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.timeline__day { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); background: var(--blue-50); padding: .25rem .6rem; border-radius: 999px; margin-bottom: .8rem; }
.timeline h3 { font-size: 1.1875rem; margin-bottom: .35rem; }
.timeline p { font-size: .9375rem; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }
.preview__continue { width: 100%; }

/* Preview watermark: a faint diagonal "PREVIEW" behind the text. Not on saved documents or downloads. */
.pdoc--watermark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='180'%3E%3Ctext x='130' y='100' text-anchor='middle' transform='rotate(-24 130 90)' font-family='Arial, sans-serif' font-size='26' font-weight='700' letter-spacing='6' fill='%230949b4' fill-opacity='0.055'%3EPREVIEW%3C/text%3E%3C/svg%3E");
  background-attachment: local;
}
.preview__bar em { font-weight: 600; letter-spacing: .01em; }
.preview__covers { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .8125rem; }
.preview__covers span { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; margin-right: .15rem; }
.preview__covers em { font-style: normal; font-weight: 600; color: var(--green); background: var(--green-50); padding: .2rem .55rem; border-radius: 999px; }
.field__help { font-size: .8125rem; color: var(--muted); margin: -.2rem 0 .55rem; line-height: 1.45; }

/* Content pages: FAQ, laws, how it works */
.dhero--compact { padding-bottom: clamp(2rem, 4vw, 3rem); }
.dhero--compact h1 { margin-top: 1.25rem; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section__more { margin-top: 1.75rem; font-weight: 600; }
.section__more a { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }
.section__more a:hover .icon { transform: translateX(2px); }
.section__more .icon { transition: transform .15s; }

.faqpage { display: grid; grid-template-columns: 13rem 1fr; gap: clamp(2rem, 5vw, 4rem); max-width: 60rem; margin-inline: auto; }
.faqpage__toc { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; display: grid; gap: .25rem; }
.faqpage__toc a { padding: .45rem .75rem; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
.faqpage__toc a:hover { background: var(--tint); color: var(--blue); }
.faqpage__group { font-size: 1.375rem; margin: 2.25rem 0 .75rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.faqpage__group:first-child { margin-top: 0; }
.faqpage__more { margin-top: 2.5rem; color: var(--muted); }
@media (max-width: 760px) { .faqpage { grid-template-columns: 1fr; } .faqpage__toc { position: static; display: flex; flex-wrap: wrap; } }

.lawgroup { font-size: 1.375rem; margin-bottom: 1rem; }
.lawcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1rem; }
.lawcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 1.4rem; }
.lawcard h3 { font-size: 1.25rem; }
.lawcard__full { font-size: .875rem; color: var(--muted); margin: .2rem 0 1rem; }
.lawcard dl { margin: 0 0 1rem; display: grid; gap: .2rem; font-size: .9375rem; }
.lawcard dt { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; }
.lawcard dd { margin: 0; }
.lawcard__docs { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding-top: .9rem; border-top: 1px dashed var(--line); font-size: .85rem; }
.lawcard__docs span { color: var(--muted); font-weight: 600; margin-right: .2rem; }
.lawcard__docs a { font-weight: 600; text-decoration: none; background: var(--blue-50); padding: .2rem .6rem; border-radius: 999px; }
.lawnote { color: var(--muted); font-size: .9rem; text-align: center; }

.hiw { display: grid; gap: 1rem; max-width: 52rem; margin-inline: auto; }
.hiw__step { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.75rem; }
.hiw__n { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: var(--blue); color: var(--white); font-weight: 800; font-size: 1.125rem; }
.hiw__step h2 { font-size: 1.375rem; margin-bottom: .4rem; }
.hiw__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.hiw__chips li { font-size: .85rem; font-weight: 600; color: var(--blue); background: var(--blue-50); border: 1px solid #cfdcf4; padding: .3rem .75rem; border-radius: 999px; }
.hiw__links { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .9375rem; color: var(--muted); }
.hiw__links a { font-weight: 600; }

.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.compare__row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.compare__row > * { padding: .9rem 1.1rem; border-top: 1px solid var(--line); font-size: .9375rem; }
.compare__row--head > * { border-top: 0; font-weight: 700; color: var(--ink); background: var(--tint); }
.compare__row [role=rowheader] { font-weight: 600; color: var(--ink); }
.compare .is-us { background: var(--blue-50); color: var(--blue); font-weight: 700; }
.compare__row--head .is-us { background: var(--blue); color: var(--white); }
.compare__note { margin-top: 1rem; text-align: center; color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .compare__row { grid-template-columns: 1.2fr 1fr 1fr 1fr; } .compare__row > * { padding: .7rem .5rem; font-size: .8rem; } }

/* Legal pages */
.legal h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { margin-bottom: .6rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 19rem; gap: clamp(1.5rem, 4vw, 3rem); max-width: 62rem; margin-inline: auto; align-items: start; }
.card-like { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.contact form { display: grid; gap: 1.2rem; }
.contact form .btn { justify-self: start; }
.contact textarea, .contact input[type=email] { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); }
.contact textarea { resize: vertical; line-height: 1.55; }
.contact textarea:focus, .contact input[type=email]:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px var(--blue-50); }
.field.has-error input, .field.has-error textarea { border-color: #f04438; }
.field__error { color: #b42318; font-size: .8125rem; margin-top: .35rem; }
.form-error { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; padding: .6rem .8rem; border-radius: 10px; font-size: .9rem; }
.field > label span { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: .8; margin-left: .25rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__sent { display: flex; gap: 1rem; align-items: flex-start; }
.contact__sent h2 { font-size: 1.25rem; margin-bottom: .3rem; }
.contact__sent p + p { margin-top: .75rem; }
.contact__side { display: grid; gap: 1rem; }
.contact__tip { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; background: var(--tint); }
.contact__tip h2 { font-size: 1rem; margin-bottom: .3rem; }
.contact__tip p { font-size: .9375rem; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* Document page hero with the first question ("start card") */
.dhero--split { text-align: left; }
.dhero__split { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-areas: "copy card" "laws card"; column-gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.dhero__copy { grid-area: copy; align-self: end; }
.dhero--split .dhero__laws { grid-area: laws; align-self: start; }
.startcard { grid-area: card; }
.dhero--split .crumbs ol { justify-content: flex-start; }
.dhero--split h1 { margin-top: 1.1rem; }
.dhero--split .dhero__laws { justify-content: flex-start; margin-top: 1.5rem; }
.startcard { display: grid; gap: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; box-shadow: var(--shadow-lg); }
.startcard__title { display: flex; align-items: center; gap: .7rem; font-weight: 800; font-size: 1.125rem; color: var(--ink); }
.startcard__title .doc__icon { margin: 0; width: 2.4rem; height: 2.4rem; }
.startcard .choice span { font-size: .95rem; padding: .55rem .95rem; }
.startcard .btn { width: 100%; }
.startcard__hint { display: flex; align-items: center; gap: .35rem; margin-top: .45rem; font-size: .8125rem; color: var(--muted); }
.startcard__hint .icon { width: 14px; height: 14px; color: var(--green, #16a34a); flex: none; }
.startcard__note { text-align: center; font-size: .8125rem; color: var(--muted); margin-top: -.35rem; }
.startcard__alt { text-align: center; font-size: .875rem; font-weight: 600; text-decoration: none; }
@media (max-width: 900px) {
  /* Phones: the start card right after the intro, the law badges after it. */
  .dhero__split { grid-template-columns: 1fr; grid-template-areas: "copy" "card" "laws"; row-gap: 1.5rem; }
  .dhero--split .dhero__laws { margin-top: 0; }
}

/* ---------- Motion ----------
   Short (≤ .5 s), soft easing, nothing that bounces or holds content back. Content never depends on it:
   scroll reveals only apply once site.js has marked an element as below the fold, so without JavaScript
   (or with reduced motion) everything is simply there. */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }

/* Buttons and choice chips: a small press */
.btn:active { transform: translateY(1px) scale(.985); }
.choice:active span { transform: scale(.97); }
.choice span { transition: color .15s, border-color .15s, background-color .15s, transform .12s; }

/* Hero: the example answers and the policy settle in, then the highlights sweep on */
.hero__visual .answers { animation: rise .6s var(--ease) .1s backwards; }
.hero__visual .paper { animation: rise .6s var(--ease) .25s backwards; }
.hero__visual .hl { background-repeat: no-repeat; animation: sweep .7s var(--ease) both; }
.hero__visual .hl--blue { animation-delay: .75s; }
.hero__visual .hl--coral { animation-delay: 1s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes sweep { from { background-size: 0 100%; box-shadow: none; } to { background-size: 100% 100%; } }
.hero__visual .hl--blue { background-image: linear-gradient(var(--blue-50), var(--blue-50)); background-color: transparent; }
.hero__visual .hl--coral { background-image: linear-gradient(var(--coral-50), var(--coral-50)); background-color: transparent; }

/* Hero website box: the globe nods toward the field when it's focused */
.herosite__box > .icon { transition: color .15s, transform .2s var(--ease); }
.herosite__box:focus-within > .icon { color: var(--blue); transform: rotate(-12deg); }

/* Menus: the mobile menu drops in like the desktop one */
.mobile-menu[open] .mobile-menu__panel { animation: drop .18s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* FAQ: answers open smoothly where the browser supports animating <details> */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: hidden; opacity: 0; transition: height .25s var(--ease), opacity .2s, content-visibility .25s allow-discrete; }
  .faq details[open]::details-content { height: auto; opacity: 1; }
}

/* Cards and steps lift a touch on hover (documents already do) */
.feature, .step, .law { transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.feature:hover, .law:hover { transform: translateY(-2px); }
.section__more a .icon { transition: transform .15s; }
.section__more a:hover .icon { transform: translateX(3px); }

/* Scroll reveal (site.js adds .rv to elements below the fold, then .rv-in as they come into view) */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--rv-delay, 0s); }
.rv.rv-in { opacity: 1; transform: none; }
@media print { .rv { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rv { opacity: 1; transform: none; }
}

/* Touch screens: small links and buttons get ~40px of tappable height (looks the same with a mouse). */
@media (pointer: coarse) {
  .site-header .btn--sm { min-height: 40px; }
  .site-footer li a, .crumbs a, .startcard__alt, .herosite__note a { display: inline-block; padding-block: .55rem; }
  .section__more a { padding-block: .55rem; }
  .site-footer li { margin: 0; }
}

/* Laws: jump list of regions under the hero */
.lawjump { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.lawjump a { padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--slate); font-size: .875rem; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s; }
.lawjump a:hover { border-color: var(--blue); color: var(--blue); }
section[id] { scroll-margin-top: calc(var(--header-h, 80px) + 1rem); }
@media (max-width: 760px) {
  .faqpage__toc { gap: .5rem; }
  .faqpage__toc a { border: 1px solid var(--line); border-radius: 999px; background: var(--white); padding: .5rem .9rem; font-size: .875rem; font-weight: 600; }
}
@media (max-width: 560px) {
  .hiw__step { grid-template-columns: 1fr; gap: .75rem; }   /* the number sits above the text instead of squeezing it */
}

/* Cookie banner landing: centred website box and a mock site with the banner */
.herosite--center { margin-inline: auto; width: 100%; }
.herosite--center .herosite__note { text-align: center; }
.cbmock { position: relative; max-width: 56rem; margin: 0 auto; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-lg); overflow: hidden; }
.cbmock__bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--tint); }
.cbmock__bar span { width: .65rem; height: .65rem; border-radius: 50%; background: var(--mist); }
.cbmock__bar em { margin-left: .75rem; font-style: normal; font-size: .8rem; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .8rem; }
.cbmock__page { padding: 2rem 2rem 9rem; display: grid; gap: .7rem; }
.cbmock__line { height: .7rem; width: 70%; border-radius: 6px; background: var(--tint); }
.cbmock__line--h { height: 1.4rem; width: 45%; background: #e6ecf5; }
.cbmock__line--s { width: 50%; }
.cbmock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.cbmock__grid div { height: 6rem; border-radius: 12px; background: var(--tint); }
.cbmock__banner { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; align-items: center; gap: 1.25rem; padding: 1rem 1.25rem; border-radius: 14px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 32px rgb(29 34 48 / .16); font-size: .875rem; color: var(--slate); animation: rise .6s var(--ease) .4s backwards; }
.cbmock__title { font-weight: 700; color: var(--ink); margin-bottom: .2rem; }
.cbmock__btns { display: flex; gap: .5rem; flex: none; }
.cbmock__btns span { padding: .55rem .95rem; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; color: var(--ink); white-space: nowrap; }
.cbmock__btns .is-main { background: var(--blue); border-color: var(--blue); color: var(--white); }
@media (max-width: 760px) {
  .cbmock__page { padding: 1.25rem 1.25rem 15rem; }
  .cbmock__grid { grid-template-columns: 1fr 1fr; } .cbmock__grid div:nth-child(3) { display: none; }
  .cbmock__banner { flex-direction: column; align-items: stretch; }
  .cbmock__btns { flex-wrap: wrap; } .cbmock__btns span { flex: 1; text-align: center; }
}
.nowrap { white-space: nowrap; }
@media (max-width: 560px) {
  /* Homepage document cards on phones: the essentials only (the "Best for" line is on each document's own page). */
  .docs .doc { padding: 1.1rem 1.2rem; gap: .35rem; }
  .docs .doc__for { display: none; }
}
/* A lone last card in the includes grid spans the row instead of leaving a gap */
.includes:not(.includes--steps) li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
@media (max-width: 900px) { .includes:not(.includes--steps) li:last-child:nth-child(3n+1) { grid-column: auto; } .includes:not(.includes--steps) li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 560px) { .includes:not(.includes--steps) li:last-child { grid-column: auto; } }

/* Law pages (/gdpr-compliant …) */
.lawintro h2 { font-size: 1.75rem; margin-bottom: .75rem; }
.lawintro h3 { font-size: 1.125rem; margin: 1.75rem 0 .75rem; }
.checklist { display: grid; gap: .55rem; }
.checklist li { display: flex; gap: .55rem; align-items: flex-start; }
.checklist .icon { flex: none; color: var(--green); margin-top: .2rem; }
.reqs { max-width: 56rem; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.reqs__row { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1.5rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.reqs__row:first-child { border-top: 0; }
.reqs__row--head { background: var(--tint); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-block: .7rem; }
.reqs__row span:first-child { font-weight: 600; color: var(--ink); }
.reqs__row span:last-child { display: flex; gap: .5rem; color: var(--text); }
.reqs__row span:last-child .icon { flex: none; color: var(--green); margin-top: .2rem; }
@media (max-width: 640px) { .reqs__row { grid-template-columns: 1fr; gap: .35rem; } .reqs__row--head { display: none; } }
.lawcard h3 a { color: inherit; text-decoration: none; } .lawcard h3 a:hover { color: var(--blue); }
.lawcard__more { margin-top: .6rem; } .lawcard__more a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .9rem; text-decoration: none; } .lawcard__more .icon { width: 1rem; height: 1rem; }
/* Language switch (EN / ES) in the header */
.site-footer__social { margin-top: 1rem; } .site-footer__social a { display: inline-flex; align-items: center; gap: .45rem; color: var(--white); text-decoration: none; font-weight: 500; } .site-footer__social a:hover { text-decoration: underline; } .site-footer__social .icon { width: 1.15rem; height: 1.15rem; }
.site-footer__lang { display: flex; align-items: center; gap: .4rem; margin-top: 1rem; } .site-footer__lang .icon { width: 1rem; height: 1rem; } .site-footer__lang a { color: var(--white); }
.legal__note { font-size: .875rem; color: var(--muted); background: var(--tint); border-radius: 10px; padding: .6rem .9rem; margin-bottom: 1.5rem; }
/* Spanish pages: the preview watermark in Spanish */
html[lang="es"] .pdoc--watermark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='180'%3E%3Ctext x='150' y='100' text-anchor='middle' transform='rotate(-24 150 90)' font-family='Arial, sans-serif' font-size='24' font-weight='700' letter-spacing='5' fill='%230949b4' fill-opacity='0.055'%3EVISTA PREVIA%3C/text%3E%3C/svg%3E");
}

/* Signed-out preview: sections after the first few keep their heading; their text isn't sent, only grey lines. */
.pdoc__section.is-locked h3 { color: #8a93a6; }
.pdoc__section.is-locked h3::after { content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .45em; vertical-align: -.05em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.pdoc__locked { display: grid; gap: .55rem; padding: .3rem 0 .2rem; user-select: none; }
.pdoc__locked i { display: block; height: .62rem; border-radius: 99px; background: #e8ecf3; }
.pdoc__locked i:nth-child(3n+2) { width: 92%; } .pdoc__locked i:nth-child(3n) { width: 78%; } .pdoc__locked i:last-child { width: 55%; }

/* Answer cards: options with a line of explanation (start card, generator) */
.choices--cards { display: grid; gap: .6rem; }
.choices--two { grid-template-columns: 1fr 1fr; }
.choice--card { display: block; }
.choice--card span { display: block; height: 100%; padding: .95rem 1.1rem .95rem 2.6rem; border-radius: 14px; text-align: left; font-size: 1rem; font-weight: 700; color: var(--ink); position: relative; }
.choice--card input + span::before { position: absolute; left: 1rem; top: 1.12rem; }
.choice--card input[type=radio] + span::before { content: ""; width: .95rem; height: .95rem; border-radius: 50%; border: 1.5px solid var(--mist); }
.choice--card input[type=radio]:checked + span::before { border: 5px solid var(--blue); }
.choice--card small { display: block; margin-top: .2rem; font-size: .8125rem; font-weight: 450; color: var(--muted); line-height: 1.4; }
.choice--card input:checked + span small { color: var(--slate); }
@media (max-width: 420px) { .choices--two { grid-template-columns: 1fr; } }
.startcard__q legend { font-size: 1.0625rem; font-weight: 750; color: var(--ink); text-transform: none; letter-spacing: -.01em; margin-bottom: .6rem; }
.startcard__q legend span { display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; margin: .15rem 0 0; }
.choice--card input[type=checkbox] + span::before { width: 1rem; height: 1rem; }
.startcard .choice--card span { padding: .95rem 1.1rem .95rem 2.6rem; font-size: 1rem; }
/* Document pages: green is kept for the main button only (it stands out most when nothing else is green) */
.dhero__laws .icon, .who__check { color: var(--blue); }
.who__check { background: var(--blue-50); }
.preview__covers em { color: var(--blue); background: var(--blue-50); }

/* Footer: legal links in one wrapping row (no stray "·" at line starts); on phones Documents and Product side by
   side, platforms as one short wrapped line under them. */
.site-footer__row { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
@media (max-width: 860px) {
  .site-footer__grid { row-gap: 2rem; }
  .site-footer__platforms { order: 3; grid-column: 1 / -1; }
  .site-footer__platforms ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
  .site-footer__platforms li + li { margin-top: 0; }
}
/* "See all …" links: the arrow follows the last word, also when the text wraps. */
.section__more a { display: inline; }
.section__more a .icon { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.2em; margin-left: .1rem; }
.lawcard__more a { display: inline; } .lawcard__more a .icon { display: inline-block; vertical-align: -.2em; margin-left: .1rem; }

/* "Works with": an even grid of grey platform marks (4 × 2; 2 × 4 on phones). */
.platforms { display: block; text-align: center; }
.platforms > p { margin-bottom: 1.1rem; font-size: .9375rem; color: var(--muted); }
.platforms__grid { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.platforms__grid li { padding: 0; border: 0; background: none; border-radius: 0; font-size: inherit; }
.platforms__grid li > a, .platforms__grid li > span { display: flex; align-items: center; justify-content: center; gap: .6rem; height: 56px; padding: 0 .75rem;
  border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--slate); font-weight: 650; font-size: .9375rem; text-decoration: none; }
.platforms__grid svg { width: 22px; height: 22px; flex: none; fill: #6b7486; }
.platforms__grid a { transition: border-color .15s, color .15s; }
.platforms__grid a:hover { border-color: var(--blue); color: var(--blue); }
.platforms__grid a:hover svg { fill: var(--blue); }
@media (max-width: 640px) { .platforms__grid { grid-template-columns: 1fr 1fr; gap: .6rem; } .platforms__grid li > a, .platforms__grid li > span { justify-content: flex-start; padding: 0 1rem; } }

/* Live preview: a clean page (no fake browser bar, no watermark); the bottom fades to show there's more. */
.preview__paper .pdoc { -webkit-mask-image: linear-gradient(#000 calc(100% - 4rem), transparent); mask-image: linear-gradient(#000 calc(100% - 4rem), transparent); padding-bottom: 4rem; }

/* Phones: once scrolled, a soft band behind the header (no text peeking above it); hidden while scrolling down. */
@media (max-width: 900px) {
  .site-header { transition: transform .25s var(--ease); }
  .site-header::before { content: ""; position: absolute; inset: 0 0 -6px; background: rgb(246 248 252 / .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: opacity .2s; pointer-events: none; }
  .site-header.is-scrolled::before { opacity: 1; }
  .site-header.is-hidden { transform: translateY(calc(-100% - 8px)); }
  .site-header:focus-within { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }

.site-header > .container { position: relative; }
/* Mobile menu: documents with their icons (one column, easy to scan), pages in two columns, then log in + language. */
.mobile-menu__docs a { display: flex; align-items: center; gap: .7rem; padding: .45rem .5rem; font-weight: 600; }
.mobile-menu__docs .menu__icon { width: 32px; height: 32px; flex: none; }
.mobile-menu__main a { font-weight: 600; }
.mobile-menu__foot { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.mobile-menu__foot:not(:has(.btn)) { justify-content: flex-start; }   /* only the language link: line it up with the list below */
.mobile-menu__foot .btn { flex: 1; display: inline-flex; justify-content: center; font-weight: 600; }
.mobile-menu a.mobile-menu__acct { gap: .5rem; padding: .75rem 1rem; color: var(--blue); background: var(--blue-50); border: 1.5px solid var(--blue); border-radius: 999px; font-weight: 700; }
.mobile-menu a.mobile-menu__acct:hover { background: var(--blue); color: var(--white); }
.mobile-menu__acct .icon { width: 1.15rem; height: 1.15rem; flex: none; }
.mobile-menu__lang { display: inline-flex !important; align-items: center; gap: .4rem; color: var(--slate) !important; white-space: nowrap; }
.mobile-menu__lang .icon { width: 1.1rem; height: 1.1rem; }
/* Phones: section headings a step smaller, so more of each section fits on screen. */
@media (max-width: 640px) { .section__head h2 { font-size: 1.625rem; } .section { padding-block: 3.25rem; } }
.platforms__grid svg.is-word { width: auto; height: 20px; }
.platforms__grid svg.is-word[viewBox^="0 9.58"] { height: 22px; }

/* Start card: the optional website field (same card on the home page and every document page). */
.hero__copy .startcard { margin-top: 2rem; max-width: 30rem; }
/* Long document names ("Generate my terms and conditions") wrap instead of widening the page. */
.startcard .btn { white-space: normal; text-wrap: balance; }
.startcard, .dhero__copy, .hero__copy { min-width: 0; }

/* "Here's what you get": a real document excerpt, read-only, fading out, then one button. */
.excerpt { max-width: 46rem; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.excerpt__doc { max-height: 34rem; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.excerpt__doc .is-locked { display: none; }
.excerpt__cta { text-align: center; margin-top: 2rem; }
.excerpt__cta p { margin-top: .8rem; font-size: .875rem; color: var(--muted); }
@media (max-width: 640px) { .excerpt__doc { max-height: 30rem; } }

/* Page tops (2026-11-09): less space under the menu everywhere, and title-only heroes (Contact, FAQ, About…) sit close to their content */
main > .dhero:first-child { padding-top: calc(clamp(2rem, 4.5vw, 3.75rem) + var(--header-h)); }
main > .dhero--compact:first-child, main > .dhero--pricing:first-child { padding-top: calc(clamp(1.5rem, 3.5vw, 2.75rem) + var(--header-h)); }
.dhero--compact { padding-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.dhero--compact h1 { margin-bottom: .6rem; }
.dhero--compact + .section, .dhero--compact + .section--tight { padding-top: clamp(.75rem, 2vw, 1.5rem); }
.mobile-menu__foot:not(:has(a)) { display: none; }   /* signed in on a page with no other language: nothing to show there */
.mobile-menu__foot:not(:has(.mobile-menu__acct)) { margin-bottom: .6rem; padding-bottom: .6rem; }

/* Sign-in link (/verify/{token}) and email preferences (/email-preferences): one centred card */
.verify { display: flex; justify-content: center; padding-block: clamp(1rem, 6vw, 4rem); }
.verify__card { width: 100%; max-width: 30rem; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.75rem, 5vw, 2.75rem); text-align: center; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 32px -12px rgba(16,24,40,.12); }
.verify__card--left { text-align: left; }
.verify__card h1 { font-size: clamp(1.5rem, 4vw, 1.875rem); letter-spacing: -.02em; margin: 0 0 .5rem; }
.verify__card p { color: var(--slate); margin: 0 0 1.5rem; overflow-wrap: anywhere; }
.verify__card .btn { width: 100%; }
.verify__icon { display: inline-grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--blue-50); color: var(--blue); margin-bottom: 1.1rem; }
.verify__icon svg { width: 1.75rem; height: 1.75rem; }
.verify__icon--off { background: #f2f4f7; color: var(--muted); }
.verify__ok { color: #067647 !important; font-weight: 600; }
.verify__card .verify__small { font-size: .875rem; color: var(--muted); margin: 1rem 0 0; }
.verify__card .verify__error { color: #b42318; font-weight: 600; margin-bottom: 1rem; }
.prefs { display: grid; gap: .75rem; margin: 0 0 1.25rem; }
.prefs__row { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.prefs__row input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--blue); flex: none; }
.prefs__row span { display: grid; gap: .15rem; color: var(--slate); font-size: .9375rem; }
.prefs__row strong { color: var(--ink); }
.prefs__btns { display: grid; gap: .6rem; }

/* Busy button (site.js, button[data-busy]): spinner + "Sending…" while the server answers */
.btn.is-busy, .btn.is-busy:disabled { cursor: progress; opacity: .9; }
.spin { width: 1.05em; height: 1.05em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 1.6s; } }

/* Message sent (contact, cancel subscription): the circle grows in, then the tick draws itself. Once, .6 s. */
.contact__sent .who__check { animation: sent-pop .35s var(--ease, cubic-bezier(.2,.7,.2,1)) both; }
.contact__sent .who__check path { stroke-dasharray: 22; stroke-dashoffset: 22; animation: sent-tick .3s .25s ease-out forwards; }
@keyframes sent-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sent-tick { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .contact__sent .who__check { animation: none; }
  .contact__sent .who__check path { animation: none; stroke-dashoffset: 0; }
}

/* Invoice (/invoice/{key}, views/pages/invoice.php) */
.invoice { padding-top: 2rem; }
.invoice__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.invoice__actions .icon { width: 1rem; height: 1rem; }
.invoice__card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.25rem, 4vw, 2.75rem); box-shadow: 0 1px 2px rgb(20 30 50 / .04), 0 12px 32px -18px rgb(20 30 50 / .18); }
.invoice__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.invoice__brand { display: inline-flex; align-items: center; gap: .55rem; }
.invoice__refund { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.5rem; align-items: center; margin-bottom: 1.75rem; padding: 1.25rem 1.5rem; border-radius: 14px; background: #fef6f5; border: 1px solid #f9d6d2; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.invoice__refund-k { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #8c1d18; font-weight: 700; }
.invoice__refund-v { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin: .15rem 0; }
.invoice__refund dl { display: grid; gap: .6rem; margin: 0; }
.invoice__refund dl div { display: flex; justify-content: space-between; gap: 1rem; }
.invoice__refund dt { color: var(--muted); font-size: .9rem; }
.invoice__refund dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.invoice__why { display: none; }
@media (max-width: 640px) { .invoice__why { display: block; color: var(--muted); font-size: .85rem; } }
.invoice__note { margin-top: 1.25rem; padding: .85rem 1rem; border-radius: 12px; background: var(--tint, #f5f7fb); color: var(--text); font-size: .9rem; }
@media (max-width: 640px) {
  .invoice__refund { grid-template-columns: 1fr; padding: 1rem; }
  .invoice__refund dl div { flex-wrap: wrap; }
  .invoice__title { flex-wrap: wrap; gap: .5rem; }
  .invoice__meta { grid-template-columns: 1fr 1fr; padding: .9rem 1rem; }
  .invoice__table { table-layout: fixed; }
  .invoice__table th, .invoice__table td { padding-right: .6rem; overflow-wrap: anywhere; }
  .invoice__table .num { padding-left: .5rem; width: 6.5rem; white-space: normal; }
  .invoice__lines th:nth-child(2), .invoice__lines td:nth-child(2), .invoice__lines th:nth-child(3), .invoice__lines td:nth-child(3) { display: none; }   /* Qty and Price: the Amount says it */
  .invoice__refunds th:nth-child(2), .invoice__refunds td:nth-child(2), .invoice__refunds th:nth-child(3), .invoice__refunds td:nth-child(3) { display: none; }   /* reason and reference: shown under the date */
  .invoice__refunds code.invoice__why { margin-top: .2rem; }
  .invoice__table code { word-break: break-all; font-size: .72rem; }
  .invoice__totals { width: 100%; }
}
.invoice__title { display: flex; align-items: center; gap: .75rem; }
.invoice__title h1 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: 0; letter-spacing: -.02em; }
.invoice__status { display: inline-block; padding: .3rem .75rem; border-radius: 999px; background: #e7f6ee; color: #0a7a43; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.invoice__status--refunded { background: #fef3f2; color: #b42318; }
.invoice__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem 1.5rem; margin: 0 0 1.75rem; padding: 1rem 1.25rem; border-radius: 14px; background: var(--tint, #f5f7fb); }
.invoice__meta dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: .2rem; }
.invoice__meta dd { margin: 0; font-weight: 600; color: var(--ink); }
.invoice__card-line { display: flex; align-items: center; gap: .5rem; }
.invoice__card-line img { border-radius: 3px; box-shadow: 0 0 0 1px rgb(20 30 50 / .08); }
.invoice__card-no { white-space: nowrap; }
.invoice__wallet { display: block; font-size: .85em; color: var(--muted); white-space: nowrap; line-height: 1.3; }
.invoice__muted { color: var(--muted); font-size: .9rem; }
.invoice__parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 1.75rem; }
.invoice__parties h2, .invoice__h { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .4rem; }
.invoice__h { margin: 1.75rem 0 .25rem; }
.invoice__parties p { line-height: 1.6; overflow-wrap: anywhere; }
.invoice__table { width: 100%; border-collapse: collapse; }
.invoice__table th, .invoice__table td { text-align: left; padding: .8rem 1.25rem .8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.invoice__table th:last-child, .invoice__table td:last-child { padding-right: 0; }
.invoice__table .num { text-align: right; white-space: nowrap; padding-left: 1rem; }
.invoice__table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.invoice__table td strong { color: var(--ink); }
.invoice__table code { font-size: .8rem; color: var(--muted); }
.invoice__totals { margin: .5rem 0 0 auto; width: min(100%, 20rem); }
.invoice__totals div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; font-size: .95rem; }
.invoice__totals dt { color: var(--muted); }
.invoice__totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.invoice__totals .invoice__total { border-top: 1px solid var(--line); padding-top: .6rem; font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.invoice__totals .invoice__total dt { color: var(--ink); }
.invoice__neg dd { color: #b42318; }
.invoice__foot { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; display: grid; gap: .3rem; }
.invoice__ref a { color: inherit; }
@media print {
  @page { margin: 0; }   /* no browser date/address lines */
  html, body { background: #fff !important; }
  .site-header, .site-footer, .invoice__actions, #tf-help, .hw { display: none !important; }
  .section.invoice { padding: 14mm 16mm !important; }
  main > :first-child { padding-top: 0; }
  .invoice .container { max-width: none; padding: 0; }
  .invoice__card { border: 0; padding: 0; box-shadow: none; }
  .invoice__meta { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .invoice__status { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
.cancel-fast { display: flex; gap: .55rem; align-items: flex-start; padding: .75rem .9rem; margin-bottom: 1rem; border-radius: 12px; background: var(--blue-50); color: var(--ink); font-size: .9375rem; }
.cancel-fast .icon { flex: none; width: 1.1rem; height: 1.1rem; color: var(--blue); margin-top: .15rem; }

/* No grey box on tap (iOS/Android's default tap highlight); our own pressed states give the feedback. */
html { -webkit-tap-highlight-color: transparent; }
.choice:active span, .btn:active { transform: scale(.97); }

/* Phones: iPhone Safari zooms into any field with text under 16px and stays zoomed, which breaks the page width
   (owner's recording, 2026-11-14: the new section's 15px text box). Every field is at least 16px there. */
@media (max-width: 640px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), textarea, select { font-size: max(16px, 1em) !important; }
}
/* Contact Us: Cloudflare Turnstile (shows only when it wants a click). */
.contact__ts { margin: 0; }
/* Its box takes room only once Cloudflare asks for a click (data-before-interactive-callback="tfTurnstileShown"). */
.contact__ts.is-shown { margin: 0 0 1rem; }
/* Home, "policies for all kind of businesses" on phones: one compact row per card (icon left, title and text beside
   it) instead of a tall card with the icon alone on top (owner, 2026-11-15). */
@media (max-width: 600px) {
  .home-biz { gap: .6rem; }
  .home-biz .doc { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: .9rem; row-gap: .2rem; align-items: start; padding: 1rem 1.1rem; }
  .home-biz .doc__icon { grid-row: span 2; width: 2.5rem; height: 2.5rem; margin: 0; }
  .home-biz .doc__icon .icon { width: 1.25rem; height: 1.25rem; }
  .home-biz .doc h3 { font-size: 1.0625rem; line-height: 1.3; margin: 0; padding-top: .15rem; }
  .home-biz .doc p { font-size: .9rem; line-height: 1.45; margin: 0; }
}
/* Cancel Subscription: the page the emailed link opens (confirm), and its other states. */
.cancel-confirm h2 { font-size: 1.375rem; margin-bottom: .5rem; }
.cancel-confirm > p { margin-bottom: .75rem; color: var(--slate); }
.cancel-confirm__plan { color: var(--ink) !important; }
.cancel-confirm .field { margin: 1.25rem 0 1.5rem; }
.cancel-confirm .field label span { font-weight: 500; color: var(--muted); margin-left: .25rem; text-transform: none; letter-spacing: 0; }
.cancel-confirm__why { width: 100%; padding: .7rem 2.4rem .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7590' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .8rem center / 1.1rem no-repeat; }
.cancel-confirm__why:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.cancel-confirm__btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn--danger-solid { background: #d92d20; color: #fff; border-color: transparent; }
.btn--danger-solid:hover { background: #b42318; color: #fff; }
.contact__sent--warn .who__check { background: #fff4e5; color: #b54708; }
@media (max-width: 560px) { .cancel-confirm__btns .btn { flex: 1 1 100%; justify-content: center; } }
