/* 33WATTS site styles
   Tokens match the brand guide. Use the custom properties everywhere; no raw hex values below :root. */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/manrope-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/manrope-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-800.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-700.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  /* Color */
  --color-ink: #1F1C3B;
  --color-ink-2: #2B2750;
  --color-body: #4F4C66;
  --color-muted: #6B6880;
  --color-purple: #6A4FE6;
  --color-purple-light: #C9BCFF;
  --color-purple-soft: #B9A8FF;
  --color-lilac: #DCD2FC;
  --color-lavender: #F4F2FD;
  --color-lavender-2: #ECE8FB;
  --color-line: #E4E0F2;
  --color-white: #FFFFFF;

  /* Supporting colors taken from the approved design */
  --color-on-ink: #C9C4E6;          /* Muted text on ink (strip, footer, price line) */
  --color-on-ink-body: #D6D2EE;     /* Body text on ink */
  --color-ink-line: #3D3868;        /* Divider inside ink cards */
  --color-on-purple: #EDE9FF;       /* Secondary text on purple */
  --color-step-line: #C9C0EC;       /* Step dividers on lavender-2 */

  /* Form feedback (not in the brand guide; AA contrast on white) */
  --color-error: #B42318;
  --color-error-bg: #FEF3F2;

  --overlay-hero: linear-gradient(180deg, rgba(22,19,44,.62) 0%, rgba(22,19,44,.55) 50%, rgba(22,19,44,.72) 100%);

  /* Type */
  --font-heading: "Manrope", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --text-h1: clamp(2.75rem, 1.6rem + 4.7vw, 5.5rem);      /* ~44px at 390, 88px at 1440 */
  --text-h2: clamp(2rem, 1.67rem + 1.33vw, 2.875rem);     /* ~32px at 390, 46px at 1440 */
  --text-h3: clamp(1.1875rem, 1.1rem + 0.35vw, 1.4375rem); /* 19 to 23px */
  --text-body: 1.0625rem;                                  /* 17px */
  --text-eyebrow: 0.75rem;                                 /* 12px */

  --leading-h1: 1;
  --leading-h2: 1.08;
  --leading-body: 1.6;
  --tracking-h1: -0.05em;
  --tracking-h2: -0.035em;
  --tracking-eyebrow: 0.14em;

  /* Shape */
  --radius-button: 10px;
  --radius-tile: 12px;
  --radius-card: 16px;
  --radius-photo: 20px;
  --radius-panel: 24px;

  /* Spacing */
  --container-max: 1200px;
  --container-pad: 24px;
  --section-pad: clamp(64px, 40px + 6.25vw, 104px);

  /* Elevation (floating elements only: island menu, popup) */
  --shadow-float: 0 10px 30px rgba(31,28,59,0.08);

  /* Focus */
  --focus-ring: 2px solid var(--color-purple);
  --focus-offset: 3px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-lavender);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-weight: 700;
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
  letter-spacing: var(--tracking-h1);
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  letter-spacing: var(--tracking-h2);
}

h3 {
  font-size: var(--text-h3);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
.ink-strip {
  text-wrap: balance;
}

a {
  color: var(--color-ink);
}

a:hover {
  opacity: 0.85;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* ---------- Utilities ---------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-pad);
}

.eyebrow {
  margin: 0;
  color: var(--color-purple);
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  line-height: 1.4;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

ul[role="list"],
ol[role="list"] {
  margin: 0;
  padding: 0;
  list-style: none;
}

.accent {
  color: var(--color-purple);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-button);
  background: var(--color-ink);
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 17px 28px;
  border: 0;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn--sm {
  padding: 15px 24px;
  font-size: 0.9375rem;
}

.btn__plus {
  font-size: 1.125rem;
  line-height: 1;
}

.btn--white {
  background: var(--color-white);
  color: var(--color-ink);
}

.btn--white .btn__plus {
  color: var(--color-purple);
}

.btn--outline-white {
  padding: 15.5px 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: var(--color-white);
}

.btn--ink {
  background: var(--color-ink);
  color: var(--color-white);
}

.btn--purple {
  background: var(--color-purple);
  color: var(--color-white);
}

.text-link {
  color: var(--color-purple);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Logo (temporary: bolt tile + wordmark; swap here and in the markup) ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink);
  text-decoration: none;
}

.logo__mark {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-button);
  background: var(--color-purple);
  color: var(--color-white);
}

.logo__text {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo--footer {
  color: var(--color-white);
}

.logo--footer .logo__text {
  font-size: 1.25rem;
}

/* ---------- Header (island menu) ---------- */

.site-header {
  padding: 24px var(--container-pad) 0;
}

.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.island {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1152px;
  margin: 0 auto;
  padding: 12px 12px 12px 24px;
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-float);
}

