:root {
  color-scheme: light;
  --petrol: #113e4a;
  --petrol-2: #183f48;
  --teal: #18747a;
  --teal-2: #479195;
  --light: #f4f7f6;
  --surface: #e7f0ef;
  --surface-2: #f9fbfa;
  --lavender: #eee7f5;
  --amber: #d9985f;
  --text: #15373f;
  --muted: #587078;
  --line: #c9dcda;
  --white: #ffffff;
  --max: 74rem;
  --radius-sm: 0.9rem;
  --radius: 1.5rem;
  --radius-lg: 2.5rem;
  --shadow: 0 1.2rem 3.5rem rgb(17 62 74 / 12%);
}

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

html {
  scroll-behavior: smooth;
  background: var(--light);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--light);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 0.25rem;
  content: "";
  background: linear-gradient(90deg, var(--teal), var(--teal-2), var(--amber));
}

a {
  color: var(--teal);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--petrol);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 0.2rem solid var(--amber);
  outline-offset: 0.2rem;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--petrol);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
}

h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}

p {
  margin: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--petrol);
  border-radius: 0.6rem;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgb(17 62 74 / 9%);
  background: rgb(244 247 246 / 92%);
  backdrop-filter: blur(1rem);
}

.nav,
.section,
.footer-inner,
.legal-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  color: var(--petrol);
  font-weight: 760;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.72rem;
  box-shadow: 0 0.4rem 1rem rgb(17 62 74 / 14%);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.1rem;
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-links a {
  color: var(--petrol);
  text-decoration: none;
}

.language-link {
  padding: 0.42rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgb(71 145 149 / 17%), transparent 28rem),
    radial-gradient(circle at 96% 70%, rgb(238 231 245 / 84%), transparent 30rem),
    var(--light);
}

.hero::after {
  position: absolute;
  top: 8rem;
  right: -13rem;
  width: 34rem;
  height: 34rem;
  content: "";
  border: 3.5rem solid rgb(24 116 122 / 7%);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.72fr);
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding-block: clamp(4rem, 9vw, 8rem);
  gap: clamp(3rem, 7vw, 7rem);
}

.hero-grid > *,
.split > *,
.card-grid > *,
.trust-grid > *,
.plan-grid > *,
.support-grid > * {
  min-width: 0;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 1.7rem;
}

.eyebrow,
.hero-support,
.store-note,
.section-intro {
  overflow-wrap: anywhere;
}

.hero-support,
.section-intro {
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.33rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.76rem 1.15rem;
  color: var(--white);
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 999px;
  font-weight: 720;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  color: var(--white);
  background: var(--petrol);
  border-color: var(--petrol);
  transform: translateY(-0.1rem);
}

.button-secondary {
  color: var(--petrol);
  background: transparent;
  border-color: var(--line);
}

.button-secondary:hover {
  color: var(--petrol);
  background: var(--surface);
  border-color: var(--teal-2);
}

.button-disabled,
.button[aria-disabled="true"] {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
  cursor: not-allowed;
  pointer-events: none;
}

.store-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.phone-stage {
  position: relative;
  display: grid;
  justify-items: center;
}

.phone-stage::before,
.phone-stage::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.phone-stage::before {
  top: 7%;
  right: -5%;
  width: 5rem;
  height: 5rem;
  background: var(--amber);
  opacity: 0.75;
}

.phone-stage::after {
  bottom: 11%;
  left: -4%;
  width: 9rem;
  height: 9rem;
  border: 2rem solid var(--teal-2);
  opacity: 0.18;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 20rem);
  padding: 0.55rem;
  overflow: hidden;
  background: #092b34;
  border: 0.2rem solid rgb(255 255 255 / 55%);
  border-radius: 3.1rem;
  box-shadow: 0 2.8rem 5.8rem rgb(17 62 74 / 26%);
  transform: rotate(2deg);
}

.phone-frame img {
  width: 100%;
  border-radius: 2.55rem;
}

.section {
  padding-block: clamp(4.8rem, 10vw, 8.5rem);
}

.section-heading {
  display: grid;
  margin-bottom: clamp(2.2rem, 5vw, 4rem);
  gap: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.plan,
.trust-card {
  display: grid;
  align-content: start;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid rgb(17 62 74 / 8%);
  border-radius: var(--radius);
  box-shadow: 0 0.6rem 2rem rgb(17 62 74 / 5%);
  gap: 0.9rem;
}

.card-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  color: var(--teal);
  background: var(--surface);
  border-radius: 0.9rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.card:nth-child(2) .card-mark,
.plan-family {
  background: var(--lavender);
}

.card:nth-child(3) .card-mark {
  color: #a45f28;
  background: #f8e8d9;
}

.card p,
.plan p,
.trust-card p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.7fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
}

.split-copy {
  display: grid;
  gap: 1.35rem;
}

.quiet-list,
.legal-content ul,
.support-list {
  margin: 0;
  padding-left: 1.2rem;
}

