/* ==========================================================================
   Tidewell — design system
   ========================================================================== */

:root {
  /* Palette */
  --ink: #0a1018;
  --ink-2: #1c2632;
  --slate: #55637a;
  --slate-2: #636f86;
  --line: #e3e9f0;
  --line-2: #eef2f7;
  --paper: #ffffff;
  --paper-2: #f6f9fc;
  --paper-3: #eef4f9;

  --brand: #0d8f7e;
  --brand-600: #0b7c6d;
  --brand-700: #085f54;
  --brand-100: #d8f3ee;
  --brand-50: #edfaf7;

  --amber: #b7791f;
  --amber-50: #fdf6e7;
  --danger: #c0392b;
  --danger-50: #fdeeec;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter,
    Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Space */
  --gutter: 24px;
  --maxw: 1160px;
  --maxw-prose: 760px;

  /* Radius */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(10, 16, 24, 0.05), 0 1px 3px rgba(10, 16, 24, 0.04);
  --sh: 0 4px 12px rgba(10, 16, 24, 0.06), 0 1px 3px rgba(10, 16, 24, 0.04);
  --sh-lg: 0 18px 40px rgba(10, 16, 24, 0.1), 0 4px 12px rgba(10, 16, 24, 0.05);
  --sh-xl: 0 36px 80px rgba(10, 16, 24, 0.14), 0 8px 24px rgba(10, 16, 24, 0.06);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- reset ---- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4 {
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.021em;
  line-height: 1.14;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.85rem);
  letter-spacing: -0.032em;
}
h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  letter-spacing: -0.026em;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
a:hover {
  color: var(--brand-700);
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- layout --- */

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

.section {
  padding-block: clamp(64px, 8vw, 108px);
}
.section--tight {
  padding-block: clamp(48px, 5vw, 72px);
}
.section--soft {
  background: var(--paper-2);
  border-block: 1px solid var(--line-2);
}
.section--ink {
  background: var(--ink);
  color: #c3cddb;
}
.section--ink h2,
.section--ink h3 {
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
}
.skip-link:focus {
  left: 12px;
  color: #fff;
}

/* ------------------------------------------------------------- headings --- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.79rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .eyebrow::before {
  display: none;
}

.lead {
  font-size: 1.16rem;
  color: var(--slate);
  margin-top: 18px;
  line-height: 1.62;
  text-wrap: pretty;
}

.muted {
  color: var(--slate);
}
.fine {
  font-size: 0.88rem;
  color: var(--slate-2);
  line-height: 1.55;
}

/* -------------------------------------------------------------- buttons --- */

.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background 0.16s var(--ease), border-color 0.16s var(--ease);
  box-shadow: 0 2px 6px rgba(11, 124, 109, 0.22);
}
.btn:hover {
  --btn-bg: var(--brand-700);
  color: #fff;
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px rgba(11, 124, 109, 0.26);
}
.btn:active {
  transform: translateY(0);
}

.btn--lg {
  padding: 16px 34px;
  font-size: 1.06rem;
}
.btn--sm {
  padding: 9px 18px;
  font-size: 0.92rem;
}
.btn--block {
  width: 100%;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
  box-shadow: var(--sh-sm);
}
.btn--ghost:hover {
  --btn-bg: var(--paper-2);
  --btn-fg: var(--ink);
  border-color: #cfd8e3;
  box-shadow: var(--sh);
}

.btn--onink {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  box-shadow: none;
}
.btn--onink:hover {
  --btn-bg: #f0f4f8;
  --btn-fg: var(--ink);
}

