@font-face {
  font-family: 'Charter';
  src: url('fonts/charter-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --serif: 'Charter', 'Bitstream Charter', 'Iowan Old Style', Georgia, serif;
  --sans: -apple-system, system-ui, 'Helvetica Neue', Arial, sans-serif;
  --gutter: max(24px, calc((100vw - 1180px) / 2));
}

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

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

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

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2 {
  color: var(--head);
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  font-size: clamp(46px, 6.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.032em;
}

h2 {
  font-size: clamp(34px, 3.9vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
}

strong {
  font-weight: 600;
}

a {
  color: var(--head);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  padding: 0 var(--gutter);
}

.container.narrow {
  max-width: calc(760px + 2 * var(--gutter));
}

.section {
  padding: 128px 0;
}

.lead {
  color: var(--text2);
  font-size: 19px;
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 15px 26px;
  border: 0;
  border-radius: 9999px;
  background: var(--lamp);
  color: var(--lamp-ink);
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

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

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

.button-small {
  min-height: 42px;
  padding: 12px 20px;
  font-size: 15px;
}

.button-ink,
.button-ink:hover {
  background: var(--ink);
  color: var(--day-btn-text);
}

.text-link {
  color: var(--head);
  font-weight: 600;
  text-decoration-color: var(--lamp);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.tag {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text2);
  font-size: 15px;
  line-height: 1.4;
}

/* A check mark drawn with two borders. */

.tag::before {
  content: '';
  flex: none;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(-3px) rotate(-45deg);
}

/* Night: the header and hero keep the night palette in both themes. */

header,
.hero {
  --focus: var(--lamp);
  --head: var(--night-text);
  --text: var(--night-text);
  --text2: var(--night-text2);
  --rule: var(--night-rule);
  color-scheme: dark;
}

.banner {
  background: var(--night2);
  color: var(--night-text2);
  font-size: 14.5px;
}

.banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
}

.banner-link {
  color: var(--lamp);
}

.nav {
  border-bottom: 1px solid var(--night-rule);
  background: var(--night);
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 8px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-right: auto;
  color: var(--head);
  font: 400 25px/1 var(--serif);
  text-decoration: none;
}

.wordmark img {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
}

.nav .wordmark {
  font-size: 22px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 100%;
  order: 1;
  align-items: center;
  gap: 4px 24px;
  font-size: 15px;
}

.nav-links > li > a {
  color: var(--text2);
  text-decoration: none;
}

.nav-links > li > a:hover {
  color: var(--head);
  text-decoration: underline;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions .button {
  padding: 12px;
  font-size: 14px;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--text);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 64px var(--gutter) 24px;
}

.hero h1 {
  max-width: 10em;
  margin-bottom: 44px;
}

.hero .lead {
  max-width: 33em;
  margin-bottom: 40px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 48px;
}

.hero .tag::before {
  color: var(--lamp);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 560px;
  padding: 48px 0 0;
}

/* Phone stand-ins: hand-built, fake data only, in the app's own colors for the page theme. */

.phone {
  --phone-w: 280px;
  position: relative;
  flex: none;
  width: var(--phone-w);
  aspect-ratio: 390 / 844;
  border: 1px solid var(--app-line);
  border-radius: calc(var(--phone-w) * 0.13);
  background: var(--app-canvas);
  box-shadow: var(--app-shadow);
  color: var(--app-text);
  font-size: calc(var(--phone-w) / 24);
  line-height: 1.3;
  overflow: hidden;
}

/* The hero phone rises from the bottom edge, cropped like a hand holding it. */

.phone-hero {
  --phone-w: 260px;
  margin-bottom: calc(var(--phone-w) * -0.55);
}

.phone-island {
  position: absolute;
  top: 0.8em;
  left: 50%;
  width: 31%;
  height: 2.5em;
  border-radius: 2em;
  background: var(--app-island);
  transform: translateX(-50%);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 4.6em 0 2.4em;
}

.phone-title {
  margin: 0 0.6em 0.5em;
  font-size: 2.35em;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.phone-title-small {
  margin: 0 1em 0.9em;
  font-size: 1.3em;
  text-align: center;
  letter-spacing: 0;
}

.phone-group {
  margin: 0 0.9em 0.9em;
  border-radius: 0.9em;
  background: var(--app-surface);
  overflow: hidden;
}

.phone-card {
  padding: 0.85em 1em;
}

.phone-card-heading {
  margin-bottom: 0.35em;
  font-weight: 600;
}

.phone-bullets {
  padding-left: 1.15em;
  list-style: disc;
  color: var(--app-text2);
}

.phone-button {
  margin: auto 0.9em 0;
  padding: 0.9em;
  border-radius: 9999px;
  background: var(--app-accent);
  color: var(--app-on-accent);
  font-weight: 600;
  text-align: center;
}

/* Product tour */

.tour {
  background: var(--bg2);
}

.tour h2 {
  max-width: 13em;
}

.tabs {
  --tab-row: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 36px;
  background: repeating-linear-gradient(transparent 0 calc(var(--tab-row) - 1px), var(--rule) calc(var(--tab-row) - 1px) var(--tab-row));
}

.tab {
  height: var(--tab-row);
  min-height: 48px;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--text2);
  font: 400 21px/1.2 var(--serif);
  cursor: pointer;
}

.tab:hover {
  color: var(--head);
}

.tab[aria-selected='true'] {
  border-bottom-color: var(--mark);
  color: var(--head);
}

.tour .tabs {
  margin-top: 56px;
}

.tour-panel {
  display: grid;
  gap: 40px;
  margin-top: 56px;
}

/* A short fade answers the tab press, so the change is visible. */

.tour-panel:not([hidden]) {
  animation: panel-in 0.25s ease-out;
}

@keyframes panel-in {
  from {
    opacity: 0;
  }
}

.tour-panel p {
  max-width: 30em;
  color: var(--text);
  font-size: 19px;
  line-height: 1.65;
}

.tour-panel:focus-visible {
  outline-offset: 12px;
}

.tour-phone {
  display: flex;
  justify-content: center;
  container-type: inline-size;
}

/* The bezel is the screenshots' own background, so their transparent corners blend into it. */

.phone-frame {
  --frame-w: min(300px, 100cqw);
  --frame-bezel: calc(var(--frame-w) * 0.03);
  --frame-corner-ratio: 0.154;
  width: var(--frame-w);
  padding: var(--frame-bezel);
  border: 1px solid var(--app-frame-line);
  border-radius: calc((var(--frame-w) - 2 * var(--frame-bezel) - 2px) * var(--frame-corner-ratio) + var(--frame-bezel) + 1px);
  background: var(--app-island);
  overflow: hidden;
}

.phone-frame-screen {
  aspect-ratio: 778 / 1690;
}

.phone-frame-screen img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

/* Renders only on a failed image, covering the browser's broken-image icon. */

.phone-frame-screen img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--app-island);
}

.point-title {
  margin-bottom: 4px;
  font-weight: 600;
}

/* Security: a morning section in both themes */

.security {
  --focus: var(--day-focus);
  background: var(--sec-bg);
  color: var(--ink);
}

.security h2 {
  color: var(--ink);
}

.security-head {
  display: grid;
  gap: 32px;
  margin-bottom: 72px;
}

.security-side p {
  margin-bottom: 24px;
  color: var(--day-text2);
  font-size: 18px;
}

.security .pills {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 56px;
  margin-top: 0;
  border-bottom: 1px solid var(--day-rule);
}

.security .tag {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--day-rule);
  color: var(--ink);
  font-size: 18px;
}

