/* ---------------------------------------------------------------------------
   Skanvy marketing site
   Tokens follow the Nocturne design system the homepage redesign was drawn
   in: a dark ink ground with the app's blurple Pro accent.
   --------------------------------------------------------------------------- */

:root {
  --bg: #161826;
  --surface: #232532;
  --text: #e9e9ed;
  --accent: #9184d9;
  --divider: color-mix(in srgb, #e9e9ed 16%, transparent);

  --n-200: #e4e7f5;
  --n-300: #cfd3e5;
  --n-400: #b2b6ca;
  --n-500: #9397ab;
  --n-600: #75798c;
  --n-700: #595d6c;
  --n-800: #3f424d;
  --n-900: #292b31;

  --a-200: #e7e5fe;
  --a-300: #d2cefd;
  --a-400: #b5abfc;
  --a-600: #796cbf;
  --a-700: #5d5294;
  --a-800: #423a6a;
  --a-900: #2b2741;

  --section: #262a60;
  --section-glow: #353b80;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --shadow-md: 0 0 0 1px #595d6c, 0 6px 18px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 0 0 1px #9397ab, 0 16px 40px rgba(0, 0, 0, 0.65);

  --gutter: clamp(20px, 5vw, 56px);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--a-300);
  text-decoration: none;
}

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

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

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}

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

.page {
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--narrow {
  max-width: 820px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a-300);
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* ---- buttons and tags ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 10px;
  border-radius: var(--r-md);
  white-space: nowrap;
}

.btn-primary {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--divider);
}

.btn-secondary:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 7%, transparent);
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.tag-accent {
  background: var(--a-800);
  color: #f5f4ff;
}

.tag-neutral {
  background: var(--n-800);
  color: #f3f5fe;
}

.tag-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}

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

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  padding-block: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  font-weight: 500;
  font-size: 17px;
}

.brand:hover {
  color: var(--text);
}

/* The app icon itself, so the header, the favicon and the home screen match. */
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: url("assets/icon.svg") center / cover no-repeat;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  white-space: nowrap;
}

.nav a {
  color: var(--n-300);
  font-size: 14px;
}

.nav a:hover {
  color: var(--a-200);
}

.site-header .wrap {
  position: relative;
}

.menu {
  display: none;
}

.menu summary {
  list-style: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--divider);
  cursor: pointer;
  font-size: 18px;
}

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

.menu nav {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: calc(100% - 8px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.menu nav a {
  padding: 14px 12px;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
}

.menu nav a:hover {
  background: color-mix(in srgb, var(--text) 7%, transparent);
}

@media (max-width: 560px) {
  .site-header .nav {
    display: none;
  }

  .menu {
    display: block;
  }
}

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

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px;
  padding: 56px var(--gutter) 0;
  background: radial-gradient(ellipse 50% 70% at 78% 45%, var(--a-900), transparent 70%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 40px 0 64px;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-lede {
  font-size: 17px;
  line-height: 1.6;
  max-width: 540px;
  color: var(--n-300);
  text-wrap: pretty;
}

.stores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.store {
  padding: 8px 16px 8px 12px;
  gap: 10px;
  justify-content: flex-start;
}

.store:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.store .icon {
  font-size: 26px;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-weight: 400;
}

.store-text small {
  font-size: 11px;
  color: var(--n-400);
}

.store-text span {
  font-size: 16px;
}

.perks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  padding: 12px 0 0;
  margin: 0;
  max-width: 520px;
  list-style: none;
}

.perks li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--n-200);
}

.perk-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--r-md);
  background: var(--a-900);
  box-shadow: inset 0 0 0 1px var(--a-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--a-300);
  font-size: 18px;
}