.btn--quiet {
  --btn-bg: transparent;
  --btn-fg: var(--slate);
  box-shadow: none;
  padding-inline: 10px;
}
.btn--quiet:hover {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  transform: none;
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn-row--center {
  justify-content: center;
}

/* ------------------------------------------------------------- topbar ----- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.topbar.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(10, 16, 24, 0.05);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.09rem;
  letter-spacing: -0.028em;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover {
  color: var(--ink);
}
.brand__mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--slate);
  font-size: 0.96rem;
  font-weight: 500;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav__link:hover {
  background: var(--paper-3);
  color: var(--ink);
}
.nav__link[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.topbar__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  position: relative;
  width: 17px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s var(--ease), opacity 0.15s var(--ease);
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s var(--ease);
}
.burger span::before {
  top: -5.5px;
}
.burger span::after {
  top: 5.5px;
}
.burger[aria-expanded="true"] span {
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] span::before {
  transform: translateY(5.5px) rotate(-90deg);
}
.burger[aria-expanded="true"] span::after {
  opacity: 0;
  transform: translateY(-5.5px);
}

@media (max-width: 900px) {
  .nav,
  .topbar__cta {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .nav.is-open {
    display: flex;
    position: absolute;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 14px var(--gutter) 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-lg);
  }
  .nav.is-open .nav__link {
    padding: 13px 12px;
    border-radius: var(--r-sm);
    font-size: 1.04rem;
  }
  .nav.is-open .nav__cta {
    margin-top: 12px;
  }
}
.nav__cta {
  display: none;
}
@media (max-width: 900px) {
  .nav.is-open .nav__cta {
    display: inline-flex;
  }
}

/* ---------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 92px) clamp(56px, 7vw, 84px);
  background: linear-gradient(180deg, #fbfdfe 0%, #f2f8fb 52%, #ffffff 100%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero::before {
  width: 620px;
  height: 620px;
  top: -280px;
  right: -140px;
  background: radial-gradient(
    circle,
    rgba(13, 143, 126, 0.16) 0%,
    rgba(13, 143, 126, 0) 68%
  );
}
.hero::after {
  width: 520px;
  height: 520px;
  bottom: -300px;
  left: -180px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.11) 0%,
    rgba(59, 130, 246, 0) 68%
  );
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__copy .btn-row,
  .hero__copy .hero__pills {
    justify-content: center;
  }
  .hero__copy .eyebrow::before {
    display: none;
  }
}

.hero h1 {
  margin-bottom: 20px;
}
.hero .lead {
  max-width: 30em;
}
@media (max-width: 980px) {
  .hero .lead {
    margin-inline: auto;
  }
}

.hero__cta {
  margin-top: 32px;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  list-style: none;
}
.hero__pills li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 500;
}
.hero__pills svg {
  flex-shrink: 0;
  color: var(--brand);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.badge b {
  display: inline-flex;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------- app mockup ----- */

.mock {
  position: relative;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--sh-xl);
  overflow: hidden;
  border: 1px solid rgba(10, 16, 24, 0.07);
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: linear-gradient(180deg, #fbfcfd, #f2f5f8);
  border-bottom: 1px solid var(--line);
}
.mock__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #dfe4ea;
}
.mock__dot:nth-child(1) {
  background: #f4bf4f;
}
.mock__dot:nth-child(2) {
  background: #dfe4ea;
}
.mock__dot:nth-child(3) {
  background: #dfe4ea;
}
.mock__title {
  margin-left: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--slate-2);
  letter-spacing: -0.01em;
}

.mock__body {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 340px;
}
@media (max-width: 560px) {
  .mock__body {
    grid-template-columns: 1fr;
  }
  .mock__side {
    display: none;
  }
}

.mock__side {
  padding: 18px 12px;
  background: var(--paper-2);
  border-right: 1px solid var(--line-2);
}
.mock__navitem {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--slate);
}
.mock__navitem.is-active {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--sh-sm);
}
.mock__navicon {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--brand-100);
  flex-shrink: 0;
}
.mock__navitem.is-active .mock__navicon {
  background: var(--brand);
}

.mock__main {
  padding: 24px;
}

.mock__gauge {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}
.mock__ring {
  --pct: 68;
  position: relative;
  width: 94px;
  height: 94px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--brand) calc(var(--pct) * 1%),
    var(--paper-3) 0
  );
  display: grid;
  place-items: center;
}
.mock__ring::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #fff;
}
.mock__ring span {
  position: relative;
  z-index: 1;
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.mock__gaugecopy strong {
  display: block;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.mock__gaugecopy span {
  font-size: 0.86rem;
  color: var(--slate);
}

.mock__rows {
  margin-top: 18px;
  display: grid;
  gap: 11px;
}
.mock__row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  font-size: 0.88rem;
}
.mock__check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #fff;
}
.mock__check svg {
  width: 11px;
  height: 11px;
}
.mock__row--off .mock__check {
  background: #fff;
  border: 1.6px solid #d5dde7;
}
.mock__row--off .mock__check svg {
  display: none;
}
.mock__label {
  display: block;
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock__meter {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--paper-3);
  margin-top: 5px;
  overflow: hidden;
}
.mock__meter i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), #35b8a3);
}
.mock__size {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--slate);
  font-size: 0.84rem;
}

