/* MetconMate website. The colors mirror the app's dark theme
   (apps/mobile/global.css). The home page adds home.css and home.js. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/sora-latin.woff2") format("woff2");
}

/* Whiteboard handwriting on the home page, for devices without Marker Felt. */
@font-face {
  font-family: "Permanent Marker";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/permanent-marker-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Saira Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/saira-semi-condensed-700-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #101113;
  --bg-footer: #0a0b0c;
  --surface: #17181b;
  --surface-raised: #151619;
  --line: #303136;
  --line-soft: #1f2023;
  --line-row: #2a2b30;
  --text: #fff;
  --text-strong: #e0e0e0;
  --text-body: #c4c4c8;
  --text-quiet: #a3a3a3;
  --text-muted: #8e8e93;
  --text-faint: #6f6f6f;
  --nav: #c9c9c9;
  --work: #34d399;
  --rest: #f59e0b;
  --bar-work: linear-gradient(
    180deg in oklab,
    oklab(84.5% -0.126 0.034),
    oklab(61.9% -0.121 0.039)
  );
  --display: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --caps: "Saira Semi Condensed", system-ui, sans-serif;
  --gutter: 20px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 48px;
  }
}

@media (min-width: 1200px) {
  :root {
    --gutter: 120px;
  }
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: #0c0c0c;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* ── type ─────────────────────────────────────────────────────────────── */

.eyebrow {
  color: var(--work);
  font-family: var(--caps);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 16px;
  text-transform: uppercase;
}

.label {
  color: var(--text-faint);
  font-family: var(--caps);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 16px;
  text-transform: uppercase;
}

.display {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 44px;
}

.display .dim {
  display: block;
  color: var(--text-muted);
}

.title {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 36px;
}

.title .dim {
  display: block;
  color: var(--text-muted);
}

.lede {
  color: var(--text-body);
  font-size: 17px;
  line-height: 27px;
}

.meta {
  color: var(--text-quiet);
  font-size: 14px;
  line-height: 21px;
}

@media (min-width: 768px) {
  .eyebrow {
    font-size: 15px;
    line-height: 18px;
  }

  .display {
    font-size: 72px;
    line-height: 76px;
  }

  .display--xl {
    font-size: 80px;
    line-height: 82px;
  }

  .title {
    font-size: 48px;
    line-height: 52px;
  }

  .lede {
    font-size: 19px;
    line-height: 30px;
  }

  .meta {
    font-size: 16px;
    line-height: 24px;
  }
}

/* ── header ───────────────────────────────────────────────────────────── */

/* Sticky and frosted, so the sections and "Get the app" stay one tap away.
   Where scroll-driven animations exist, it starts clear over the hero and
   gains its tint and hairline as the page scrolls under it. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background: #101113d9;
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
}

@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-lift linear both;
    animation-range: 0 64px;
    animation-timeline: scroll();
  }
}

@keyframes header-lift {
  from {
    border-bottom-color: transparent;
    background-color: #10111300;
  }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.site-header .brand {
  margin-right: auto;
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 22px;
}

.brand img {
  flex-shrink: 0;
  width: auto;
  height: 21px;
  aspect-ratio: 790 / 704;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  color: var(--nav);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

@media (min-width: 768px) {
  html {
    scroll-padding-top: 80px;
  }

  .site-header .wrap {
    gap: 40px;
    height: 80px;
  }

  .brand {
    gap: 12px;
    font-size: 21px;
    line-height: 24px;
  }

  .brand img {
    height: 24px;
  }

  .site-nav {
    gap: 40px;
  }
}

/* ── page hero ────────────────────────────────────────────────────────── */

.page-hero {
  position: relative;
  overflow: clip;
  padding-bottom: 40px;
  background: radial-gradient(
    ellipse 70% 50% at 100% 20%,
    oklab(77.3% -0.147 0.044 / 18%),
    transparent
  );
}

.page-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 56px;
}

@media (min-width: 768px) {
  .page-hero {
    padding-bottom: 96px;
    background: radial-gradient(
      ellipse 45% 70% at 88% 30%,
      oklab(77.3% -0.147 0.044 / 18%),
      transparent
    );
  }

  .page-hero__copy {
    gap: 22px;
    padding-top: 110px;
  }
}

/* ── privacy ──────────────────────────────────────────────────────────── */

.glance {
  display: grid;
  gap: 20px;
  padding-bottom: 48px;
}

.glance div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 2px solid var(--work);
}

.glance .rest {
  border-color: var(--rest);
}

