/* WaveOps public site. No build step, no external requests. */

:root {
  --paper: #f6f5f1;
  --surface: #ffffff;
  --tint: #eef1f6;
  --ink: #0c1424;
  --ink-soft: #4a566b;
  --line: #dde2ea;
  --tide: #0a5cff;
  --tide-strong: #0847c9;
  --tide-wash: #e7efff;
  --mint: #0f9f84;
  --deep: #071226;
  --deep-2: #0d1d3d;
  --on-deep: #f2f5fb;
  --on-deep-soft: #a9b6cf;
  --danger: #c2372c;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(12 20 36 / 6%), 0 12px 32px rgb(12 20 36 / 8%);
  --display: "Segoe UI Variable Display", "SF Pro Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: "Segoe UI Variable Text", "SF Pro Text", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a101e;
    --surface: #111a2d;
    --tint: #0e1627;
    --ink: #eef2f9;
    --ink-soft: #a5b0c6;
    --line: #22304a;
    --tide: #6aa3ff;
    --tide-strong: #8db9ff;
    --tide-wash: #142650;
    --mint: #3fd0b3;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
  }
}

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

/* The hidden attribute must win over any display rule below (buttons are inline-flex). */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 680;
  max-width: 22ch;
}

h3 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--tide-strong);
  text-underline-offset: 3px;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
}

:focus-visible {
  outline: 3px solid var(--tide);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 8px;
}

/* Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--deep) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-deep);
  font: 700 1.2rem var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.brand-mark rect {
  fill: var(--tide);
}

.brand-mark path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.site-nav a:not(.button) {
  color: var(--on-deep-soft);
  text-decoration: none;
  font-size: 0.96rem;
}

.site-nav a:not(.button):hover {
  color: var(--on-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgb(255 255 255 / 24%);
  color: var(--on-deep);
  border-radius: 10px;
  padding: 8px 14px;
  font: inherit;
}

/* Who makes WaveOps: a link to Veralyon at the far end of the header. The same idea as
   on qbit, wavecg.store and wavesync.live, in WaveOps's own colors. */
.publisher-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 38px;
  padding: 0 14px 0 10px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  background: rgb(255 255 255 / 5%);
  color: var(--on-deep-soft);
  font: 700 0.72rem var(--display);
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.publisher-link img {
  display: block;
  width: 18px;
  height: 18px;
}

.publisher-link:hover {
  border-color: rgb(63 184 189 / 60%);
  background: rgb(63 184 189 / 14%);
  color: var(--on-deep);
}

.publisher-link:focus-visible {
  border-radius: 999px;
}

/* Buttons --------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--tide);
  color: #fff;
  font: 600 1rem var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

@media (prefers-color-scheme: dark) {
  .button {
    color: #071226;
  }
}

.button:hover {
  background: var(--tide-strong);
}

.button:active {
  transform: translateY(1px);
}

.button-small {
  padding: 9px 16px;
  font-size: 0.94rem;
}

.site-header .button-small {
  background: #fff;
  color: var(--deep);
}

.site-header .button-small:hover {
  background: #dfe8ff;
}

.button-ghost {
  background: transparent;
  border-color: rgb(255 255 255 / 28%);
  color: var(--on-deep);
}

.button-ghost:hover {
  background: rgb(255 255 255 / 8%);
}

.button-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button-outline:hover {
  background: var(--tint);
}

.button-light {
  background: #fff;
  color: var(--deep);
}

.button-light:hover {
  background: #dfe8ff;
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

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

.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgb(10 92 255 / 38%), transparent 62%),
    linear-gradient(180deg, var(--deep), var(--deep-2));
  color: var(--on-deep);
  padding: clamp(56px, 8vw, 104px) 0 clamp(150px, 21vw, 270px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 22%);
  color: #cfe0ff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.lead {
  margin-top: 22px;
  max-width: 54ch;
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  color: var(--on-deep-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero .button:not(.button-ghost) {
  background: #fff;
  color: var(--deep);
}

.hero .button:not(.button-ghost):hover {
  background: #dfe8ff;
}

.address-card {
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 20px;
  padding: clamp(18px, 2.4vw, 28px);
  backdrop-filter: blur(6px);
}

.address-label {
  display: block;
  font-size: 0.9rem;
  color: var(--on-deep-soft);
  margin-bottom: 8px;
}

.address-input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 22%);
  background: rgb(7 18 38 / 55%);
  color: var(--on-deep);
  font: inherit;
}

.address-input::placeholder {
  color: #7f8eab;
}

.browser {
  margin-top: 16px;
  border-radius: 14px;
  background: #fff;
  color: #0c1424;
  overflow: hidden;
  box-shadow: 0 18px 50px rgb(0 0 0 / 35%);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: #eef1f6;
  border-bottom: 1px solid #dde2ea;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9d1de;
}

.browser-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 5px 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #dde2ea;
  font: 500 0.92rem var(--mono);
  color: #4a566b;
  flex: 1;
  min-width: 0;
}

/* One line, always: a long address is cut with an ellipsis instead of wrapping mid-word. */
.url-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-url strong {
  color: #0847c9;
  font-weight: 700;
}

