/* Sheepdoc marketing page. The idea is a stage: dark, neutral, cool ground where the customer's deck is the only
   thing in colour, then a light section for the controls and the price. Newsreader for the voice, Geist for the
   working text, and the app's own blue-grey as the single accent so the site and the product feel like one thing. */

:root {
  --stage: #131f29;
  --stage-deep: #0f1922;
  --stage-raised: #1b2a36;
  --stage-line: #2a3a47;
  --on-stage: #eef3f6;
  --on-stage-soft: #a4b4c1;

  --mist: #eef1f3;
  --paper: #fbfcfc;
  --ink: #14202a;
  --ink-soft: #44515c;
  --muted: #6b7783;
  --rule: #d8dee2;

  /* Straight from the app's --color-primary family. */
  --brand: #63859e;
  --brand-deep: #3d5466;
  --brand-light: #a9c3d4;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --wrap: 1200px;
  --gutter: clamp(1rem, 5vw, 3.5rem);
  --serif: Newsreader, ui-serif, Georgia, serif;
  --sans: Geist, ui-sans-serif, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.022em;
  line-height: 1.02;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin: 0;
}

a {
  color: var(--brand-deep);
  text-decoration-color: color-mix(in srgb, var(--brand) 45%, transparent);
  text-underline-offset: 3px;
}

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

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

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

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

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

/* ---------- stage (dark sections) ---------- */

.stage {
  background: var(--stage);
  color: var(--on-stage);
}

.stage--deep {
  background: var(--stage-deep);
}

.stage a:not(.btn) {
  color: var(--on-stage);
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

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

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.wordmark {
  font-family: Poppins, var(--sans);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--brand-light);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: 0.95rem;
}

/* :not(.btn) so this never out-specifies a button's own colours. */
.site-nav a:not(.btn) {
  color: var(--on-stage-soft);
  text-decoration: none;
  font-weight: 500;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn-sm {
  padding: 0.55rem 1.05rem;
  font-size: 0.9rem;
}

.btn-light {
  background: var(--on-stage);
  color: var(--stage);
}

.btn-light:hover {
  background: #fff;
  color: var(--stage);
}

.btn-outline {
  border-color: var(--stage-line);
  color: var(--on-stage);
}

.btn-outline:hover {
  border-color: var(--brand-light);
  color: #fff;
}

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

.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn-quiet {
  border-color: var(--rule);
  background: var(--paper);
  color: var(--ink);
}

.btn-quiet:hover {
  border-color: var(--brand);
  color: var(--ink);
}

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

.hero {
  position: relative;
  padding-block: clamp(7.5rem, 14vw, 10.5rem) clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
}

/* One soft pool of light on the stage floor, under where the deck sits. */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18rem;
  width: 80rem;
  height: 40rem;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(99 133 158 / 30%), transparent);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero-copy {
  max-width: 50rem;
}

.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

/* Names the topic in plain search words above a headline that keeps the brand's voice. */
.eyebrow {
  margin-bottom: 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-light);
}

.lede {
  margin-top: 1.6rem;
  max-width: 38rem;
  font-size: clamp(1.075rem, 1.6vw, 1.25rem);
  color: var(--on-stage-soft);
}

/* On wider screens each phrase is unbreakable as a unit, so lines break between ideas. Phones wrap normally: there a
   phrase is wider than the column and would leave a one-word orphan. Wide enough for the longest phrase. */
.lede--phrased {
  max-width: 44rem;
}

@media (width >= 48rem) {
  .lede--phrased > span {
    display: inline-block;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.1rem;
}

.hero-note {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--on-stage-soft);
}

/* The screen: Sheepdoc's viewer in a browser window, with the link's settings pinned to its corner. The window is
   light product chrome so the example deck inside reads as a customer's content, not as the thing on sale. */
.screen {
  position: relative;
  margin: clamp(3rem, 7vw, 5rem) 0 0;
}

.window {
  border-radius: 12px;
  overflow: hidden;
  background: #e7ecef;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 10%), 0 50px 120px -40px rgb(0 0 0 / 85%);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  background: #dfe5e9;
}

.window-dots {
  display: flex;
  gap: 0.4rem;
}

.window-dots i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #c3ccd3;
}

.window-url {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: #f5f7f8;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The viewer's own toolbar, drawn after the real one: title, pager, full screen. */
.viewer-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.viewer-title {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewer-pager {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-variant-numeric: tabular-nums;
}

.viewer-full {
  justify-self: end;
}

.window svg {
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.viewer-stage {
  padding: clamp(0.75rem, 2.5vw, 2rem);
  background: #e7ecef;
}

.viewer-stage img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 10px 30px -12px rgb(20 32 42 / 45%);
}

.screen-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--on-stage-soft);
}