.island__nav {
  margin-left: auto;
}

.island__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.island__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.island__cta {
  margin-left: 12px;
  padding: 12px 20px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 860px;
  padding: 84px var(--container-pad) 0;
  background-color: var(--color-ink);
  isolation: isolate;
}

.hero__media,
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero::after {
  content: "";
  background: var(--overlay-hero);
}

.hero__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 0 96px;
  text-align: center;
}

.hero__eyebrow {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero__title {
  color: var(--color-white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero__title-accent {
  color: var(--color-purple-light);
}

.hero__lead {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 10px;
}

/* ---------- Ink strip ---------- */

.ink-strip {
  padding: 18px var(--container-pad);
  background: var(--color-ink);
  color: var(--color-on-ink);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Section intro ---------- */

.section-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 700px;
}

.section-intro__lead {
  font-size: 1.125rem;
}

/* ---------- Services ---------- */

.services {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-white);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 560px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 28px;
}

.service-card h3 {
  font-size: 1.3125rem;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 1rem;
}

.service-card .text-link {
  margin-top: auto;
}

.icon-tile {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-tile);
  background: var(--color-purple);
  color: var(--color-white);
}

.icon-tile--soft {
  width: 44px;
  height: 44px;
  background: var(--color-lavender-2);
  color: var(--color-purple);
}

.more-services {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 12px;
}

.divider-label {
  display: flex;
  align-items: center;
  gap: 16px;
}

.divider-label .eyebrow {
  white-space: nowrap;
}

.divider-label__line {
  flex: 1;
  height: 1px;
  background: var(--color-line);
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}

.mini-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
}

.mini-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-card h4 {
  font-size: 1.1875rem;
  line-height: 1.3;
}

.mini-card p {
  font-size: 0.9375rem;
}

.help-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 100%;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--color-purple);
  color: var(--color-white);
  text-decoration: none;
}

.help-card__title {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
}

.help-card__text {
  color: var(--color-on-purple);
  font-size: 0.9375rem;
}

/* ---------- Full-service plan ---------- */

.plan {
  background: var(--color-ink);
  color: var(--color-white);
}

.plan__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.plan h2 {
  color: var(--color-white);
}

.eyebrow--on-dark {
  color: var(--color-purple-soft);
}

.plan__copy {
  display: flex;
  flex: 1 1 460px;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.plan__lead {
  max-width: 520px;
  color: var(--color-on-ink-body);
  font-size: 1.125rem;
}

.plan__action {
  padding-top: 8px;
}

.plan__panel {
  display: flex;
  flex: 1 1 380px;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 32px;
  border-radius: var(--radius-photo);
  background: var(--color-ink-2);
}

.plan__panel-title {
  color: var(--color-white);
  font-size: 1.125rem;
  letter-spacing: 0;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--color-on-ink-body);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-list svg {
  flex: none;
  margin-top: 3px;
  color: var(--color-purple-soft);
}

.plan__rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--color-ink-line);
}

.plan__price {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 500;
}

/* ---------- Who we help ---------- */

.who-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 48px;
}

.who-card {
  display: flex;
  flex: 1 1 320px;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.who-card__photo {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-photo);
  background: var(--color-lavender-2);
  object-fit: cover;
}

.who-card__photo--local { object-position: 66% center; }
.who-card__photo--team { object-position: center 30%; }
.who-card__photo--founder { object-position: 42% center; }

.who-card h3 {
  font-size: 1.375rem;
}

.who-card p {
  font-size: 1rem;
}

/* ---------- How it works ---------- */

.how {
  background: var(--color-lavender-2);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
}

.step {
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-step-line);
}

.step h3 {
  font-size: 1.4375rem;
  letter-spacing: -0.015em;
}

/* ---------- Why 33WATTS ---------- */

.about {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}

.about__intro {
  display: flex;
  flex: 1 1 400px;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.values {
  display: flex;
  flex: 1 1 500px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  padding-top: 34px;
}

.value {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
}

.value h3 {
  font-size: 1.1875rem;
}

/* ---------- CTA ---------- */

.cta {
  padding: 64px var(--container-pad) 72px;
}

.cta__panel {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 1152px;
  margin: 0 auto;
  padding: 64px 56px;
  border-radius: var(--radius-panel);
  background: var(--color-lilac);
}

.eyebrow--ink {
  color: var(--color-ink);
}

.cta__title {
  font-size: clamp(2.75rem, 1.56rem + 4.9vw, 4.75rem); /* ~44px at 390, 76px at 1440 */
  line-height: 1;
  letter-spacing: -0.05em;
}

.cta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta__text {
  color: var(--color-ink);
  font-size: 1.125rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-ink);
  color: var(--color-on-ink);
  font-size: 0.9375rem;
}