.lock {
  width: 9px;
  height: 8px;
  border-radius: 2px;
  background: #0f9f84;
  position: relative;
  flex: none;
}

.lock::before {
  content: "";
  position: absolute;
  left: 1.5px;
  top: -5px;
  width: 6px;
  height: 6px;
  border: 1.5px solid #0f9f84;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.browser-paths {
  list-style: none;
  margin: 0;
  padding: 6px 14px 10px;
}

.browser-paths li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f6;
}

.browser-paths li:last-child {
  border-bottom: 0;
}

.browser-paths code {
  flex: none;
  width: 64px;
  color: #0847c9;
  font-weight: 600;
}

.browser-paths span {
  color: #4a566b;
  font-size: 0.96rem;
}

.address-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--on-deep-soft);
}

/* The sea at the foot of the hero ----------------------------------------------------
   Five bands of waves, from the horizon (band 1) to the shore (band 5, the colour of the
   page below). Seen from the beach, far waves are small, pale and slow; near ones are tall
   and quick. Each band drifts sideways on its own clock and bobs a little.

   app.js sets two numbers on .hero: --tide runs from 0 to 1 as the hero scrolls away, and
   --look from -1 to 1 as the pointer crosses it. The tide lifts near bands more than far
   ones, so scrolling feels like walking down to the water. */

.hero {
  --tide: 0;
  --look: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  translate: 0 calc(var(--tide) * 36px);
  opacity: calc(1 - var(--tide) * 0.55);
}

.sea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(110px, 17vw, 230px);
  pointer-events: none;
}

.sea-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  /* Reaches below the hero, so lifting a band never shows a gap under it. */
  bottom: -150px;
  translate: calc(var(--look) * var(--sway)) calc(var(--tide) * var(--rise));
  animation: sea-swell var(--swell) ease-in-out infinite alternate;
  will-change: translate;
}

.sea-wave {
  position: absolute;
  left: 0;
  top: 0;
  width: 200%;
  height: 100%;
  animation: sea-drift var(--drift) linear infinite;
}

/* One full wave to the left, then again: the join cannot be seen. The distance differs per
   band because each band's waves have a different length. */
@keyframes sea-drift {
  to {
    transform: translate3d(var(--wave), 0, 0);
  }
}

@keyframes sea-swell {
  to {
    transform: translate3d(0, var(--bob), 0);
  }
}

.sea-band-1 {
  --rise: -6px;
  --sway: 3px;
  --swell: 9s;
  --bob: 2px;
}

.sea-band-1 .sea-wave {
  --wave: -16.6667%;
  --drift: 64s;
  fill: rgb(106 163 255 / 9%);
}

.sea-band-2 {
  --rise: -18px;
  --sway: -6px;
  --swell: 8s;
  --bob: 3px;
}

.sea-band-2 .sea-wave {
  --wave: -20%;
  --drift: 52s;
  animation-direction: reverse;
  fill: rgb(106 163 255 / 14%);
}