.phones {
  position: relative;
  height: 600px;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.phone {
  position: absolute;
  background: var(--n-900);
  margin: 0;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  background: var(--surface);
}

.phone--back {
  left: 0;
  top: 70px;
  width: 250px;
  height: 510px;
  border-radius: 40px;
  padding: 9px;
  box-shadow: var(--shadow-md);
  rotate: -6deg;
  opacity: 0.85;
}

.phone--back img {
  border-radius: 32px;
}

.phone--front {
  right: 20px;
  top: 10px;
  width: 280px;
  height: 570px;
  border-radius: 44px;
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 0 90px var(--a-800);
}

.phone--front img {
  border-radius: 35px;
}

@media (max-width: 420px) {
  .phones {
    height: 520px;
  }

  .phone--back {
    width: 210px;
    height: 430px;
  }

  .phone--front {
    right: 0;
    width: 240px;
    height: 490px;
  }
}

/* ---- how it works ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  padding: 56px var(--gutter) 0;
}

.step {
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px;
  overflow: hidden;
}

.step h3 {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 16px;
  line-height: 1.3;
}

.step-num {
  color: var(--accent);
  font-size: 14px;
  font-weight: 400;
}

.step p {
  font-size: 13px;
  color: var(--n-400);
  text-wrap: pretty;
}

.step-art {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet {
  width: 130px;
  height: 150px;
  background: var(--n-200);
  border-radius: 2px;
  position: relative;
}

.sheet--tracked {
  transform: rotate(-7deg) translateY(20px);
  box-shadow: 0 0 0 2px var(--accent), 0 0 22px var(--a-600);
}

.sheet--corners {
  transform: translateY(20px);
  outline: 1px solid var(--accent);
}

.sheet--corners i {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--a-300);
}

.sheet--corners i:nth-child(1) { top: -6px; left: -6px; }
.sheet--corners i:nth-child(2) { top: -6px; right: -6px; }
.sheet--corners i:nth-child(3) { bottom: 14px; left: -6px; }
.sheet--corners i:nth-child(4) { bottom: 14px; right: -6px; }

.share-sheet {
  width: 200px;
  background: var(--n-800);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 14px 14px 44px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(24px);
}

.share-file {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.share-file::before {
  content: "";
  width: 28px;
  height: 36px;
  background: var(--n-200);
  border-radius: 2px;
}

.share-targets {
  display: flex;
  gap: 8px;
  padding-top: 6px;
}

.share-targets i {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--n-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--n-200);
  font-size: 18px;
}

.share-targets i:last-child {
  background: var(--a-700);
  color: var(--a-200);
}

/* ---- section heads ---- */

.section-head {
  padding: 110px var(--gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-head h2 {
  font-size: 34px;
  letter-spacing: -0.02em;
}

.section-head p {
  font-size: 16px;
  max-width: 600px;
  color: var(--n-400);
}

/* ---- features ---- */

.feat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(32px, 5vw, 56px);
  padding: 40px var(--gutter) 0;
  align-items: start;
}

.feat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 0;
  margin: 0;
  padding: 0;
}

.feat-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  border-radius: var(--r-md);
}

.feat-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.feat-item:hover,
.feat-item:has(input:checked) {
  background: var(--surface);
}

.feat-item:has(input:checked) {
  box-shadow: inset 2px 0 0 var(--accent);
}

.feat-item:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.feat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.feat-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--n-300);
}

.feat-item:has(input:checked) .feat-title {
  color: var(--text);
}

.feat-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--n-300);
  max-width: 560px;
  text-wrap: pretty;
}

.feat-preview {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 20px;
}

@media (min-width: 760px) {
  .feat-item:not(:has(input:checked)) .feat-body {
    display: none;
  }
}

@media (max-width: 759px) {
  .feat-item {
    cursor: default;
  }

  .feat-item:has(input:checked) {
    box-shadow: none;
  }

  .feat-item:has(input:checked) .feat-title {
    color: var(--n-300);
  }

  .feat-item:hover,
  .feat-item:has(input:checked) {
    background: transparent;
  }

  .feat-preview {
    display: none;
  }
}

.mock {
  width: 300px;
  height: 610px;
  border-radius: 46px;
  background: var(--n-900);
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 0 80px var(--a-900);
}

.mock-screen {
  width: 100%;
  height: 100%;
  border-radius: 37px;
  background: var(--bg);
  overflow: hidden;
  padding: 44px 18px 18px;
  font-size: 13px;
}

