/* design\components.css: the CSS of the components in design\components.md, the director's. Every page loads it. */

/* Layout helpers */
.wrap { box-sizing: border-box; width: 100%; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--section-y); }
.band--sand { background: var(--c-paper-alt); }
.h2 { font-size: var(--fs-h2); }
.lede { font-size: calc(var(--fs-body) * 1.08); color: var(--c-ink-soft); max-width: 36em; margin-top: var(--space-2); }
.head { display: grid; gap: 0; max-width: 46rem; margin-bottom: var(--space-5); }

/* The main button: one look everywhere */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; box-sizing: border-box; min-height: 56px; padding: .7em 1.5em;
  border-radius: var(--radius-m); border: 0; background: var(--c-brand); color: var(--c-on-brand);
  font-family: var(--font-ui); font-size: 1.125rem; font-weight: 800; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--c-brand-dark);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.btn::after { content: ""; width: 1em; height: 1em; background: currentColor; clip-path: polygon(6.25% 52.1%, 17.5% 40.8%, 35.8% 59.2%, 71.3% 23.8%, 58.3% 10.8%, 95.8% 4.2%, 89.2% 41.7%, 77.1% 29.6%, 30.4% 76.3%); }
.btn:hover { background: var(--c-brand-dark); transform: translateY(-1px); box-shadow: 0 5px 0 var(--c-ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--c-brand-dark); }
.btn:focus-visible, .link:focus-visible, .site-header a:focus-visible, .site-footer a:focus-visible { outline: 3px solid var(--c-accent-text); outline-offset: 3px; }
.btn[data-planned] { background: var(--c-brand); }

/* A plain link with the tick */
.link { display: inline-flex; align-items: center; gap: .4em; color: var(--c-brand-text); font-weight: 700; text-underline-offset: .2em; }

/* A sticker: the site's solid card */
.sticker { background: var(--c-paper); color: var(--c-ink); border-radius: var(--radius-m); box-shadow: var(--shadow-m); }

/* The tick in a small round */
.tick { flex: none; display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); }
.tick svg { width: 62%; height: 62%; display: block; fill: currentColor; }

/* The rising edge: the logo's tick at block scale. Green above (or any ground), a white stripe, coral below. */
.rise { display: block; position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(56px, 9vw, 136px); pointer-events: none; z-index: 4; }
.rise__stripe { fill: var(--rise-stripe, var(--c-paper)); }
.rise__low { fill: var(--rise-low, var(--c-accent)); }

/* The stop icon */
.stop {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-s);
}
.stop:hover { background: var(--c-brand-light); }
.stop:focus-visible { outline: 3px solid var(--c-accent-text); outline-offset: 2px; }

/* The header */
.site-header {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: var(--space-4); box-sizing: border-box;
  min-height: 84px; padding: .6rem var(--gutter); background: var(--c-paper); box-shadow: 0 2px 0 var(--c-line);
}
.site-header__logo { display: block; flex: none; line-height: 0; }
.site-header__logo img { display: block; width: auto; height: 62px; }
.site-header__nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.9rem); margin: 0; padding: 0; list-style: none; }
.nav__item a { color: var(--c-ink); font-family: var(--font-ui); font-size: var(--fs-ui); font-weight: 600; text-decoration: none; padding-block: .4em; }
.nav__item a:hover, .nav__item a[aria-current] { color: var(--c-brand-text); box-shadow: 0 3px 0 var(--c-accent); }
.site-header__cta {
  flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: .4em 1.15em; border-radius: var(--radius-s);
  background: var(--c-brand); color: var(--c-on-brand); font-family: var(--font-ui); font-size: var(--fs-ui); font-weight: 800; text-decoration: none; box-shadow: 0 3px 0 var(--c-brand-dark);
}
.site-header__cta:hover { background: var(--c-brand-dark); }
.site-header__menu { display: none; margin-left: auto; min-height: 44px; padding: .3em 1em; border: 2px solid var(--c-ink); border-radius: var(--radius-s); background: transparent; color: var(--c-ink); font: 700 var(--fs-ui) var(--font-ui); cursor: pointer; }

