/* Subnook marketing — Material 3 on a light surface.
   App screenshots stay YouTube-dark. This page is the Google-like wrapper. */

:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --ink: #1f1f1f;
  --muted: #5f6368;
  --line: #e3e5e8;
  --line-strong: #c4c7c5;
  --link: #0b57d0;
  --link-hover: #0842a0;
  --coral: #c4452f;
  --coral-fill: #ff6b57;
  --chip: #eef0f2;
  --band: #eceef1;
  --radius: 12px;
  --radius-lg: 28px;
  --font: "Roboto", system-ui, -apple-system, sans-serif;
  --max: 72rem;
  --read: 40rem;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 20;
  background: var(--surface);
  padding: 8px 12px;
}

.wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.wrap-read {
  width: min(100% - 48px, var(--read));
  margin-inline: auto;
}

/* Top app bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.bar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand img.icon {
  width: auto;
  height: 36px;
}

.brand img.wordmark {
  height: 18px;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-left: auto;
  align-items: center;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--chip);
  color: var(--ink);
}

.nav .nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
}

.nav .nav-cta:hover {
  background: #000;
  color: #fff;
}

/* Type */
.kicker {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

h1,
h2,
.h1 {
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.lead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 32px;
}

.hero-copy .lead {
  max-width: none;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin: 0;
}

.hero-copy .pain {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--muted);
  max-width: none;
  margin: 0;
  line-height: 1.4;
}

.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.band {
  background: var(--band);
}

.split {
  display: grid;
  gap: 40px 64px;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  }
}

.split .mark-aside {
  width: min(280px, 55vw);
  height: auto;
  justify-self: center;
}

.foot-mark {
  display: block;
  width: 72px;
  height: auto;
  margin: 0 auto 24px;
}

.center {
  text-align: center;
}

.center .lead {
  margin-inline: auto;
}

/* Buttons */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font: 500 0.9375rem/1 var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
}

.btn-fill {
  background: var(--ink);
  color: #fff;
}

.btn-fill:hover {
  background: #000;
  color: #fff;
}

.btn-tonal {
  background: #e8eaed;
  color: var(--ink);
}

.btn-tonal:hover {
  background: #dadce0;
  color: var(--ink);
}

.btn-text {
  color: var(--link);
  min-height: 40px;
  padding: 0 12px;
}

.btn[disabled],
.btn.is-off {
  opacity: 0.45;
  pointer-events: none;
}

/* Hero: pitch only. Product chrome waits below the fold so the
   manifesto is what you actually read. */
.hero {
  padding: clamp(56px, 9vh, 104px) 0 clamp(28px, 5vh, 48px);
}

.hero .wrap {
  width: min(100% - 48px, 84rem);
}

.hero-copy {
  max-width: none;
}

.hero .kicker {
  font-size: 0.8125rem;
  margin-bottom: 16px;
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.hero-side {
  display: grid;
  gap: 22px;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px 64px;
  }

  .hero-side {
    padding-top: 0.7rem;
  }
}

.hero .row {
  margin-top: 40px;
}

.hero .btn {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1rem;
}