.screen {
  display: none;
  height: 100%;
  flex-direction: column;
  gap: 12px;
}

.feat:has(input[value="edge"]:checked) .screen--edge,
.feat:has(input[value="pages"]:checked) .screen--pages,
.feat:has(input[value="filter"]:checked) .screen--filter,
.feat:has(input[value="export"]:checked) .screen--export,
.feat:has(input[value="search"]:checked) .screen--search,
.feat:has(input[value="redact"]:checked) .screen--redact,
.feat:has(input[value="named"]:checked) .screen--named,
.feat:has(input[value="folders"]:checked) .screen--folders,
.feat:has(input[value="lock"]:checked) .screen--lock {
  display: flex;
}

.screen-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}

.screen-title::after {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--divider);
}

.screen-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paper {
  background: var(--n-200);
  border-radius: 3px;
}

.bar {
  height: 4px;
  background: var(--n-400);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border-radius: var(--r-md);
}

.muted {
  color: var(--n-500);
}

.on {
  color: var(--a-300);
}

.viewfinder {
  flex: 1;
  border-radius: var(--r-md);
  background: radial-gradient(circle, var(--n-800), var(--n-900));
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewfinder .paper {
  width: 150px;
  height: 200px;
  border-radius: 0;
  transform: rotate(-8deg) skewX(-4deg);
  box-shadow: 0 0 0 2px var(--accent), 0 0 26px var(--a-600);
}

.thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
}

.thumbs .paper {
  aspect-ratio: 3 / 4;
}

.thumbs .paper:nth-child(2) {
  box-shadow: 0 0 0 2px var(--accent);
}

.thumb-add {
  aspect-ratio: 3 / 4;
  border: 1px dashed var(--n-600);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--n-500);
  font-size: 22px;
}

.slider {
  height: 3px;
  background: var(--n-700);
  border-radius: 2px;
  position: relative;
}

.slider::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v);
  background: var(--accent);
}

.slider--knob::after {
  content: "";
  position: absolute;
  left: calc(var(--v) - 2%);
  top: -6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--a-300);
}

.search-field {
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  padding: 8px 10px;
}

.page-lines {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.page-lines .hit {
  height: 10px;
  background: var(--a-400);
  border-radius: 2px;
}

.blackout {
  height: 12px;
  background: var(--n-900);
  border-radius: 1px;
}

.blackout--picked {
  outline: 1px dashed var(--accent);
  outline-offset: 3px;
}

.named-row {
  box-shadow: 0 0 0 1px var(--accent);
  justify-content: flex-start;
}

.named-row::before {
  content: "";
  width: 30px;
  height: 40px;
  background: var(--n-200);
  border-radius: 2px;
  flex: none;
}

.lock {
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.lock-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--accent), 0 0 30px var(--a-700);
}

.pin {
  display: flex;
  gap: 12px;
}

.pin i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--n-500);
}

.pin i:nth-child(-n + 2) {
  border: 0;
  background: var(--a-300);
}

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