.link-card {
  margin-top: 1rem;
  padding: 1.1rem 1.25rem 0.6rem;
  border-radius: 14px;
  background: rgb(27 42 54 / 92%);
  border: 1px solid var(--stage-line);
  color: var(--on-stage);
  font-size: 0.9rem;
  backdrop-filter: blur(16px);
}

.link-card-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--stage-line);
  font-weight: 600;
  font-size: 0.975rem;
}

.link-card dl {
  margin: 0;
}

.link-card dl > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
  padding: 0.6rem 0;
}

.link-card dl > div + div {
  border-top: 1px solid rgb(255 255 255 / 5%);
}

.link-card dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--on-stage-soft);
}

.link-card dd {
  margin: 0;
}

.link-card svg,
.points svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-card-title svg {
  color: var(--brand-light);
}

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

.section-head {
  display: grid;
  gap: 1.25rem;
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.section-head p {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
}

.stage .section-head p {
  color: var(--on-stage-soft);
}

/* ---------- fidelity ---------- */

.fidelity {
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.fidelity-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.video-slide {
  margin: 0;
}

.video-slide-frame {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 10px 30px -12px rgb(20 32 42 / 45%);
}

.video-slide-frame img {
  width: 100%;
  height: auto;
}

/* The enterprise deck's platform slide puts its video in the left 46% (`![bg left:46%]` in its deck.md). */
.video-slide-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 46%;
  height: 100%;
  object-fit: cover;
}

.video-slide figcaption {
  margin-top: 1rem;
  max-width: 40rem;
  font-size: 0.925rem;
  color: var(--on-stage-soft);
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.facts li {
  padding-top: 1.1rem;
  border-top: 1px solid var(--stage-line);
}

.facts h3 {
  margin-bottom: 0.5rem;
}

.facts p {
  color: var(--on-stage-soft);
  font-size: 0.975rem;
}

/* ---------- control ---------- */

.control {
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.feature {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
}

.feature h2,
.feature h3 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.feature-copy > p {
  color: var(--ink-soft);
  max-width: 34rem;
}

/* On light sections the label above a feature heading takes the darker accent. */
.feature-copy .eyebrow {
  margin-bottom: 0.75rem;
  color: var(--brand-deep);
}

/* "More on <topic>" under a section, linking to its topic page. */
.feature-copy .more {
  margin-top: 1.4rem;
  font-weight: 500;
}

.aside {
  margin-top: 1rem;
  font-size: 0.925rem;
  color: var(--muted) !important;
}

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.feature-copy > p + .points {
  margin-top: 1.4rem;
}

.points li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.8rem;
  color: var(--ink-soft);
}

.points svg {
  margin-top: 0.25rem;
  color: var(--brand);
}

.shot {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgb(20 32 42 / 8%), 0 30px 70px -36px rgb(20 32 42 / 45%);
}

.shot img {
  width: 100%;
  height: auto;
}

.shot--dialog {
  max-width: 34rem;
  justify-self: center;
}

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

.pricing {
  padding-block: clamp(4.5rem, 10vw, 8rem);
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.section-head--wide {
  max-width: 48rem;
}

/* One plain statement above the rate card: what the price depends on. */
.bill {
  max-width: 32rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.bill > div {
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}

.bill h3 {
  margin-bottom: 0.4rem;
}

.bill p {
  max-width: 32rem;
  color: var(--ink-soft);
}

/* A rate card: the plans are columns of one panel, not a row of floating cards. */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem 1.6rem 1.6rem;
}

.plan + .plan {
  border-top: 1px solid var(--rule);
}

.plan--lead {
  background: #f1f5f8;
  box-shadow: inset 0 3px 0 var(--brand);
}

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

.price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.amount {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.per {
  color: var(--muted);
  font-size: 0.9rem;
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: start;
  gap: 0.35rem;
  flex: 1;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.plan .btn {
  margin-top: 0.5rem;
}

/* sheepdoc.com offers the $1 trial, so the page is written with it showing. The no-trial wording only appears if
   plans.js hears from the API that a deployment has no trial (it reveals these by dropping the attribute). */
[data-no-trial-only] {
  display: none;
}

.plan-badge {
  align-self: start;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-deep);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Secondary "Choose <plan>" under a trial button reads as a link, not a second button. */
.plan .btn[data-trial-secondary].btn-quiet {
  margin-top: 0;
  padding-block: 0.2rem;
  border-color: transparent;
  background: none;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: underline;
}

.pricing-foot {
  margin-top: 1.1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Enterprise has no list price, so it says in words what the others say with a number. */
.plan-note {
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

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

.site-footer {
  padding-block: 2rem;
  background: var(--stage-deep);
  border-top: 1px solid var(--stage-line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-size: 0.9rem;
}

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

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

/* ---------- contact and topic pages ---------- */

.contact-hero,
.page-hero {
  padding-block: clamp(7.5rem, 14vw, 10rem) clamp(3.5rem, 7vw, 5rem);
}

.contact-hero h1,
.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
}

.page-hero h1 {
  max-width: 50rem;
}

/* A plain light section; topic pages stack several, the main page has one for the use cards. */
.band {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  border-top: 1px solid var(--rule);
}

/* Features divide each other with a rule, but one opening a section has nothing above it to divide from. */
.band .wrap > .feature:first-child {
  padding-top: 0;
  border-top: 0;
}

/* Cards that each link to a topic page. */
.uses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.uses a {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  height: 100%;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s var(--ease);
}

.uses a:hover {
  border-color: var(--brand);
  color: var(--ink);
}

.uses p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.uses .eyebrow {
  margin-bottom: 0.15rem;
  font-size: 0.8rem;
  color: var(--brand-deep);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--brand);
}

.steps h3 {
  margin-bottom: 0.4rem;
}

.steps p {
  color: var(--ink-soft);
  font-size: 0.975rem;
}

.faq {
  max-width: 48rem;
  border-top: 1px solid var(--rule);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.15rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.05rem;
}

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

/* A plus drawn from two bars, turned into a cross when the answer is open. */
.faq summary::after {
  content: "";
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 100% 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 2px 100% no-repeat;
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 42rem;
  padding-bottom: 1.25rem;
  color: var(--ink-soft);
}

.closer {
  padding-block: clamp(4rem, 8vw, 6rem);
  text-align: center;
}

.closer h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
}

.closer p {
  max-width: 36rem;
  margin: 1rem auto 0;
  color: var(--on-stage-soft);
}

.closer .cta-row {
  justify-content: center;
}

.contact-body {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

/* The other ways in, beside the form: a quiet list rather than a second form-sized block. */
.routes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.routes li {
  display: grid;
  gap: 0.4rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.routes h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}

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

.routes .contact-line {
  font-weight: 600;
}

/* ---------- inquiry form ---------- */

.inquiry-form {
  display: grid;
  gap: 1.1rem;
}

.inquiry-form h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.field-row {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink);
}

.field small {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(99 133 158 / 20%);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.4rem;
}

.form-actions .btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-status {
  font-size: 0.925rem;
  color: var(--ink-soft);
}

.form-status--ok {
  color: #1d6b4a;
}

.form-status--error {
  color: #a23a2d;
}

/* Honeypot: kept in the layout's flow for bots but off-screen for people (display:none is skipped by smarter bots). */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- motion: one orchestrated entrance on the hero, nothing else moves on its own ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy > *,
.screen,
.contact-hero .wrap > *,
.page-hero .wrap > * {
  animation: rise 0.9s var(--ease) both;
}

.hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(4) { animation-delay: 200ms; }
.screen { animation-delay: 260ms; animation-duration: 1.1s; }

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

  .hero-copy > *,
  .screen,
  .contact-hero .wrap > *,
  .page-hero .wrap > * {
    animation: none;
  }
}

/* ---------- wider screens ---------- */

@media (width >= 48rem) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }

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

  .plan + .plan {
    border-top: 0;
  }

  .plan:nth-child(even) {
    border-left: 1px solid var(--rule);
  }

  .plan:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .points--grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 2.5rem;
  }
}

@media (width >= 64rem) {
  .contact-grid {
    grid-template-columns: 1.6fr 1fr;
  }

  /* The settings card overlaps the window's lower-right corner, like a panel opened beside the viewer. */
  .screen .window {
    max-width: 52rem;
  }

  .link-card {
    position: absolute;
    right: 0;
    bottom: 1rem;
    width: 22rem;
    margin: 0;
    box-shadow: 0 30px 80px -30px rgb(0 0 0 / 80%);
  }

  .fidelity-grid {
    grid-template-columns: 1.5fr 1fr;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: clamp(6rem, 10vw, 8.5rem);
  }

  .feature {
    grid-template-columns: 1fr 1.3fr;
  }

  .feature--flip .feature-copy {
    order: 2;
  }

  .feature--flip {
    grid-template-columns: 1.3fr 1fr;
  }

  /* A feature with no screenshot: its copy takes the full width. */
  .feature--text {
    grid-template-columns: 1fr;
  }

  .plans {
    grid-template-columns: repeat(4, 1fr);
  }

  .plan:nth-child(n) {
    border-top: 0;
    border-left: 1px solid var(--rule);
  }

  .plan:first-child {
    border-left: 0;
  }
}

/* ---------- small screens ---------- */

@media (width < 40rem) {
  .site-nav {
    gap: 0.9rem;
  }

  /* The in-page anchors go first when the header gets tight, including the other pages' links to them. */
  .site-nav a[href^="#"],
  .site-nav a[href^="index.html#"] {
    display: none;
  }

  /* Phones get the app's own mobile captures (see the <picture> sources); a portrait capture is cropped so it
     doesn't turn every feature into a scroll. */
  .shot picture img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
  }

  .link-card dl > div {
    grid-template-columns: 7.25rem 1fr;
  }
}