.quiet-list {
  display: grid;
  color: var(--petrol);
  font-weight: 650;
  gap: 0.6rem;
}

.image-card {
  position: relative;
  width: min(100%, 20rem);
  justify-self: center;
  padding: 0.5rem;
  overflow: hidden;
  background: var(--white);
  border-radius: 2.6rem;
  box-shadow: var(--shadow);
}

.image-card img {
  border-radius: 2.15rem;
}

.surface-section {
  width: 100%;
  background: var(--surface);
}

.lavender-section {
  background: var(--lavender);
}

.trust-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trust-card {
  background: rgb(255 255 255 / 66%);
  box-shadow: none;
}

.plan {
  min-height: 22rem;
}

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

.plan-featured h3,
.plan-featured p,
.plan-featured li {
  color: var(--white);
}

.plan ul {
  display: grid;
  margin: 0;
  padding-left: 1.2rem;
  gap: 0.5rem;
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2.3rem, 6vw, 5rem);
  color: var(--white);
  background: var(--petrol);
  border-radius: var(--radius-lg);
}

.final-cta::after {
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 19rem;
  height: 19rem;
  content: "";
  border: 2.5rem solid rgb(71 145 149 / 35%);
  border-radius: 50%;
}

.final-cta h2,
.final-cta p {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.final-cta p {
  max-width: 42rem;
  margin-top: 1rem;
  color: #cbe0df;
  font-size: 1.15rem;
}

.final-cta .button-row {
  position: relative;
  z-index: 1;
  margin-top: 1.6rem;
}

.site-footer {
  margin-top: clamp(4rem, 9vw, 8rem);
  color: #d9e6e5;
  background: #0c3039;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  padding-block: 3.2rem;
  gap: 2rem;
}

.footer-copy {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.footer-copy strong,
.footer-links a {
  color: var(--white);
}

.footer-copy p {
  max-width: 35rem;
  color: #a9c3c1;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0.7rem 1.2rem;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 1.4rem;
  color: #92afad;
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: 0.87rem;
}

.legal-hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background: var(--surface);
}

.legal-hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.5rem, 6vw, 4.7rem);
}

.legal-hero p {
  max-width: 48rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.draft-note,
.status-note {
  padding: 1rem 1.15rem;
  color: #63401f;
  background: #fff1df;
  border: 1px solid #edc89e;
  border-radius: var(--radius-sm);
}

.draft-note strong,
.status-note strong {
  color: #4d2d12;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(12rem, 0.28fr) minmax(0, 0.72fr);
  align-items: start;
  padding-block: clamp(3rem, 8vw, 6rem);
  gap: clamp(2rem, 6vw, 5rem);
}

.legal-toc {
  position: sticky;
  top: 1.5rem;
  display: grid;
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  gap: 0.5rem;
}

.legal-toc strong {
  margin-bottom: 0.35rem;
  color: var(--petrol);
}

.legal-toc a {
  font-size: 0.92rem;
}

.legal-content {
  display: grid;
  max-width: 50rem;
  gap: 2.4rem;
}

.legal-content section {
  display: grid;
  scroll-margin-top: 2rem;
  gap: 0.9rem;
}

.legal-content h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.legal-content h3 {
  margin-top: 0.6rem;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.legal-content p,
.legal-content li {
  color: #344f56;
}

.legal-content li + li {
  margin-top: 0.45rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

th,
td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--petrol);
  background: var(--surface);
}

tr:last-child td {
  border-bottom: 0;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.support-card {
  display: grid;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  gap: 0.8rem;
}

.support-card h2 {
  font-size: 1.45rem;
}

.invite-shell,
.admin-shell {
  display: grid;
  min-height: calc(100vh - 5rem);
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at 20% 20%, rgb(71 145 149 / 18%), transparent 24rem),
    var(--light);
}

.invite-card,
.admin-card {
  display: grid;
  width: min(100%, 38rem);
  padding: clamp(1.6rem, 5vw, 3.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  gap: 1.2rem;
}

.invite-card h1,
.admin-card h1 {
  font-size: clamp(2.1rem, 7vw, 3.7rem);
}

.privacy-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  color: var(--teal);
  background: var(--surface);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 760;
}

.not-found {
  text-align: center;
}

@media (max-width: 58rem) {
  .nav-links a:not(.language-link) {
    display: none;
  }

  .hero-grid,
  .split,
  .legal-shell {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-copy {
    justify-items: start;
  }

  .phone-frame {
    width: min(72vw, 19rem);
  }

  .card-grid,
  .trust-grid,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 38rem) {
  .nav {
    min-height: 4.5rem;
  }

  .hero-grid {
    padding-block: 3.5rem 4.5rem;
  }

  .card-grid,
  .trust-grid,
  .plan-grid,
  .support-grid,
  .footer-inner,
  .footer-links,
  .legal-toc {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    grid-column: auto;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .plan {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #395158;
    --line: #6d9292;
  }

  .card,
  .plan,
  .trust-card,
  .support-card {
    border-width: 2px;
  }
}