.mock__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.mock__btn {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

/* --------------------------------------------------------------- cards ---- */

.grid {
  display: grid;
  gap: 22px;
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
  border-color: #d3dde8;
}
.card h3 {
  margin-bottom: 10px;
}
.card p {
  color: var(--slate);
  font-size: 0.99rem;
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
}
.icon svg {
  width: 22px;
  height: 22px;
}

/* --------------------------------------------------------------- steps ---- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  list-style: none;
}
.steps li {
  position: relative;
  padding: 30px 26px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 26px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}
.steps h3 {
  margin: 6px 0 8px;
  font-size: 1.1rem;
}
.steps p {
  color: var(--slate);
  font-size: 0.97rem;
}

/* --------------------------------------------------------------- split ---- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(34px, 5vw, 66px);
  align-items: center;
}
.split--reverse > :first-child {
  order: 2;
}
@media (max-width: 780px) {
  .split--reverse > :first-child {
    order: 0;
  }
}

.checklist {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 26px;
}
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 13px;
  align-items: start;
  font-size: 1rem;
  color: var(--ink-2);
}
.checklist svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--brand);
  flex-shrink: 0;
}
.checklist b {
  color: var(--ink);
}

/* --------------------------------------------------------------- facts ---- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.facts > div {
  padding: 28px 24px;
  background: #fff;
}
.facts dt {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--slate-2);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.facts dd {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.018em;
}
.facts dd + dt {
  margin-top: 20px;
}

/* ------------------------------------------------------------- pricing ---- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.plan--featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--sh-lg);
}
.plan__flag {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan__name {
  font-size: 1.14rem;
  margin-bottom: 4px;
}
.plan__for {
  font-size: 0.9rem;
  color: var(--slate);
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 22px 0 4px;
}
.plan__amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan__per {
  font-size: 0.94rem;
  color: var(--slate);
  font-weight: 500;
}
.plan__terms {
  font-size: 0.84rem;
  color: var(--slate-2);
  min-height: 2.6em;
  line-height: 1.5;
}
.plan__feats {
  list-style: none;
  display: grid;
  gap: 11px;
  margin: 22px 0 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
  font-size: 0.95rem;
}
.plan__feats li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  align-items: start;
  color: var(--ink-2);
}
.plan__feats svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--brand);
  flex-shrink: 0;
}
.plan .btn {
  margin-top: auto;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  margin-bottom: 12px;
  background: var(--paper-3);
  border-radius: 999px;
}
.switch button {
  border: 0;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  padding: 9px 20px;
  border-radius: 999px;
}
.switch .btn--quiet {
  background: transparent;
  color: var(--slate);
  box-shadow: none;
}
.switch__save {
  margin-left: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-600);
}

.notice {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--r);
  background: var(--amber-50);
  border: 1px solid #f2e2bd;
  color: #6b5518;
  font-size: 0.94rem;
  line-height: 1.6;
}
.notice svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--amber);
  flex-shrink: 0;
}
.notice strong {
  color: #533f0c;
}
.notice a {
  color: #6b5518;
  text-decoration: underline;
}

/* ----------------------------------------------------------------- faq ---- */

.faq {
  max-width: var(--maxw-prose);
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  cursor: pointer;
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  margin-top: 7px;
  border-right: 2px solid var(--slate-2);
  border-bottom: 2px solid var(--slate-2);
  transform: rotate(45deg);
  transition: transform 0.22s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
}
.faq summary:hover {
  color: var(--brand-600);
}
.faq__a {
  padding: 0 44px 24px 2px;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.65;
}
.faq__a p + p {
  margin-top: 12px;
}

/* ---------------------------------------------------------------- forms --- */

.form {
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 7px;
}
.field--row {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.field label .req {
  color: var(--danger);
  margin-left: 2px;
}
.field .hint {
  font-size: 0.84rem;
  color: var(--slate-2);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d6dee8;
  border-radius: var(--r-sm);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2355637a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.6;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3.5px rgba(13, 143, 126, 0.14);
}
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--danger);
}
input[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus,
select[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3.5px rgba(192, 57, 43, 0.13);
}

.error {
  font-size: 0.85rem;
  color: var(--danger);
  min-height: 1.2em;
}

.check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.55;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--brand);
}

.form__status {
  padding: 16px 18px;
  border-radius: var(--r);
  font-size: 0.95rem;
  display: none;
}
.form__status.is-ok {
  display: block;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
}
.form__status.is-err {
  display: block;
  background: var(--danger-50);
  border: 1px solid #f3cfca;
  color: #93291e;
}

