/* The next home page's new sections, a draft (web/welcomenext.go):
   the request under a section (templates/welcome-ask.html) and the
   countries (templates/welcome-countries.html). They stand on
   static/welcome.css, whose section head, tiles and links these are,
   on the waitlist's field (tailwind/input.css) and on the words'
   styles of static/welcome-reads.css. */

/* The request: under a line, the words and then the form under them.
   A tile that leads here stops under the page's header. */
.wa-under { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--solid-border); }
.wa { scroll-margin-top: 7rem; }
.wa-form { margin-top: 1.5rem; }
.wa-fields { display: grid; gap: 0.625rem; max-width: 44rem; }
@media (min-width: 44rem) {
  .wa-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}
/* In two steps (static/welcome-ask.js): first the one field with its
   button, then the email's field beside it, which has the button from
   then on. The line about the email shows with its field. With no
   script there are no steps: both fields, one button. */
.wa-form:not([data-wa-step]) .wa-first,
.wa-form[data-wa-step="email"] .wa-first { display: none; }
.wa-form[data-wa-step="what"] .wa-email { display: none; }
.wa-form[data-wa-step="what"] .wa-fields { grid-template-columns: minmax(0, 1fr); max-width: 30rem; }
.wa-form[data-wa-step="what"] ~ [data-wa-note] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .wa-form[data-wa-step="email"] .wa-email { animation: wa-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both; }
}
@keyframes wa-in {
  from { opacity: 0; translate: -0.5rem 0; }
}
/* A field to pick from: the browser's own list, in the field's make,
   with the arrow a list has. Unpicked, it reads as a placeholder. */
.wa-select { position: relative; display: flex; flex: 1; min-width: 0; height: 100%; }
.wa-select select { flex: 1; min-width: 0; height: 100%; padding-inline: 0.75rem 2rem; border: 0; border-radius: 9999px; background: transparent; font: inherit; font-size: 1rem; color: var(--marketing-foreground); outline: none; appearance: none; cursor: pointer; text-overflow: ellipsis; }
.wa-select select:invalid { color: var(--muted-foreground); }
.wa-select svg { position: absolute; top: 50%; right: 0.625rem; translate: 0 -50%; color: var(--muted-foreground); pointer-events: none; }
.wa-done { max-width: 26rem; margin-top: 1.5rem; }
.wa .waitlist-note { margin-top: 0.625rem; }

/* A tile of something not read or covered yet, here and in "What it
   reads": an outline with no surface, so what is there today and what
   comes next are told apart at a glance. */
.wl-protocol[data-soon] { border-style: dashed; border-color: color-mix(in oklab, var(--marketing-foreground) 22%, transparent); background: transparent; box-shadow: none; }
.wl-protocol[data-soon] .wl-protocol-name { color: var(--marketing-text); }
.wl-protocol[data-soon] .mark { opacity: 0.75; }

/* The countries: the one covered as a wide card, the ones to come as
   the page's tiles beside it. */
.wc-grid { display: grid; gap: 0.75rem; margin-top: 2.5rem; }
@media (min-width: 56rem) {
  .wc-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}
.wc-home { padding: 1.5rem; border: 1px solid var(--solid-border); border-radius: 1rem; background: var(--solid-surface); box-shadow: var(--solid-shadow); }
.wc-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-family: var(--blog-serif); font-size: 1.625rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.012em; color: var(--marketing-foreground); }
.wc-flag { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 9999px; box-shadow: 0 0 0 1px var(--solid-border); }
.wc-letters { display: grid; place-items: center; background: var(--solid-inset); font-family: var(--font-interface, inherit); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em; color: var(--marketing-foreground); }
.wc-pill { padding: 0.125rem 0.625rem; border: 1px solid var(--solid-border); border-radius: 9999px; background: var(--solid-inset); font-family: var(--font-interface, inherit); font-size: 0.75rem; font-weight: 500; line-height: 1.375rem; letter-spacing: 0; color: var(--marketing-foreground); }
.wc-text { max-width: 40rem; margin-top: 1rem; font-size: 1rem; line-height: 1.6; color: var(--marketing-text); text-wrap: pretty; }
/* What the law covers, a line each; the links stand at the card's foot,
   so the card is full whatever its height beside the tiles. */