@media (max-width: 1040px) {
  .site-header { flex-wrap: wrap; min-height: 72px; gap: var(--space-2); }
  .site-header__logo img { height: 50px; }
  .site-header__menu { display: inline-block; }
  .site-header__cta { display: none; }
  .site-header__nav { display: none; flex-basis: 100%; margin: 0; padding-bottom: var(--space-2); }
  .site-header[data-open] .site-header__nav { display: block; }
  .site-header[data-open] .site-header__cta { display: inline-flex; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
  .nav__item a { display: inline-block; min-height: 44px; line-height: 44px; padding: 0; }
}

/* The clients picker */
.picker { box-sizing: border-box; padding: var(--space-3); border-radius: var(--radius-l); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-l); }
.picker--flat { padding: 0; background: none; box-shadow: none; }
.picker__set { border: 0; margin: 0 0 var(--space-2); padding: 0; min-width: 0; }
.picker__legend { padding: 0; margin-bottom: .6rem; font-family: var(--font-ui); font-size: var(--fs-ui); font-weight: 700; }
.picker__choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.picker__choice { position: relative; display: block; cursor: pointer; }
.picker__choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.picker__choice span { display: grid; place-items: center; min-height: 52px; border-radius: var(--radius-s); background: var(--c-paper-alt); box-shadow: inset 0 0 0 2px var(--c-line); font-family: var(--font-display); font-size: 1.25rem; font-weight: var(--fw-h3); transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.picker__choice:hover span { box-shadow: inset 0 0 0 2px var(--c-brand); }
.picker__choice input:checked + span { background: var(--c-accent); color: var(--c-on-accent); box-shadow: inset 0 0 0 2px var(--c-accent); transform: translateY(-1px) rotate(-1.5deg); }
.picker__choice input:focus-visible + span { outline: 3px solid var(--c-ink); outline-offset: 2px; }
.picker .btn { width: 100%; }
.picker__note { margin-top: .75rem; text-align: center; font-size: var(--fs-small); font-weight: 600; color: var(--c-ink-soft); }

/* The footer */
.site-footer {
  display: grid; grid-template-columns: minmax(200px, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(180px, 1fr); gap: var(--space-4); box-sizing: border-box;
  padding: var(--space-6) var(--gutter) var(--space-4); max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto;
}
.site-footer__logo img { display: block; width: 150px; height: auto; }
.site-footer__line { margin-top: var(--space-2); max-width: 22em; color: var(--c-ink-soft); font-size: var(--fs-small); }
.site-footer__title { margin: 0 0 .6rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: var(--fw-h4); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer__col li + li { margin-top: .35rem; }
.site-footer a { color: var(--c-ink); text-underline-offset: .2em; font-size: var(--fs-small); display: inline-block; min-height: 28px; }
.site-footer__col a:hover, .site-footer__contact a:hover { color: var(--c-brand-text); }
.site-footer__contact { display: grid; gap: .35rem; align-content: start; font-size: var(--fs-small); overflow-wrap: anywhere; }
.site-footer__contact address { font-style: normal; color: var(--c-ink-soft); }
.site-footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); padding-top: var(--space-3); border-top: 2px solid var(--c-line); font-size: var(--fs-small); color: var(--c-ink-soft); }
.site-footer__legal ul { display: flex; gap: var(--space-3); }
@media (max-width: 960px) { .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }

/* The exit popup */
.exit { width: min(92vw, 480px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: var(--radius-l); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-l); }
.exit::backdrop { background: color-mix(in srgb, var(--c-brand-dark) 62%, transparent); }
.exit__in { position: relative; display: grid; gap: var(--space-2); padding: var(--space-4); }
.exit__mark { width: 64px; height: auto; }
.exit__title { font-size: var(--fs-h3); font-size: 2rem; }
.exit__line { color: var(--c-ink-soft); }
.exit__close { position: absolute; top: .6rem; right: .6rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--c-paper-alt); color: var(--c-ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
html[data-kit-modal] { overflow: hidden; }

/* The call bar on the phone */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: .5rem; padding: .6rem var(--gutter); background: var(--c-paper); box-shadow: 0 -2px 0 var(--c-line); transform: translateY(110%); transition: transform var(--dur-med) var(--ease-out); }
.callbar[data-kit-on] { transform: none; }
.callbar a { flex: 1; display: grid; place-items: center; min-height: 52px; border-radius: var(--radius-s); font-weight: 800; text-decoration: none; }
.callbar__cta { background: var(--c-brand); color: var(--c-on-brand); }
.callbar__call { background: var(--c-paper-alt); color: var(--c-ink); }

/* Shared by every page since Part 2: the line under a main button, the rising edges' variants, the questions and
   the close. The home page keeps its own identical copies in home.css, so the approved page does not change. */
.btn-note { margin-top: .7rem; font-size: var(--fs-small); font-weight: 600; color: var(--c-ink-soft); }
.rise--top { top: -1px; bottom: auto; }
.rise__corner { fill: var(--c-paper); }
.rise--foot { --rise-stripe: var(--c-accent); --rise-low: var(--c-paper); }

.faq__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-5); align-items: start; }
.faq__list { display: grid; gap: .6rem; }
.faq__item { border-radius: var(--radius-m); background: var(--c-paper); box-shadow: var(--shadow-s); }
.faq__item summary { position: relative; padding: 1rem 3rem 1rem 1.25rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: var(--fw-h4); line-height: 1.2; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 1.1rem; top: .8rem; font-size: 1.6rem; color: var(--c-accent-text); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:focus-visible { outline: 3px solid var(--c-accent-text); outline-offset: 2px; border-radius: var(--radius-m); }
.faq__item p { padding: 0 1.25rem 1.1rem; color: var(--c-ink-soft); }
@media (max-width: 860px) { .faq__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); } }