/* --------------------------------------------------------------- prose ---- */

.prose {
  max-width: var(--maxw-prose);
}
.prose h2 {
  font-size: 1.5rem;
  margin: 44px 0 14px;
  letter-spacing: -0.022em;
}
.prose h3 {
  font-size: 1.11rem;
  margin: 28px 0 10px;
}
.prose p,
.prose li {
  color: var(--slate);
  font-size: 1.01rem;
  line-height: 1.68;
}
.prose p + p {
  margin-top: 14px;
}
.prose ul,
.prose ol {
  margin: 14px 0 14px 22px;
  display: grid;
  gap: 9px;
}
.prose li {
  padding-left: 4px;
}
.prose strong {
  color: var(--ink);
}
.tablewrap {
  margin: 20px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.tablewrap > table {
  margin: 0;
}
.prose th,
.prose td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--slate);
}
.prose th {
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 600;
}
.prose td code,
.prose th code {
  word-break: break-word;
}
@media (max-width: 700px) {
  .prose table {
    font-size: 0.87rem;
  }
  .prose th,
  .prose td {
    padding: 9px 10px;
  }
}
.prose__meta {
  padding: 16px 20px;
  border-left: 3px solid var(--brand);
  background: var(--paper-2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.92rem;
  color: var(--slate);
  margin-bottom: 8px;
}

.ph {
  padding: 1px 7px;
  border-radius: 5px;
  background: #fff6db;
  border: 1px dashed #e0c46b;
  font-family: var(--mono);
  font-size: 0.86em;
  color: #7a5c0d;
  white-space: nowrap;
}

.toc {
  padding: 22px 26px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin: 28px 0 8px;
}
.toc strong {
  display: block;
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin-bottom: 12px;
}
.toc ol {
  margin: 0 0 0 20px;
  display: grid;
  gap: 7px;
  font-size: 0.95rem;
}

/* --------------------------------------------------------- page header ---- */

.pagehead {
  padding-block: clamp(48px, 6vw, 76px) clamp(34px, 4vw, 48px);
  background: linear-gradient(180deg, #f7fafc, #fff);
  border-bottom: 1px solid var(--line-2);
}
.pagehead h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
}
.pagehead .lead {
  max-width: 40em;
}
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.87rem;
  color: var(--slate-2);
  margin-bottom: 18px;
  list-style: none;
  flex-wrap: wrap;
}
.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #c3ccd8;
}

/* ------------------------------------------------------------- callout ---- */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 5vw, 62px);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #052722 0%, #0a4f46 58%, #0c6c5e 130%);
  color: #cfe4e0;
  text-align: center;
}
.cta::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  top: -260px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.11),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}
.cta h2 {
  color: #fff;
  position: relative;
}
.cta p {
  position: relative;
  max-width: 46em;
  margin: 16px auto 0;
  color: #cfe4e0;
}
.cta .btn-row {
  position: relative;
  margin-top: 30px;
}

/* -------------------------------------------------------------- footer ---- */

.footer {
  padding-block: 56px 28px;
  background: var(--ink);
  color: #90a0b5;
  font-size: 0.94rem;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e2a38;
}
.footer .brand {
  color: #fff;
  margin-bottom: 14px;
}
.footer .brand:hover {
  color: #fff;
}
.footer__about {
  max-width: 34em;
  color: #8898ad;
  font-size: 0.92rem;
  line-height: 1.62;
}
.footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
  font-weight: 650;
}
.footer ul {
  list-style: none;
  display: grid;
  gap: 11px;
}
.footer a {
  color: #90a0b5;
}
.footer a:hover {
  color: #fff;
}
.footer__legal {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #6f7f94;
}
.footer__legal p {
  max-width: 62em;
  line-height: 1.6;
}
.footer__contact {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.9rem;
}
.footer__contact a {
  color: #b6c4d6;
}

/* ------------------------------------------------------------- cookies ---- */

.cookiebar {
  position: fixed;
  z-index: 200;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 520px;
  margin-inline: auto;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  transform: translateY(140%);
  transition: transform 0.35s var(--ease);
}
.cookiebar.is-visible {
  transform: translateY(0);
}
.cookiebar h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--ink);
}
.cookiebar p {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.55;
}
.cookiebar .btn-row {
  margin-top: 16px;
  gap: 10px;
}

/* ------------------------------------------------------------ reveal ------ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------ utility ----- */

.center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.mt-48 {
  margin-top: 48px;
}
.mb-0 {
  margin-bottom: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