.sea-band-3 {
  --rise: -38px;
  --sway: 10px;
  --swell: 7s;
  --bob: 5px;
}

.sea-band-3 .sea-wave {
  --wave: -25%;
  --drift: 40s;
  fill: rgb(74 134 255 / 22%);
}

.sea-band-4 {
  --rise: -66px;
  --sway: -16px;
  --swell: 6s;
  --bob: 7px;
}

.sea-band-4 .sea-wave {
  --wave: -33.3333%;
  --drift: 30s;
  animation-direction: reverse;
  fill: rgb(38 98 232 / 34%);
}

.sea-band-5 {
  --rise: -104px;
  --sway: 24px;
  --swell: 5s;
  --bob: 9px;
}

/* The shore: the page below, coming in over the hero like a rising tide. */
.sea-band-5 .sea-wave {
  --wave: -50%;
  --drift: 26s;
  fill: var(--paper);
  stroke: rgb(255 255 255 / 45%);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

/* Light on the water, under the glow in the sky. */
.sea-glint {
  position: absolute;
  right: 6%;
  top: -18%;
  width: 26%;
  height: 130%;
  background: radial-gradient(closest-side, rgb(150 195 255 / 26%), transparent);
  filter: blur(8px);
  translate: calc(var(--look) * -14px) calc(var(--tide) * -30px);
}

@media (prefers-reduced-motion: reduce) {
  .sea-band,
  .sea-wave {
    animation: none;
  }
}

/* Sections -------------------------------------------------------------- */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

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

.eyebrow {
  color: var(--tide-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow-light {
  color: #9cc0ff;
}

.section-lead {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-lead-light {
  color: var(--on-deep-soft);
}

/* Modules */

.module-grid {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.module {
  background: var(--surface);
  padding: 26px 26px 28px;
}

.module svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--tide);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
}

.module p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Steps */

.steps {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  counter-reset: none;
}

.steps li {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
}

.step-number {
  display: block;
  font: 700 0.9rem var(--mono);
  color: var(--tide-strong);
  margin-bottom: 12px;
}

.steps p {
  margin-top: 8px;
  color: var(--ink-soft);
}

/* Made to fit */

.fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.fit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fit-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.fit-list li:first-child {
  padding-top: 0;
}

.fit-list p {
  margin-top: 6px;
  color: var(--ink-soft);
}

/* Pricing */

.billing-toggle {
  display: inline-flex;
  margin-top: 30px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.toggle {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: 600 0.96rem var(--text);
  padding: 9px 18px;
  border-radius: 9px;
  cursor: pointer;
}

.toggle.is-active {
  background: var(--ink);
  color: var(--paper);
}

.save {
  margin-left: 6px;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--mint);
}

.plans {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px 28px;
}

.plan-featured {
  border-color: var(--tide);
  box-shadow: var(--shadow);
}

.plan-flag {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--tide);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

@media (prefers-color-scheme: dark) {
  .plan-flag {
    color: #071226;
  }
}

.plan h3 {
  font-size: 1.35rem;
}

.plan-size {
  margin-top: 4px;
  color: var(--ink-soft);
}

.price {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.amount {
  font: 700 2.6rem/1 var(--display);
  letter-spacing: -0.03em;
}

.period {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.plan-list {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  flex: 1;
}

.plan-list li {
  position: relative;
  padding: 7px 0 7px 26px;
  color: var(--ink-soft);
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  transform: rotate(-45deg);
}

.plan-list .plus {
  color: var(--ink);
  font-weight: 600;
}

.plan-list strong {
  color: var(--ink);
  font-weight: 600;
}

.pricing-note {
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 76ch;
}

/* FAQ */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 34px 20px 0;
  position: relative;
  font: 620 1.08rem var(--display);
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font: 400 1.5rem var(--text);
  color: var(--tide-strong);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  padding: 0 34px 22px 0;
  color: var(--ink-soft);
}

/* Early access */

.access {
  background: linear-gradient(180deg, var(--deep-2), var(--deep));
  color: var(--on-deep);
}

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}

.access-form {
  display: grid;
  gap: 16px;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
}

.field label {
  display: block;
  font-size: 0.9rem;
  color: var(--on-deep-soft);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 22%);
  background: rgb(7 18 38 / 55%);
  color: var(--on-deep);
  font: inherit;
}

.field select option {
  color: #0c1424;
  background: #fff;
}

.field.has-error input,
.field.has-error select {
  border-color: #ff8b80;
}

.field-error {
  margin-top: 6px;
  font-size: 0.88rem;
  color: #ffb1a8;
}

/* Hidden from people, visible to form-filling bots. */
.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  font-weight: 600;
}

.form-status.is-ok {
  color: #7ee2c8;
}

.form-status.is-error {
  color: #ffb1a8;
}

.form-legal {
  font-size: 0.86rem;
  color: var(--on-deep-soft);
}

.access a {
  color: #bcd4ff;
}

/* Footer */

.site-footer {
  background: var(--deep);
  color: var(--on-deep-soft);
  border-top: 1px solid rgb(255 255 255 / 8%);
  padding: 40px 0 48px;
  font-size: 0.95rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-note {
  margin-top: 10px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 40px;
  align-content: start;
}

.footer-nav a {
  color: var(--on-deep-soft);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--on-deep);
}

/* Legal and simple pages ------------------------------------------------ */

.page-head {
  background: linear-gradient(180deg, var(--deep), var(--deep-2));
  color: var(--on-deep);
  padding: clamp(48px, 7vw, 84px) 0 clamp(40px, 6vw, 64px);
}

.page-head h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

.page-head p {
  margin-top: 14px;
  color: var(--on-deep-soft);
  max-width: 68ch;
}

.prose {
  width: min(760px, 100% - 40px);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}

.prose h2 {
  font-size: 1.45rem;
  max-width: none;
  margin-top: 44px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin-top: 14px;
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-top: 8px;
}

.prose strong {
  color: var(--ink);
}

.updated {
  font-size: 0.9rem;
}

.notfound {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 18px;
  padding: 64px 20px;
}

.notfound p {
  color: var(--ink-soft);
}

/* Sign-up: the address field ------------------------------------------------ */

.address-input {
  display: flex;
  align-items: stretch;
}

.address-input input {
  flex: 1;
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.address-suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  color: var(--on-deep-soft);
  font-family: var(--mono);
  font-size: 0.9rem;
  white-space: nowrap;
}

.field-note {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--on-deep-soft);
}