.close { position: relative; display: grid; min-height: 640px; align-items: center; overflow: hidden; background: var(--c-brand-dark); }
.close__media { position: absolute; inset: 0; }
.close__media > video, .close__media > img, .close__media > picture img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: var(--pos, 80% 40%); }
.close__stop { position: absolute; top: var(--space-2); right: var(--space-2); z-index: 3; }
.close__block { position: relative; z-index: 2; box-sizing: border-box; display: grid; gap: var(--space-2); align-content: center; justify-items: start; width: min(58%, 780px); min-height: 640px; padding: var(--space-5) clamp(5rem, 9vw, 9rem) calc(clamp(56px, 9vw, 136px) + var(--space-3)) max(var(--gutter), calc((100vw - var(--max-w)) / 2)); background: var(--c-brand); color: var(--c-on-brand); clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
.close__title { font-size: var(--fs-h1); }
.close__line { font-size: calc(var(--fs-body) * 1.06); }
.close .picker { max-width: 480px; justify-self: stretch; }
/* the other pages' closes: the main button on its own cream sticker, as the picker stands on the home page's */
.close__cta { justify-self: start; box-sizing: border-box; padding: var(--space-3); border-radius: var(--radius-l); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-l); text-align: center; }
@media (max-width: 860px) {
  .close { min-height: 0; display: block; }
  .close__media { position: relative; inset: auto; height: 62vw; min-height: 240px; }
  .close__media > video, .close__media > img, .close__media > picture img { object-position: var(--pos-m, 72% 40%); }
  .close__block { width: 100%; min-height: 0; padding: var(--space-4) var(--gutter) calc(clamp(56px, 9vw, 136px) + var(--space-3)); clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%); margin-top: -1.5rem; }
}

/* The thank-you, 404 and legal pages */
.thanks { box-sizing: border-box; max-width: calc(760px + 2 * var(--gutter)); margin-inline: auto; padding: var(--section-y) var(--gutter); display: grid; gap: var(--space-3); }
.thanks__headline, .not-found h1 { font-size: var(--fs-h1); }
.thanks__next { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0; padding: 0; list-style: none; }
.thanks__next li:first-child a { display: inline-flex; align-items: center; min-height: 56px; padding: .6em 1.4em; border-radius: var(--radius-m); background: var(--c-brand); color: var(--c-on-brand); font-weight: 800; text-decoration: none; box-shadow: 0 4px 0 var(--c-brand-dark); }
.thanks__next li + li a { display: inline-flex; align-items: center; min-height: 56px; font-weight: 700; }
.legal h1 { font-size: var(--fs-h1); }
.legal h2 { font-size: var(--fs-h3); }