.site-footer a {
  color: var(--color-on-ink);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-white);
  opacity: 1;
}

.site-footer .logo--footer {
  color: var(--color-white);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-block: 56px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}

.site-footer__legal {
  font-size: 0.8125rem;
}

.site-footer__legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__heading {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
}

.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- Legal pages (privacy) ---------- */

.legal {
  max-width: calc(760px + 2 * var(--container-pad));
  padding-block: clamp(48px, 30px + 4.5vw, 88px) var(--section-pad);
}

.legal__header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-line);
}

.legal__title {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  letter-spacing: var(--tracking-h2);
}

.legal__meta {
  color: var(--color-muted);
  font-size: 0.9375rem;
}

/* Styles for pasted policy text: plain headings, paragraphs, lists, tables. */
.prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prose h2 {
  margin-top: 24px;
  font-size: 1.625rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin-top: 12px;
  font-size: 1.1875rem;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 6px;
}

.prose a {
  color: var(--color-purple);
  text-underline-offset: 2px;
}

.prose {
  overflow-wrap: break-word;
}

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--color-lavender-2);
  color: var(--color-ink);
}

/* ---------- Contact popup ---------- */

html.is-dialog-open {
  overflow: hidden;
}

.contact {
  width: min(640px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: var(--radius-panel);
  background: var(--color-white);
  color: var(--color-body);
  box-shadow: 0 24px 64px rgba(22, 19, 44, 0.28);
}

.contact::backdrop {
  background: rgba(22, 19, 44, 0.6);
}

.contact__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px;
}

.contact__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.contact__heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact__title {
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: var(--tracking-h2);
}

.contact__lead {
  font-size: 1rem;
}

.contact__close {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-button);
  background: var(--color-white);
  color: var(--color-ink);
  cursor: pointer;
}

.contact__close:hover {
  background: var(--color-lavender);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  padding: 0;
  color: var(--color-ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.field__optional {
  color: var(--color-muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-button);
  background: var(--color-white);
  color: var(--color-ink);
  font-size: 1rem;
  line-height: 1.5;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--color-step-line);
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--color-purple);
  outline-offset: 1px;
}

.field [aria-invalid] {
  border-color: var(--color-error);
}

.field__error,
.form-error {
  color: var(--color-error);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-error {
  padding: 12px 14px;
  border-radius: var(--radius-button);
  background: var(--color-error-bg);
}

.chips legend {
  margin-bottom: 8px;
}

.chips__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-ink);
  font-size: 0.9375rem;
  font-weight: 500;
}

.chip:hover span {
  border-color: var(--color-step-line);
  background: var(--color-lavender);
}

.chip input:checked + span {
  border-color: var(--color-purple);
  background: var(--color-lavender-2);
  color: var(--color-ink);
}

.chip input:checked + span::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-right: 8px;
  background: var(--color-purple);
  -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='3'%3E%3Cpath d='m5 12 5 5L20 7'/%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='3'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.chip input:focus-visible + span {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact__turnstile:empty {
  display: none;
}

.contact__submit {
  align-self: flex-start;
  min-width: 180px;
}

.contact__submit:disabled {
  cursor: progress;
  opacity: 0.7;
}

.contact__note {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.contact__note a {
  color: var(--color-purple);
}

.contact__success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-block: 8px;
}

.contact__success:focus {
  outline: none;
}

.contact__success-text {
  color: var(--color-ink);
  font-size: 1.1875rem;
  line-height: 1.5;
}

/* Under 640px the popup becomes a full-screen sheet */
@media (max-width: 639px) {
  .contact {
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  .contact__inner {
    min-height: 100%;
    padding: 24px var(--container-pad) 32px;
  }

  .contact__submit {
    align-self: stretch;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 719px) {
  .island {
    gap: 8px 12px;
    padding: 10px 10px 10px 16px;
  }

  .island__cta {
    order: 2;
    margin-left: 0;
  }

  .island__nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding: 8px 0 2px;
    border-top: 1px solid var(--color-line);
  }

  .island__links {
    justify-content: center;
    gap: 24px;
  }

  .hero {
    min-height: 0;
    padding-top: 136px;
  }

  .hero__content {
    gap: 20px;
    padding: 48px 0 72px;
  }

  .hero__actions {
    flex-direction: column;
    align-self: stretch;
  }

  .cta {
    padding-block: 48px 56px;
  }

  .cta__panel {
    padding: 40px 24px;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