.field-note.is-ok {
  color: #7ee2c4;
}

.field-note.is-error {
  color: #ffb4ab;
}

.link-light {
  color: #fff;
  font-weight: 600;
}

/* Live demo --------------------------------------------------------------- */

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.demo-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.demo-card:hover {
  border-color: var(--tide);
  transform: translateY(-2px);
}

.demo-card strong {
  color: var(--ink);
  font: 650 1.35rem var(--display);
  letter-spacing: -0.01em;
}

.demo-kind {
  font: 600 0.72rem var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tide-strong);
}

.demo-go {
  margin-top: auto;
  padding-top: 8px;
  color: var(--tide-strong);
  font-weight: 600;
}

.demo-tour {
  margin: 28px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
  max-width: 820px;
}

.demo-tour strong {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .demo-card {
    transition: none;
  }
}

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

@media (max-width: 920px) {
  .hero-grid,
  .fit-grid,
  .faq-wrap,
  .access-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .steps,
  .plans,
  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-featured {
    order: -1;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--deep);
    border-bottom: 1px solid rgb(255 255 255 / 10%);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a:not(.button) {
    padding: 14px 0;
    border-bottom: 1px solid rgb(255 255 255 / 8%);
  }

  .site-nav .button {
    margin-top: 16px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .header-row {
    gap: 12px;
  }

  .publisher-link {
    padding: 0 9px;
  }

  .publisher-link span {
    display: none;
  }

  .browser-url {
    font-size: 0.8rem;
    padding-inline: 9px;
  }

  .dot {
    display: none;
  }

  .module-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .button,
  .publisher-link {
    transition: none;
  }
}