.pricing-head {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.pricing-head > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seg {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  margin: 0;
  padding: 0;
}

.seg-opt {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
}

.seg-opt + .seg-opt {
  border-left: 1px solid var(--divider);
}

.seg-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.seg-opt:has(input:checked) {
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.seg-opt:not(:has(input:checked)):hover {
  background: color-mix(in srgb, var(--text) 7%, transparent);
}

.seg-opt:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.seg-opt .tag {
  padding: 1px 7px;
  font-size: 10px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 12px;
  padding: 32px var(--gutter) 0;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: var(--r-md);
  background: var(--surface);
}

.plan--premium {
  position: relative;
  background: linear-gradient(160deg, var(--a-900), var(--surface) 60%);
  box-shadow: 0 0 0 1px var(--accent), 0 0 60px var(--a-900);
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}

.plan--premium .plan-top > span:first-child {
  color: var(--a-300);
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-price small {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--n-400);
}

.plan-note {
  font-size: 14px;
  color: var(--n-400);
}

.plan--premium .plan-note {
  color: var(--n-300);
}

.plan .btn {
  justify-content: flex-start;
  padding: 10px 14px;
  align-self: flex-start;
}

/* The three billing variants share one grid cell, so switching never
   changes the card's height and the old one can fade out over the new. */
.plan-vars {
  display: grid;
}

.plan-var {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
}

.pricing:has(#bill-yearly:checked) .plan-var--yearly,
.pricing:has(#bill-monthly:checked) .plan-var--monthly,
.pricing:has(#bill-lifetime:checked) .plan-var--lifetime {
  opacity: 1;
  visibility: visible;
}

.rule {
  height: 1px;
  margin: 6px 0;
  background: linear-gradient(to right, transparent, var(--divider) 48px,
      var(--divider) calc(100% - 48px), transparent);
}

.plan--premium .rule {
  background: linear-gradient(to right, transparent, var(--a-700) 48px,
      var(--a-700) calc(100% - 48px), transparent);
}

.plan-extra {
  font-size: 13px;
  color: var(--n-400);
}

.ticks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.ticks--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 24px;
}

.ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ticks li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: var(--n-400);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}

.plan--premium .ticks li::before {
  background: var(--accent);
}

:root {
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}

.compare {
  margin: 12px var(--gutter) 0;
}

.compare summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 14px;
}

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

.compare summary:hover {
  background: var(--n-800);
}

.compare summary .icon {
  font-size: 16px;
  color: var(--accent);
  transition: transform 0.15s;
}

.compare[open] summary .icon {
  transform: rotate(180deg);
}

.compare .when-open,
.compare[open] .when-closed {
  display: none;
}

.compare[open] .when-open {
  display: inline;
}

.compare-body {
  margin-top: 8px;
  padding: 8px 20px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  overflow-x: auto;
}

.compare-body caption {
  caption-side: top;
  text-align: left;
  font-size: 12px;
  color: var(--n-500);
  margin: 8px 0 4px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 60%, transparent);
  padding: 6px;
}

.table th:first-child {
  width: 60%;
}

.table th:last-child {
  color: var(--a-300);
}

.table td {
  padding: 6px;
}

.table thead tr {
  background: linear-gradient(to right, transparent, var(--divider) 48px,
      var(--divider) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px;
}

.table tbody tr {
  background: linear-gradient(to right, transparent,
      color-mix(in srgb, var(--text) 8%, transparent) 48px,
      color-mix(in srgb, var(--text) 8%, transparent) calc(100% - 48px),
      transparent) no-repeat bottom / 100% 1px;
}

.table tr.group td {
  padding-top: 18px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a-300);
}

.yes,
.no {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
  background: var(--n-300);
}

td:last-child .yes {
  background: var(--accent);
}

.no {
  --minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--minus);
  mask-image: var(--minus);
  background: var(--n-700);
}

/* ---- privacy ---- */

.privacy {
  margin: 110px var(--gutter) 0;
  border-radius: var(--r-lg);
  background: radial-gradient(ellipse 60% 120% at 90% 100%, var(--section-glow), var(--section) 70%);
  padding: clamp(24px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 5vw, 56px);
}

.privacy-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacy h2 {
  font-size: 36px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.privacy-copy p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--n-300);
  text-wrap: pretty;
}

.privacy-copy a {
  font-size: 14px;
}

.privacy-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-points li {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  font-size: 14px;
}

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

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-block: 40px 28px;
  font-size: 13px;
  color: var(--n-500);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--n-400);
}

.footer-links a:hover {
  color: var(--a-200);
}

/* ---- legal pages and 404 ---- */

.legal {
  padding: clamp(40px, 6vw, 72px) 0 96px;
  font-size: 16px;
  line-height: 1.65;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.03em;
}

.legal .updated {
  color: var(--n-500);
  font-size: 14px;
  margin-top: 12px;
}

.legal h2 {
  font-size: 21px;
  letter-spacing: -0.01em;
  margin-top: 44px;
}

.legal h3 {
  font-size: 17px;
  margin-top: 28px;
}