.glance .rest .eyebrow {
  color: var(--rest);
}

.glance .fact {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 24px;
}

.policy {
  display: flex;
  gap: 120px;
  padding-bottom: 72px;
}

.toc {
  display: none;
}

.article {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 720px;
}

.article > .intro {
  color: var(--text-strong);
  font-size: 18px;
  line-height: 29px;
}

.clause {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.clause h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 28px;
}

.clause .num {
  color: var(--work);
  font-family: var(--caps);
  font-size: 15px;
  letter-spacing: 0.1em;
  line-height: 18px;
}

.clause p,
.clause li {
  color: var(--text-body);
  font-size: 16px;
  line-height: 26px;
}

.clause a {
  color: var(--work);
}

.callout {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.callout::before {
  content: "";
  flex-shrink: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--work);
}

.clause .callout p {
  color: var(--text-strong);
}

.providers {
  padding: 0;
  list-style: none;
}

.providers li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 16px;
  border-bottom: 1px solid #25262a;
}

.providers li:last-child {
  border-bottom: 0;
}

.providers strong {
  flex-shrink: 0;
  width: 120px;
  color: var(--text);
  font-family: var(--display);
  font-size: 17px;
  line-height: 26px;
}

.contact {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(
      ellipse 60% 90% at 100% 0%,
      oklab(77.3% -0.147 0.044 / 12%),
      transparent
    ), var(--surface-raised);
}

.contact.clause {
  gap: 20px;
}

.contact .email {
  color: var(--work);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 26px;
}

@media (min-width: 768px) {
  .glance {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 96px;
  }

  .glance div {
    gap: 10px;
    padding-top: 22px;
  }

  .glance .fact {
    font-size: 22px;
    letter-spacing: -0.03em;
    line-height: 28px;
  }

  .policy {
    padding-bottom: 140px;
  }

  .article {
    gap: 56px;
  }

  .article > .intro {
    font-size: 20px;
    line-height: 32px;
  }

  .clause {
    gap: 16px;
    padding-top: 36px;
  }

  .clause h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .clause p,
  .clause li {
    font-size: 17px;
    line-height: 29px;
  }

  .providers li {
    flex-direction: row;
    gap: 24px;
  }

  .providers .detail {
    font-size: 16px;
    line-height: 26px;
  }

  .contact {
    padding: 36px;
  }

  .contact .email {
    font-size: 26px;
    line-height: 32px;
  }
}

@media (min-width: 1100px) {
  .toc {
    position: sticky;
    top: 32px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    align-self: flex-start;
    gap: 14px;
    width: 260px;
    padding-top: 6px;
  }

  .toc .label {
    padding-bottom: 6px;
  }

  .toc a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 20px;
  }

  .toc a::before {
    content: "";
    width: 3px;
    height: 18px;
    border-radius: 2px;
    background: transparent;
  }

  .toc a:hover,
  .toc a:focus-visible {
    color: var(--text);
  }

  .toc a:hover::before,
  .toc a:focus-visible::before {
    background: var(--work);
  }
}

/* Buttons are squared and set in Saira caps, as in the app. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #d4d4d4);
  color: #0c0c0c;
  cursor: pointer;
  font-family: var(--caps);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 20px;
  text-transform: uppercase;
  transition: scale 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.button:hover {
  color: #0c0c0c;
  background: linear-gradient(180deg, #fff, #e6e6e6);
}

.button:active {
  scale: 0.97;
}

.button--sm {
  flex-shrink: 0;
  min-height: 36px;
  padding-inline: 12px;
  border-radius: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 16px;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .button--sm {
    min-height: 40px;
    padding-inline: 18px;
    font-size: 14px;
  }
}

/* ── support ──────────────────────────────────────────────────────────── */

.support-hero {
  position: relative;
  overflow: clip;
  padding-bottom: 120px;
  background:
    radial-gradient(
      ellipse 70% 50% at 100% 30%,
      oklab(77.3% -0.147 0.044 / 16%),
      transparent
    ),
    radial-gradient(
      ellipse 30% 40% at 100% 100%,
      oklab(76.9% 0.056 0.155 / 10%),
      transparent
    );
}

.support-hero__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 56px;
}

.support-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.support-hero .lede {
  max-width: 460px;
}

.email-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid #34363b;
  border-radius: 24px;
  background: #141518e0;
  box-shadow: 0 40px 80px #00000080;
  backdrop-filter: blur(12px);
}

.email-card .address {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 32px;
}

.email-card .address {
  font-size: 20px;
  line-height: 26px;
}