.security .tag::before {
  color: var(--day-check);
}

/* Pilot: a morning section in both themes */

.partner {
  --focus: var(--day-focus);
  background: var(--partner-bg);
  color: var(--ink);
}

.partner h2 {
  color: var(--ink);
}

.partner-text {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.partner-text p {
  max-width: 28em;
  color: var(--day-text2);
  font-size: 19px;
}

/* Demo */

.demo {
  background: var(--bg);
}

.demo-inner {
  display: grid;
  gap: 56px;
}

.steps {
  margin-top: 48px;
}

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.step:last-child {
  border-bottom: 1px solid var(--rule);
}

.step-number {
  color: var(--mark);
  font: 400 40px/1 var(--serif);
}

.step .point-title {
  color: var(--head);
}

.step p + p {
  color: var(--text2);
  font-size: 16px;
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
}

.form-card h3 {
  color: var(--head);
  font: 400 30px/1.15 var(--serif);
}

.form-card > .help {
  margin-top: 6px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.form .button {
  align-self: flex-start;
}

.field-pair {
  display: grid;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  color: var(--text-strong);
  font-size: 14.5px;
  font-weight: 500;
}

.optional {
  color: var(--text2);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid var(--field-border);
  border-radius: 10px;
  background: var(--field-bg);
  color: var(--field-text);
  font: inherit;
  font-size: 16px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.field select {
  cursor: pointer;
}

.field textarea {
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}

.help {
  color: var(--text2);
  font-size: 14.5px;
}

.form-error {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--error-bg);
  color: var(--error-text);
}

.form-success {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 3px solid var(--mark);
  border-radius: 10px;
  background: var(--bg2);
  color: var(--head);
  font-weight: 600;
}

/* Privacy policy and 404 */

.policy {
  padding: 96px 0 128px;
}

.policy h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.policy-updated {
  color: var(--text2);
}

.policy h2 {
  margin: 56px 0 14px;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.policy p,
.policy ul {
  max-width: 38em;
}

.policy p + p,
.policy p + ul,
.policy ul + p {
  margin-top: 14px;
}

.policy ul {
  padding-left: 1.25em;
  list-style: disc;
}

.policy li::marker {
  color: var(--mark);
}

/* Footer */

.footer {
  padding: 64px 0;
  border-top: 1px solid var(--rule);
  background: var(--bg);
  color: var(--text2);
  font-size: 14.5px;
}

.footer-top {
  display: grid;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 360px;
}

.footer-columns {
  display: grid;
  gap: 28px;
}

.footer-heading {
  margin-bottom: 12px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-column a {
  color: var(--text2);
  text-decoration: none;
}

.footer-column a:hover,
.footer-column a[aria-current='page'] {
  color: var(--head);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.fine-print {
  font-size: 13px;
}

/* Wider screens */

@media (min-width: 900px) {
  .nav-inner {
    gap: 12px 32px;
  }

  .nav .wordmark {
    font-size: 25px;
  }

  .nav-actions .button {
    padding: 12px 20px;
    font-size: 15px;
  }

  .nav-links {
    flex-basis: auto;
    order: 0;
    gap: 4px 32px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    min-height: 720px;
  }

  .hero-text {
    padding: 104px 32px 120px var(--gutter);
  }

  .hero-visual {
    min-height: 0;
    padding: 0 var(--gutter) 0 0;
  }

  .phone-hero {
    --phone-w: 320px;
    margin-bottom: -150px;
  }

  .security-head {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 80px;
    align-items: end;
  }

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

  .partner-text {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 24px 80px;
    align-items: end;
  }

  .partner h2 {
    grid-row: span 2;
  }

  /* Each panel is a subgrid over the heading and tab rows, so its phone sits beside the heading. */

  .tour .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    grid-template-rows: auto auto 1fr;
    column-gap: 96px;
  }

  .tour h2 {
    grid-column: 1;
    grid-row: 1;
  }

  .tour .tabs {
    grid-column: 1;
    grid-row: 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-top: 48px;
    border-left: 1px solid var(--rule);
    background: none;
  }

  .tab {
    height: auto;
    margin: 0 0 0 -1px;
    padding: 10px 0 10px 22px;
    border-bottom: 0;
    border-left: 3px solid transparent;
    font-size: 24px;
  }

  .tab[aria-selected='true'] {
    border-left-color: var(--mark);
  }

  .tour-panel {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 1 / 4;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
    gap: 0;
    margin-top: 0;
    pointer-events: none;
  }

  .tour-panel:focus-visible {
    outline: none;
  }

  .tour-panel:focus-visible p,
  .tour-panel:focus-visible .phone-frame {
    outline: 2px solid var(--focus);
    outline-offset: 12px;
  }

  .tour-panel p {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    margin-top: 40px;
    pointer-events: auto;
  }

  .tour-panel .tour-phone {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: start;
    pointer-events: auto;
  }

  .demo-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 96px;
  }

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

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

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

  .footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 24px;
    align-items: end;
  }
}

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

  .tour-panel:not([hidden]) {
    animation: none;
  }
}