.wc-home { display: flex; flex-direction: column; }
.wc-law { display: grid; gap: 0.875rem 2rem; margin: 1.25rem 0 0; }
@media (min-width: 40rem) {
  .wc-law { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.wc-law div { padding-top: 0.875rem; border-top: 1px solid var(--solid-border); }
.wc-law dt { font-size: 0.9375rem; font-weight: 500; color: var(--marketing-foreground); }
.wc-law dd { margin: 0.25rem 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--marketing-text); text-wrap: pretty; }
.wc-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: auto; padding-top: 1.5rem; }
.wc-next { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.wc-next .wl-protocol { height: 100%; align-content: center; }
.wl-protocol .wc-flag { grid-area: mark; }

/* The AI's section (templates/welcome-ai.html). The board has two
   looks, by the page's theme: cream with ink lines in the light one,
   dark green in the dark one. The chip is dark on both, as a chip is.
   Every colour of the drawing is one of the variables here. Wide, the
   whole board shows; narrow, it is cut to the chip and the lines
   around it. */
.wai-board {
  --wai-ground: radial-gradient(120% 140% at 50% 45%, #fffdf7 0%, #f6f1e4 62%, #efe9da 100%);
  --wai-edge: rgb(3 53 45 / 0.1);
  --wai-cast: 0 1px 1px rgb(40 34 20 / 0.05), 0 16px 32px -24px rgb(40 34 20 / 0.28);
  --wai-dot: rgb(3 53 45 / 0.09);
  --wai-glow: #2fbf8a;
  --wai-glow-strength: 0.2;
  --wai-trace: #cdd6c8;
  --wai-via-fill: #f8f4e9;
  --wai-via: #aebbab;
  --wai-pad: #fffdf8;
  --wai-pad-edge: #d3dbcd;
  --wai-any: #9fae9f;
  --wai-plus: #5f7368;
  --wai-name: #5a6d63;
  --wai-icon: #0f6f51;
  --wai-pulse: #0c9a69;
  --wai-pulse-glow: rgb(12 154 105 / 0.45);
  --wai-pin-a: #a8a28b;
  --wai-pin-b: #7a745f;
  --wai-pin-c: #4d4939;
  --wai-shadow: 0.34;
  margin: 2.5rem 0 0; overflow: hidden; border-radius: 1.5rem; background: var(--wai-ground); box-shadow: var(--wai-cast), inset 0 0 0 1px var(--wai-edge);
}
:root[data-theme="dark"] .wai-board {
  --wai-ground: radial-gradient(120% 140% at 50% 45%, #16221d 0%, #0d1512 60%, #090e0c 100%);
  --wai-edge: rgb(255 255 255 / 0.06);
  --wai-cast: 0 1px 1px rgb(0 0 0 / 0.16), 0 16px 32px -24px rgb(10 20 15 / 0.4);
  --wai-dot: rgb(255 255 255 / 0.045);
  --wai-glow: #4fe0a3;
  --wai-glow-strength: 0.22;
  --wai-trace: #2b4238;
  --wai-via-fill: #0d1512;
  --wai-via: #3a5649;
  --wai-pad: #131c18;
  --wai-pad-edge: #33493f;
  --wai-any: #33493f;
  --wai-plus: #8fa89d;
  --wai-name: #8fa89d;
  --wai-icon: #9be8c6;
  --wai-pulse: #7df0bd;
  --wai-pulse-glow: #3ddc97;
  --wai-pin-a: #f1ead6;
  --wai-pin-b: #b9b196;
  --wai-pin-c: #7c7660;
  --wai-shadow: 0.6;
}
.wai-svg { display: block; width: 100%; aspect-ratio: 1280 / 460; }
@media (max-width: 48rem) {
  .wai-svg { aspect-ratio: 4 / 3; }
}
/* On a phone the upright board takes the wide one's place. */
.wai-svg-tall { display: none; }
@media (max-width: 40rem) {
  .wai-svg { display: none; }
  .wai-svg-tall { display: block; aspect-ratio: 400 / 750; }
}
.wai-names-tall text { text-anchor: middle; font-size: 12px; }
.wai-dot { fill: var(--wai-dot); }
.wai-glow-in { stop-color: var(--wai-glow); stop-opacity: var(--wai-glow-strength); }
.wai-glow-out { stop-color: var(--wai-glow); stop-opacity: 0; }
.wai-pin-a { stop-color: var(--wai-pin-a); }
.wai-pin-b { stop-color: var(--wai-pin-b); }
.wai-pin-c { stop-color: var(--wai-pin-c); }
.wai-shadow { flood-opacity: var(--wai-shadow); }
.wai-traces path { stroke: var(--wai-trace); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wai-vias circle { fill: var(--wai-via-fill); stroke: var(--wai-via); stroke-width: 2; }
.wai-pad { fill: var(--wai-pad); stroke: var(--wai-pad-edge); stroke-width: 1.5; }
.wai-pad-any { fill: none; stroke: var(--wai-any); stroke-dasharray: 5 5; }
.wai-plus { fill: none; stroke: var(--wai-plus); stroke-width: 2; stroke-linecap: round; }
/* A kind's icon is the menu's own drawing (templates/topic-icon.html),
   which sizes itself by its box: here the box is the pad's middle. */
.wai-icon svg { width: 24px; height: 24px; overflow: visible; color: var(--wai-icon); }
.wai-names text { fill: var(--wai-name); font-family: inherit; font-size: 13px; font-weight: 500; }
.wai-etch { fill: #8fa89d; font-family: var(--font-mono), monospace; font-size: 10.5px; font-weight: 500; letter-spacing: 0.3em; }

/* The light on a line: a short stroke that runs its length, toward
   the chip on the left and on from it on the right, one line after
   another. Held still, each line just shows lit near the chip. */
.wai-pulses path { stroke: var(--wai-pulse); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 9 91; stroke-dashoffset: 9; opacity: 0.9; filter: drop-shadow(0 0 3px var(--wai-pulse-glow)); }
.wai-pulses .wai-out { stroke-dashoffset: 91; }
@media (prefers-reduced-motion: no-preference) {
  .wai-pulses path { stroke-dashoffset: 100; opacity: 0; animation: wai-run 3.2s linear calc(var(--i) * 0.42s) infinite; animation-play-state: paused; }
  .wai-pulses .wai-out { stroke-dashoffset: 100; animation-delay: calc(1.5s + var(--i) * 0.42s); }
  [data-wai-on] .wai-pulses path { animation-play-state: running; }
}
@keyframes wai-run {
  0% { stroke-dashoffset: 100; opacity: 0; }
  8% { opacity: 0.95; }
  55% { stroke-dashoffset: 0; opacity: 0.95; }
  62%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Under the board: three things it does, side by side where there is
   room, each under its own line. */
.wai-points { display: grid; gap: 1.75rem 2.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 56rem) {
  .wai-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.wai-points li { padding-top: 1.25rem; border-top: 1px solid var(--solid-border); }
.wai-h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; font-family: var(--blog-serif); font-optical-sizing: auto; font-size: 1.375rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.012em; color: var(--marketing-foreground); }
.wai-points p { margin-top: 0.625rem; font-size: 1rem; line-height: 1.6; color: var(--marketing-text); text-wrap: pretty; }
.wai-fine { max-width: 40rem; margin-top: 2rem; font-size: 0.9375rem; line-height: 1.6; color: var(--muted-foreground); text-wrap: pretty; }

/* Pricing (templates/welcome-pricing.html): starting free on the card
   with the page's button, and beside it a tax year's report, each
   price on a card of its own. The panels are the page's solid surface;
   the free card stands a little forward by its shadow, nothing by
   colour. Narrow, the free card comes first and the prices stand two
   by two. */
.wp-grid { display: grid; gap: 1rem; margin-top: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 60rem) {
  .wp-grid { grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: 1.25rem; }
}
.wp-free, .wp-year { display: flex; flex-direction: column; padding: 1.75rem; border: 1px solid var(--solid-border); border-radius: 1.5rem; }
.wp-free { background: var(--solid-surface); box-shadow: var(--solid-shadow); }
.wp-year { background: color-mix(in oklab, var(--solid-surface) 45%, transparent); }
.wp-name { font-family: var(--blog-serif); font-optical-sizing: auto; font-size: 1.375rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.012em; color: var(--marketing-foreground); }
.wp-price { margin: 1.25rem 0 0; }
.wp-price .wl-price-now { font-size: 3.75rem; }
.wp-say { max-width: 38rem; margin-top: 0.5rem; font-size: 1rem; line-height: 1.6; color: var(--marketing-text); text-wrap: pretty; }
.wp-gets { display: grid; gap: 0.625rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.wp-gets li { display: flex; gap: 0.625rem; font-size: 0.9375rem; line-height: 1.45; color: var(--marketing-text); }
.wp-gets li::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1875rem;
  background: var(--marketing-accent);
  -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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-gets-row { margin-top: 1.5rem; }
@media (min-width: 44rem) {
  .wp-gets-row { display: flex; flex-wrap: wrap; gap: 0.625rem 1.75rem; }
}
.wp-go { align-self: stretch; justify-content: center; gap: 0.5rem; height: 3rem; margin-top: auto; font-size: 0.9375rem; }
.wp-free .wp-gets { margin-bottom: 1.75rem; }
.wp-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 44rem) {
  .wp-tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.wp-tier { display: grid; align-content: start; gap: 0.25rem; padding: 1.125rem 1.125rem 1.25rem; border: 1px solid var(--solid-border); border-radius: 1rem; background: var(--solid-surface); }
.wp-tier-size { min-height: 2.6em; font-size: 0.875rem; font-weight: 500; line-height: 1.3; color: var(--marketing-text); }
.wp-tier-price { font-size: 2.5rem; white-space: nowrap; }
.wp-tier-per { margin-top: 0.25rem; font-size: 0.8125rem; line-height: 1.35; color: var(--muted-foreground); }
.wp-fine { display: grid; gap: 0.25rem; max-width: 44rem; margin-top: 1.5rem; font-size: 0.875rem; line-height: 1.55; color: var(--muted-foreground); }