.email-card .button {
  width: 100%;
}

.email-card .meta {
  width: 100%;
  text-align: center;
}

.email-card__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-top: 6px;
}

.email-card .meta {
  font-size: 14px;
  line-height: 20px;
}

.band {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 64px;
  border-top: 1px solid var(--line-soft);
}

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

.steps {
  display: grid;
  gap: 32px;
}

.step {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 14px;
  row-gap: 4px;
}

.step b {
  grid-row: span 2;
  color: var(--work);
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -0.05em;
  line-height: 32px;
}

.step--rest b {
  color: var(--rest);
}

.step h3,
.fix h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 28px;
}

.step p {
  color: var(--text-quiet);
  font-size: 15px;
  line-height: 23px;
}

.version {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.version .label {
  color: var(--text-quiet);
}

.version__number {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 48px;
}

.version__number span {
  color: var(--rest);
  font-family: var(--caps);
  font-size: 13px;
  letter-spacing: 0.14em;
  line-height: 16px;
}

.version dl {
  margin: 0;
}

.version dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  border-top: 1px solid var(--line-row);
  font-size: 14px;
  line-height: 20px;
}

.version dt {
  color: var(--text-muted);
}

.version dd {
  margin: 0;
  color: var(--text-strong);
}

.fixes {
  display: flex;
  flex-direction: column;
}

.fix {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-block: 26px 28px;
  border-top: 1px solid var(--line);
}

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

.fix h3 {
  font-size: 19px;
  letter-spacing: -0.025em;
  line-height: 26px;
}

.fix p {
  color: #b4b4b8;
  font-size: 16px;
  line-height: 26px;
}

.fix a {
  color: var(--work);
}

@media (min-width: 768px) {
  .support-hero {
    padding-bottom: 120px;
  }

  .support-hero__copy {
    gap: 22px;
  }

  .email-card {
    gap: 22px;
    padding: 40px;
    border-radius: 28px;
  }

  .email-card .address {
    font-size: 32px;
    line-height: 38px;
  }

  .email-card .address span {
    display: block;
  }

  .email-card .button {
    width: auto;
  }

  .email-card .meta {
    width: auto;
    max-width: 180px;
    text-align: left;
  }

  .step {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
  }

  .step b {
    font-size: 56px;
    line-height: 56px;
  }

  .step h3 {
    font-size: 22px;
  }

  .step p {
    font-size: 16px;
    line-height: 25px;
  }

  .band {
    gap: 48px;
    padding-block: 110px;
  }

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

  .fix h3 {
    font-size: 21px;
    line-height: 28px;
  }
}

@media (min-width: 1100px) {
  .support-hero__grid {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 80px;
    padding-top: 110px;
  }

  .email-card {
    flex-shrink: 0;
    width: 500px;
  }

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

  .band--split {
    flex-direction: row;
    gap: 100px;
    padding-bottom: 140px;
  }

  .band--split .band__head {
    flex-shrink: 0;
    width: 360px;
  }

  .band--split .fixes {
    flex-grow: 1;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .version {
    grid-column: 1 / -1;
  }
}

/* Main navigation on phones: a menu without JavaScript. */
.menu {
  position: relative;
}

.menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  cursor: pointer;
  list-style: none;
}

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

.menu summary img {
  width: 24px;
  height: 24px;
}

.menu__links {
  position: absolute;
  top: 48px;
  right: -8px;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #17181bf5;
  box-shadow: 0 24px 48px #00000099;
}

.menu__links a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 500;
}

.menu__links a:hover {
  background: #ffffff0d;
}

.nav-links {
  display: none;
}

@media (min-width: 1024px) {
  .menu {
    display: none;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
  }
}

/* ── footer ───────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-footer);
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 48px 40px;
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
}

.site-footer__brand p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 23px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.site-footer__links div {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer__links a {
  color: var(--text-strong);
  font-size: 15px;
  line-height: 20px;
}

.site-footer__links a:hover {
  color: var(--text);
}

.site-footer__links .accent {
  color: var(--work);
}

.site-footer__legal {
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 20px;
}

@media (min-width: 900px) {
  .site-footer .wrap {
    gap: 56px;
    padding-block: 80px 56px;
  }

  .site-footer__top {
    flex-direction: row;
    justify-content: space-between;
    gap: 64px;
  }

  .site-footer__links {
    gap: 80px;
  }
}

/* ── not found ────────────────────────────────────────────────────────── */

.not-found {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: 96px 140px;
}

.not-found a {
  color: var(--work);
}