.legal p,
.legal li {
  color: var(--n-300);
  margin-top: 14px;
}

.legal ul {
  padding-left: 22px;
  max-width: 62ch;
}

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

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.callout {
  margin-top: 26px;
  padding: 20px 22px;
  background: linear-gradient(160deg, var(--a-900), var(--surface) 70%);
  box-shadow: inset 0 0 0 1px var(--a-800);
  border-radius: var(--r-lg);
}

.callout p {
  margin-top: 0;
  color: var(--text);
}

.notfound {
  padding: 96px 0 120px;
}

.notfound .section-head {
  padding: 0 0 32px;
}

.notfound .ticks {
  font-size: 16px;
}

/* ---- motion ----
   Everything below is CSS only and kept subtle. None of it runs for people
   who ask their system for reduced motion, and the scroll-linked pieces only
   run where the browser supports scroll timelines; elsewhere the page simply
   renders in its final state. */

@property --glow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@media (prefers-reduced-motion: no-preference) {

  /* hero entrance: the copy rises in turn, the phones settle into place */

  .hero-copy > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }

  .phone--front {
    animation: phone-front-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
  }

  .phone--back {
    animation: phone-back-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
  }

  /* step 01: the page drifts, then the outline locks on */

  .sheet--tracked {
    animation: lock-on 5s ease-in-out infinite;
  }

  /* step 02: one corner handle is nudged and let go */

  .sheet--corners i:nth-child(4) {
    animation: nudge 4s ease-in-out 1s infinite;
  }

  /* premium: a light travels slowly round the border */

  .plan--premium::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--glow-angle),
        transparent 0 68%, var(--a-300) 84%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
    animation: glow-spin 9s linear infinite;
  }

  /* premium: switching the billing period cross-fades the plan */

  .plan-var {
    transition: opacity 0.3s ease, visibility 0.3s;
  }

  /* scroll-linked: reveals, the share sheet, and the hero parallax */

  @supports (animation-timeline: view()) {
    .step,
    .section-head,
    .feat-list,
    .mock,
    .plan,
    .compare,
    .privacy {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }

    .share-sheet {
      animation: share-up linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 45%;
    }

    .phone--back {
      animation: phone-back-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both,
        drift linear both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0 700px;
    }
  }

  /* comparison: the table slides open rather than jumping */

  @supports (interpolate-size: allow-keywords) and selector(::details-content) {
    .compare {
      interpolate-size: allow-keywords;
    }

    .compare::details-content {
      height: 0;
      overflow: clip;
      transition: height 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
        content-visibility 0.4s allow-discrete;
    }

    .compare[open]::details-content {
      height: auto;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 14px;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}

@keyframes phone-front-in {
  from {
    opacity: 0;
    translate: 24px 12px;
  }
}

@keyframes phone-back-in {
  from {
    opacity: 0;
    translate: 32px 8px;
    rotate: 0deg;
  }
}

@keyframes drift {
  to {
    transform: translateY(56px) rotate(-3deg);
  }
}

@keyframes lock-on {
  0%,
  100% {
    transform: rotate(-10deg) translate(-6px, 26px);
    box-shadow: 0 0 0 2px transparent, 0 0 0 transparent;
  }
  35% {
    transform: rotate(-5deg) translate(4px, 18px);
    box-shadow: 0 0 0 2px transparent, 0 0 0 transparent;
  }
  50%,
  85% {
    transform: rotate(-7deg) translateY(20px);
    box-shadow: 0 0 0 2px var(--accent), 0 0 22px var(--a-600);
  }
}

@keyframes nudge {
  0%,
  60%,
  100% {
    translate: 0 0;
    scale: 1;
  }
  20% {
    scale: 1.25;
  }
  35%,
  45% {
    translate: 7px 5px;
    scale: 1.25;
  }
}

@keyframes glow-spin {
  to {
    --glow-angle: 360deg;
  }
}

@keyframes share-up {
  from {
    transform: translateY(90px);
  }
  to {
    transform: translateY(24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