.coming-soon {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 80px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

body:not(.is-soon) .coming-soon {
  display: none;
}

body.is-soon .is-later {
  display: none !important;
}

.is-wait {
  display: none !important;
}

body.is-soon .hero {
  padding-bottom: clamp(40px, 6vh, 64px);
}

.section-tight {
  padding: 0 0 clamp(56px, 8vw, 96px);
}

.section-tight .wrap {
  width: min(100% - 48px, 84rem);
}

.device {
  background: #0f0f0f;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  color: #717171;
  font-size: 0.875rem;
  overflow: hidden;
  position: relative;
}

.device span {
  position: relative;
  z-index: 1;
}

.device::after {
  content: "";
  position: absolute;
  inset: 18% 12% auto 12%;
  height: 44%;
  background: #212121;
  border-radius: 8px;
}

.play-frame {
  aspect-ratio: 16 / 9;
  background: #0f0f0f;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  color: #aaa;
  position: relative;
}

.play-frame button {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #0f0f0f;
  font-size: 1.5rem;
  cursor: default;
}

/* Cards / columns */
.grid-3 {
  display: grid;
  gap: 16px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.shots {
  display: grid;
  gap: 16px;
}

@media (min-width: 800px) {
  .shots {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.shot {
  background: #0f0f0f;
  border-radius: var(--radius);
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #717171;
  font-size: 0.8125rem;
}

.shot.tall {
  min-height: 280px;
}

/* Idea blocks: large screenshot, two columns, first sentence bold. */
.idea {
  text-align: center;
  scroll-margin-top: 72px;
}

.idea .wrap {
  width: min(100% - 48px, 72rem);
}

.idea-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.idea h2 {
  max-width: 22ch;
  margin: 0 auto 2.25rem;
  text-wrap: balance;
}

/* Opening panel on index2: app icon + bold name, one-line subtitle under it. */
.hero-h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: inherit;
  font-size: inherit;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
  margin: 0 0 clamp(10px, 1.5vw, 16px);
}

.hero-icon {
  width: clamp(52px, 7vw, 88px);
  height: auto;
}

.idea-hero .hero-name-line {
  font-size: clamp(2.75rem, 7.5vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.idea-hero .hero-name-line .hero-name-sub {
  color: #4a4a4a;
}

.hero-h1 .hero-sub {
  display: block;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

@media (min-width: 600px) {
  .hero-h1 .hero-sub {
    white-space: nowrap;
  }
}

.idea-cta {
  justify-content: center;
  margin-top: 3.5rem;
}

.idea-cta .btn {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1rem;
}

.idea-frame {
  margin: 0 0 2.75rem;
  background: #0f0f0f;
  border-radius: var(--radius-lg);
  color: #717171;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  width: 100%;
}

.idea-frame--large {
  max-width: 64rem;
  aspect-ratio: 16 / 10;
}

.idea-frame--photo {
  max-width: 64rem;
  aspect-ratio: auto;
  background: transparent;
  border-radius: 0;
  margin: 0 0 2.75rem;
  overflow: visible;
}

.choose-line {
  margin: 0 0 0.4rem;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--muted);
}

.dl-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
}

.dl-soon {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.faq-more {
  margin: 28px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 36rem;
}

/* Lower page: same centered title rhythm as the idea blocks. */
.stack {
  text-align: center;
  scroll-margin-top: 72px;
}

.stack-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stack h2 {
  max-width: 22ch;
  margin: 0 auto;
  text-wrap: balance;
}

.stack .lead {
  margin: 0.75rem auto 2.25rem;
  max-width: 32rem;
}

.stack-note {
  color: var(--muted);
  margin: -1.5rem auto 2rem;
  max-width: 32rem;
}

.stack .dl-actions {
  justify-content: center;
}

#download .dl-actions {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dl-trial {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

#download .lead {
  margin-bottom: 1.75rem;
}

.dl-shot {
  margin: 0 auto 2.5rem;
  max-width: 42rem;
  width: 100%;
}

.dl-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.stack .faq,
.stack form {
  text-align: left;
  width: min(100%, 40rem);
}

.stack h2 + .faq,
.stack h2 + .grid-3,
.stack h2 + .shots {
  margin-top: 2.25rem;
}

.stack .faq-more {
  margin: 28px auto 0;
}

.stack form .btn {
  justify-self: start;
}

.idea-frame--photo img {
  display: block;
  width: 100%;
  height: auto;
}

.compare {
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: ew-resize;
}

.compare img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}

.compare-top {
  position: absolute;
  inset: 0 auto 0 0;
  width: 32%;
  overflow: hidden;
  pointer-events: none;
}

.compare-top img {
  max-width: none;
  height: auto;
}

.compare-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.compare-range {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 32%;
  z-index: 2;
  width: 40px;
  margin-left: -20px;
  pointer-events: none;
}

.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #8a6a42;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 35%);
}

.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: #8a6a42;
  color: #f4f2ef;
  font-size: 18px;
  letter-spacing: 0.12em;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 22%), 0 2px 10px rgb(0 0 0 / 28%);
}

.shots-reel {
  position: relative;
}

.shots-viewport {
  overflow: hidden;
  width: 100%;
}

.shots-track {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
}

.shots-track img {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
}

.shots-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1f1f1f;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 12%), 0 2px 10px rgb(0 0 0 / 22%);
}

.shots-prev {
  left: 12px;
}

.shots-next {
  right: 12px;
}

.shots-btn:hover,
.shots-btn:focus-visible {
  background: #f4f2ef;
}

.shots-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.shots-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c4c7c5;
  cursor: pointer;
}

.shots-dots button.is-on {
  background: #1f1f1f;
}

.idea-copy {
  text-align: left;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.4;
  color: var(--muted);
}

.idea-copy p {
  margin: 0;
}

.idea-copy strong {
  display: inline;
  font-weight: 500;
  color: var(--ink);
}

/* Apple window shots include ~43px of drop-shadow on a 1024px file.
   Inset the copy to the window edge, not the PNG. Percentage padding
   is of the parent, so use the same min() as the column width. */
.idea-cols {
  display: grid;
  gap: 1.75rem 3.5rem;
  width: min(100%, 64rem);
  padding-inline: calc(min(100%, 64rem) * 43 / 1024);
  box-sizing: border-box;
}

@media (min-width: 800px) {
  .idea-cols {
    grid-template-columns: 1fr 1fr;
  }

  .idea-cols.idea-wide {
    grid-template-columns: 1fr;
  }
}

.idea-copy.idea-center {
  text-align: center;
}

/* index2: text spans the full screenshot file, shadow included. */
.page-v2 .idea-cols {
  padding-inline: 0;
}

/* Steps */
.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.steps li {
  list-style: none;
  padding: 20px 0 20px 56px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
}

.steps {
  margin: 0;
  padding: 0;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--chip);
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Buy */
.pay-fields {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .pay-fields {
    grid-template-columns: 1fr 1fr;
  }
}

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

.pay-field label {
  min-width: 0;
}

