:root {
  --background: #f5f5f2;
  --surface: #ffffff;
  --text: #171717;
  --muted: #686860;
  --border: #deded8;
  --dark: #171717;
  --radius: 24px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.hero > * {
  min-width: 0;
}

.hero-copy {
  max-width: 100%;
}

a {
  color: inherit;
}

.topbar,
.section,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.back-link,
.topbar nav a,
footer a {
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover,
.topbar nav a:hover,
footer a:hover {
  color: var(--text);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.topbar nav {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.hero {
  width: min(1320px, calc(100% - 40px));
  margin-inline: auto;
  min-height: 680px;
  padding: 70px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(40px, 4vw, 64px);
  isolation: isolate;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 100%;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid var(--dark);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: var(--dark);
}

.button.secondary {
  background: transparent;
}

.button.light {
  color: var(--dark);
  border-color: white;
  background: white;
}

.button.disabled {
  cursor: default;
  opacity: 0.58;
}

.release-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.phone-card {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.hero-product {
  width: min(760px, 100%);
  max-width: 100%;
  height: auto;
  display: block;
}

.phone-frame {
  width: min(330px, 80vw);
  padding: 12px;
  border: 2px solid #242424;
  border-radius: 44px;
  background: #111;
  box-shadow: var(--shadow);
}

.phone-screen {
  min-height: 630px;
  border-radius: 33px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: white;
}

.browser-bar,
.browser-nav {
  min-height: 58px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #efefec;
}

.address {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  overflow: hidden;
  color: #6f6f68;
  background: white;
  font-size: 0.84rem;
  white-space: nowrap;
}

.go {
  padding: 10px 13px;
  border-radius: 10px;
  color: white;
  background: #181818;
  font-size: 0.82rem;
  font-weight: 750;
}

.screen-message {
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: var(--muted);
  text-align: center;
}

.screen-message strong {
  color: var(--text);
}

.browser-nav {
  justify-content: space-around;
  font-size: 1.35rem;
}

.section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading > p:last-child,
.feature-grid p,
.cta > p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-grid article {
  min-height: 190px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 22px;
}

.comparison {
  max-width: 820px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.shot-grid figure {
  display: flex;
  flex-direction: column;
}

.shot-link {
  border-radius: 28px;
  display: block;
}

.shot-link:focus-visible {
  outline: 3px solid #6b50b6;
  outline-offset: 4px;
}

.shot-grid img,
.wide-shot img,
.overview-shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  display: block;
  box-shadow: 0 18px 50px rgba(30, 24, 48, 0.08);
}

.wide-shot,
.overview-shot {
  margin-top: 56px;
}

.wide-shot {
  width: min(980px, 92%);
  margin-inline: auto;
}

.overview-shot {
  width: min(920px, 86%);
  margin-inline: auto;
}

figure {
  margin: 0;
}

figcaption {
  padding: 14px 4px 0;
  font-weight: 700;
}

code {
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: #e8e8e4;
  font-size: 0.9em;
}

.cta {
  margin-bottom: 80px;
  padding: 78px;
  border: 0;
  border-radius: 32px;
  color: white;
  background: var(--dark);
}

.cta .eyebrow,
.cta > p {
  color: #bdbdb8;
}

footer {
  min-height: 112px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

footer > p {
  margin: 0 auto;
  color: var(--muted);
}

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

.page {
  min-height: 70vh;
  padding: 80px 0 110px;
}

.page-copy {
  max-width: 760px;
}

.page-copy h1 {
  font-size: clamp(3.4rem, 8vw, 6.3rem);
}

.content-card {
  width: 100%;
  max-width: 850px;
  min-width: 0;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.content-card + .content-card {
  margin-top: 16px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card ul {
  margin: 0;
  padding-left: 1.25rem;
}

.content-card li + li {
  margin-top: 8px;
}

.tabs-visual {
  width: min(360px, 100%);
  margin: 26px 0 0;
}

.tabs-panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #f0f0ed;
}

.tabs-panel-header {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
}

.settings-callout {
  width: 38px;
  height: 38px;
  border: 2px solid #6b50b6;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3f2b75;
  background: #eee8ff;
  box-shadow: 0 0 0 4px rgba(107, 80, 182, 0.12);
}

.settings-gear {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.sample-tab {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  background: var(--surface);
  font-size: 0.88rem;
}

.sample-tab + .sample-tab {
  margin-top: 8px;
}

.tab-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6b50b6;
}

.tab-close {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
}

.tabs-visual figcaption {
  padding: 10px 2px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar .brand {
    grid-column: 2;
  }

  .topbar nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

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

  .hero-product {
    width: min(720px, 100%);
  }

  .lede {
    margin-inline: auto;
  }

  .actions {
    justify-content: center;
  }

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

  .wide-shot,
  .overview-shot {
    width: 100%;
  }

  .shot-grid {
    width: min(340px, 100%);
    margin-inline: auto;
  }

  .cta {
    padding: 46px 28px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer > p {
    margin: 0;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .topbar,
  .hero,
  .section,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .topbar {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .topbar .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .back-link {
    grid-row: 2;
  }

  h1 {
    width: 100%;
    font-size: clamp(2.85rem, 14vw, 3.35rem);
    overflow-wrap: anywhere;
  }

  .page-copy h1 {
    font-size: clamp(2.75rem, 13vw, 3.4rem);
  }

  .content-card {
    padding: 28px 22px;
  }

  .content-card h2 {
    font-size: 2rem;
    overflow-wrap: anywhere;
  }

  .content-card p,
  .content-card li {
    overflow-wrap: anywhere;
  }

  .hero {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    padding: 44px 14px 78px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }

  .hero-copy,
  .hero-copy .lede,
  .hero-copy .release-note {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero-copy {
    width: auto;
    overflow: hidden;
  }

  .hero-copy .eyebrow {
    font-size: 0.68rem;
    line-height: 1.7;
  }

  .hero-copy .lede {
    font-size: 1rem;
  }

  .hero-copy .actions {
    align-items: center;
    flex-direction: column;
  }

  .hero-copy .button {
    width: min(240px, 100%);
  }

  .hero {
    gap: 42px;
  }
}