.pay-fields input {
  width: 100%;
  box-sizing: border-box;
}

.pay-field .form-note {
  margin: 0;
}

.plans {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.plan.is-main {
  border-color: var(--ink);
}

.plan .price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin: 8px 0 4px;
}

.plan .price {
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 400;
}

.plan .price-was {
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: #9aa0a6;
  text-decoration: line-through;
}

.plan .price-note {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 16px;
}

.plan ul {
  margin: 0 0 24px;
  padding: 0 0 0 1.1em;
  color: var(--muted);
}

.plan li {
  margin: 0 0 8px;
}

/* Download */
.os-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.os-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: 500 0.875rem var(--font);
  cursor: pointer;
}

.os-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.dl-panel {
  display: none;
}

.dl-panel.is-on {
  display: block;
}

/* Founder letter: iA Writer Mono on a dark page, grey desk, same
   outer width as the product screenshots. Shadow needs padding on
   every side or it clips (Apple PNGs bake ~43px of wrap-around shadow
   into the file). Fonts: site/fonts/ from iaolo/iA-Fonts, SIL OFL. */
@font-face {
  font-family: "iA Writer Mono";
  src: url("fonts/iAWriterMonoS-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "iA Writer Mono";
  src: url("fonts/iAWriterMonoS-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.ia-desk {
  background: #e6e8eb;
  overflow: visible;
  padding: clamp(80px, 10vw, 120px) 0;
}

.ia-stage {
  width: min(100% - 24px, 64rem);
  margin-inline: auto;
  padding: 48px 56px;
  box-sizing: border-box;
}

.ia-screen {
  width: 100%;
  background: #1e1e1e;
  color: #e8e6e3;
  border-radius: 12px;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 8vw, 6rem) clamp(3rem, 8vw, 6rem);
  box-shadow:
    0 0 20px 12px rgba(0, 0, 0, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.24),
    0 32px 64px rgba(0, 0, 0, 0.32),
    0 48px 96px rgba(0, 0, 0, 0.22);
}

.ia-page {
  max-width: 38rem;
  margin-inline: auto;
  font-family: "iA Writer Mono", ui-monospace, Menlo, monospace;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.8;
}

.ia-page h2 {
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0;
  color: #f4f2ef;
  margin: 0 0 1.2em;
}

.ia-page p {
  margin: 0 0 1.2em;
  color: #e8e6e3;
}

.ia-page p:last-child {
  margin-bottom: 0;
}

.ia-page a {
  color: #e8e6e3;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.ia-page a:hover {
  color: #fff;
}

.ia-page .sign-name {
  color: #f4f2ef;
  font-weight: 400;
}

.ia-page .sign-meta,
.ia-page .sign-meta a {
  color: #8a8884;
}

.letter-sign {
  margin-top: 0.4em;
}

@media (max-width: 720px) {
  .ia-desk {
    padding: 64px 0;
  }

  .ia-stage {
    width: min(100% - 16px, 64rem);
    padding: 32px 28px;
  }

  .ia-screen {
    padding: 2rem 1.25rem 2.5rem;
    border-radius: 8px;
  }
}

.sign-name {
  display: block;
  font-weight: 500;
  margin-top: 8px;
}

.sign-meta {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Testimonials */
.slot {
  position: relative;
}

.slot-flag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #fce8e6;
  color: #8c1d18;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.quote {
  font-size: 1.125rem;
  margin: 0 0 16px;
}

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

/* Docs / FAQ */
.faq {
  border-top: 1px solid var(--line);
}

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

.faq summary {
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 500;
  list-style: none;
}

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

.faq details p,
.faq details ul {
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 40rem;
}

.faq details ul {
  padding-left: 1.15rem;
}

.faq details li {
  margin: 0.2em 0;
}

/* Support form */
form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

input,
textarea,
select {
  font: 400 1rem var(--font);
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.key-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 4px 0 14px;
  margin: 0 0 16px;
}

#thanks-key {
  display: block;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 12px 0;
  font-size: 0.95rem;
}

.key-copy {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.key-copy:hover,
.key-copy:focus-visible {
  color: var(--ink);
}

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

.form-note.is-ok {
  color: #137333;
}

.form-note.is-bad {
  color: var(--muted);
}

.pay-has-ref .plan.is-main {
  border-color: #137333;
}

.legal {
  max-width: 40rem;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 2rem 0 0.5rem;
}

.thanks h1 {
  margin-bottom: 1rem;
}

.thanks-sub {
  margin: 1.5rem 0 0.75rem;
}

.thanks #thanks-instruction {
  margin-top: 0;
}

.legal p,
.legal li {
  color: #3c4043;
}

.legal code {
  font-size: 0.875em;
}

footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 64px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 0 0 24px;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--ink);
}

.tiny {
  margin-top: 24px;
  font-size: 0.75rem;
  color: #80868b;
}

footer p .tiny {
  display: block;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .wrap,
  .wrap-read {
    width: min(100% - 32px, var(--max));
  }

  .bar-inner {
    flex-wrap: wrap;
    padding-bottom: 8px;
  }
}
