/*
 * mediqation.com — one stylesheet.
 *
 * Tokens come from the Figma variables "Mediqation Web" (colours, type,
 * space, radius). Each value is named once below and used by name.
 *
 * Breakpoints (as upkit.app): one column below 640 px, two-up from 640,
 * header links from 900, full desktop layout from 1024, 120 px side padding
 * from 1280. Mobile-first: the base rules are the Figma 390 frames.
 */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Variable.d749ae42.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colours */
  --teal: #0ec4c4;
  --teal-strong: #007a7c;
  --teal-wash: #e0fafa;
  --teal-soft: #f0fefe;
  --ink: #0a2a2a;
  --ink-2: #0d3d3d;
  --heading: #101828;
  --body: #4a5565;
  --muted: #6a7282;
  --line: #e5e7eb;
  --white: #ffffff;
  --on-dark-muted: #d1d5dc;
  --footer: #101828;
  --footer-muted: #99a1af;
  --mediqation-panel: #ecf8f1;
  --on-dark-surface: rgba(255, 255, 255, 0.06);
  --on-dark-border: rgba(255, 255, 255, 0.12);
  --on-dark-divider: rgba(255, 255, 255, 0.1);
  /* upkit.app's .store-btn */
  --store-ink: #1a1a2e;
  --radius-btn: 10px;
  --shadow-store-btn: 0 4px 16px rgba(255, 255, 255, 0.2);
  --shadow-screen: 0 16px 40px rgba(10, 41, 41, 0.12);

  /* gradients */
  --gradient-hero: linear-gradient(135deg, var(--white) 0%, var(--teal-soft) 71.429%);
  --gradient-band: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 35.714%, var(--ink) 71.429%);

  /* space */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-120: 120px;

  /* radius */
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-20: 20px;
  --radius-24: 24px;
  --radius-pill: 999px;

  /* layout */
  --content-max: 1200px;
  --gutter: var(--space-20);
  --section-pad: var(--space-56);
  --moving-pad: var(--space-56);
  --band-pad: var(--space-56);
  --card-pad: var(--space-20);
  --grid-gap: var(--space-16);
  --header-h: 64px;

  /* type */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-size: 36px;
  --display-lh: 44px;
  --display-ls: -1px;
  --h2-size: 28px;
  --h2-lh: 36px;
  --h2-ls: -0.5px;
  --h3-size: 20px;
  --h3-lh: 28px;
  --h3-ls: -0.2px;
  --lead-size: 16px;
  --lead-lh: 26px;
}

@media (min-width: 640px) {
  :root {
    --gutter: var(--space-40);
    --section-pad: var(--space-96);
    --moving-pad: var(--space-80);
    --band-pad: var(--space-80);
    --card-pad: var(--space-28);
    --grid-gap: var(--space-24);
    --display-size: 56px;
    --display-lh: 64px;
    --display-ls: -1.5px;
    --h2-size: 36px;
    --h2-lh: 44px;
    --h2-ls: -0.8px;
    --h3-size: 24px;
    --h3-lh: 32px;
    --h3-ls: -0.3px;
    --lead-size: 18px;
    --lead-lh: 28px;
  }
}

@media (min-width: 900px) {
  :root {
    --header-h: 72px;
  }
}

@media (min-width: 1280px) {
  :root {
    --gutter: var(--space-120);
  }
}

/* ---- base ---- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-synthesis: none;
  font-size: 16px;
  line-height: 26px;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

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

svg {
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

.on-dark :focus-visible,
.banner :focus-visible {
  outline-color: var(--teal);
}

.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.icon--20 {
  width: 20px;
  height: 20px;
}

/* ---- links and buttons ---- */

.text-link,
.arrow-link {
  color: var(--teal-strong);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible,
.arrow-link:hover,
.arrow-link:focus-visible {
  text-decoration: underline;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 16px;
  line-height: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--teal-strong);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 0.2s ease;
}

.btn:hover {
  box-shadow: 0 4px 12px rgba(0, 122, 124, 0.3);
}

.btn--large {
  height: 48px;
  padding: var(--space-12) var(--space-24);
}

.btn--small {
  height: 40px;
  padding: var(--space-8) var(--space-20);
}

.eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-pill);
  background: var(--teal-wash);
  color: var(--teal-strong);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- store buttons: upkit.app's .store-btn ---- */

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

.store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-12) var(--space-20);
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--store-ink);
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.store-btn:hover {
  background: var(--teal-wash);
}

.on-dark .store-btn:hover {
  box-shadow: var(--shadow-store-btn);
}

.store-btn__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: var(--store-ink);
}

.store-btn__icon-img {
  width: auto;
  height: 24px;
  flex-shrink: 0;
}

.store-btn__text {
  display: flex;
  flex-direction: column;
}

.store-btn__eyebrow {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0.85;
}

.store-btn__label {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ---- banner ---- */

.banner {
  background: var(--ink);
  color: var(--white);
  padding: var(--space-12) var(--space-20);
  text-align: center;
}

.banner__text {
  font-size: 14px;
  line-height: 20px;
}

.banner__link {
  font-weight: 600;
  text-decoration: none;
}

.banner__link-text {
  text-decoration: underline;
}

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

.site-header {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  height: calc(var(--header-h) - 1px);
}

.site-header__logo {
  display: flex;
  flex-shrink: 0;
  margin-right: auto;
}

.site-header__logo img {
  width: auto;
  height: 28px;
}

.site-nav,
.site-header__download {
  display: none;
}

.site-header__mobile {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.menu-toggle {
  display: flex;
  padding: 0;
  color: var(--heading);
  border-radius: var(--radius-8);
}

.site-nav__link,
.mobile-menu__link {
  color: var(--heading);
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  text-decoration: none;
}

.site-nav__link:hover,
.mobile-menu__link:hover,
.site-nav__link.is-active,
.mobile-menu__link.is-active {
  color: var(--teal-strong);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  right: var(--gutter);
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  margin-top: var(--space-8);
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-12);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__link {
  padding: var(--space-12);
  border-radius: var(--radius-8);
}

.mobile-menu__link:hover {
  background: var(--teal-wash);
}

@media (min-width: 900px) {
  .site-header__logo img {
    height: 36px;
  }

  .site-nav {
    display: flex;
    gap: var(--space-32);
    margin-right: var(--space-28);
  }

  .site-header__download {
    display: inline-flex;
  }

  .site-header__mobile,
  .mobile-menu {
    display: none;
  }

  .mobile-menu:not([hidden]) {
    display: none;
  }
}

/* ---- headings shared by sections ---- */

.hero__title,
.page-hero__title {
  color: var(--heading);
  font-size: var(--display-size);
  font-weight: 700;
  line-height: var(--display-lh);
  letter-spacing: var(--display-ls);
}

.section__heading,
.moving__heading,
.band__heading,
.download__heading {
  color: var(--heading);
  font-size: var(--h2-size);
  font-weight: 700;
  line-height: var(--h2-lh);
  letter-spacing: var(--h2-ls);
}

.section__heading--h3,
.legal__heading,
.download__title {
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  letter-spacing: var(--h3-ls);
}

.legal__heading {
  color: var(--heading);
  font-weight: 700;
}

.card__title,
.faq-item__question,
.legal__subheading {
  color: var(--heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

/* ---- home: Upkit hero ---- */

.hero {
  background: var(--gradient-hero);
  padding-block: var(--space-48) var(--space-56);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-20);
}

.accent {
  color: var(--teal-strong);
}

.hero__lead {
  max-width: 560px;
  font-size: var(--lead-size);
  line-height: var(--lead-lh);
}

.hero__line {
  color: var(--heading);
  font-weight: 600;
}

.hero__panel {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 400px;
  padding-top: var(--space-32);
  overflow: hidden;
  border-radius: var(--radius-24);
  background: var(--teal-wash);
}

/* The 1 px line border sits over the image's edge (Figma draws the stroke inside), so the screen keeps its full width. */
.screen-frame {
  position: relative;
  width: 240px;
  overflow: hidden;
  border-radius: var(--radius-20) var(--radius-20) 0 0;
  background: var(--white);
  box-shadow: var(--shadow-screen);
}

.screen-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: inherit;
  pointer-events: none;
}

.screen-frame picture,
.band__panel picture {
  display: block;
  width: 100%;
}

.screen {
  width: 100%;
}

@media (min-width: 640px) {
  .hero {
    padding-block: var(--space-96);
  }

  .hero__text {
    gap: var(--space-24);
  }

  .hero__inner {
    gap: var(--space-48);
  }

  .hero__panel {
    align-self: center;
    max-width: 480px;
    height: 560px;
    padding-top: 0;
  }

  .screen-frame {
    width: 300px;
    border-radius: var(--radius-24) var(--radius-24) 0 0;
  }
}

@media (min-width: 1024px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    align-items: center;
    gap: var(--space-64);
  }
}

/* ---- sections and card grids ---- */

.section {
  padding-block: var(--section-pad);
}

.section .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.section__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.section__lead {
  font-size: var(--lead-size);
  line-height: var(--lead-lh);
}

@media (min-width: 640px) {
  .section .container {
    gap: var(--space-48);
  }

  .section__heading,
  .section__intro {
    text-align: center;
  }

  .section__intro {
    align-items: center;
    gap: var(--space-12);
  }

  .section__lead {
    max-width: 720px;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap);
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: var(--radius-16);
  background: var(--white);
}

.icon-tile {
  display: flex;
  flex-shrink: 0;
  padding: var(--space-12);
  border-radius: var(--radius-12);
  background: var(--teal-wash);
  color: var(--teal-strong);
}

.card .icon-tile {
  margin-bottom: var(--space-16);
}

.card__body {
  margin-top: var(--space-8);
}

/* ---- home: Moving from Mediqation ---- */

.moving {
  padding-block: var(--moving-pad);
  background: var(--teal-wash);
}

.moving__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  max-width: 800px;
  margin-inline: auto;
  padding: var(--space-24);
  border-radius: var(--radius-24);
  background: var(--white);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-16);
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--teal-strong);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.step__text {
  color: var(--heading);
  font-size: 18px;
  line-height: 28px;
}

@media (min-width: 640px) {
  .moving__card {
    gap: var(--space-24);
    padding: var(--space-48);
  }

  .steps {
    gap: var(--space-24);
  }
}

/* ---- home: Mediqation band ---- */

.band {
  padding-block: var(--section-pad);
  background: var(--ink);
}

.band__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.band__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-32);
}

.band__heading {
  color: var(--white);
}

.band__lead {
  max-width: 560px;
  color: var(--on-dark-muted);
  font-size: var(--lead-size);
  line-height: var(--lead-lh);
}

.checks {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.check {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  color: var(--white);
}

.check .icon {
  color: var(--teal);
}

.band__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-24);
  background: var(--mediqation-panel);
}

.band__screen {
  width: 100%;
}

@media (min-width: 640px) {
  .band__text {
    gap: var(--space-24);
  }

  .band__inner {
    gap: var(--space-48);
  }

  .band__panel {
    align-self: center;
    width: 100%;
    max-width: 480px;
  }
}

@media (min-width: 1024px) {
  .band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    align-items: center;
    gap: var(--space-64);
  }

  .band__panel {
    height: 460px;
  }
}

/* ---- download band ---- */

.download {
  padding-block: var(--band-pad);
  background: var(--gradient-band);
}

.download__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-32);
}

.download__heading {
  color: var(--white);
  text-align: center;
}

.download__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-24);
  width: 100%;
}

.download__column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-20);
  padding: var(--space-32);
  border: 1px solid var(--on-dark-border);
  border-radius: var(--radius-24);
  background: var(--on-dark-surface);
}

.download__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  text-align: center;
}

.download__title {
  color: var(--white);
  font-weight: 700;
}

.download__line {
  color: var(--on-dark-muted);
}

.download__column .store-buttons {
  justify-content: center;
}

@media (min-width: 640px) {
  .download__inner {
    gap: var(--space-40);
  }
}

@media (min-width: 768px) {
  .download__columns {
    grid-template-columns: repeat(2, minmax(0, 500px));
    justify-content: center;
  }
}

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

.site-footer {
  padding-block: var(--space-40) var(--space-32);
  background: var(--footer);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.site-footer__wordmark {
  color: var(--teal);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.site-footer__tagline,
.site-footer__copyright {
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 20px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12) var(--space-20);
  font-size: 14px;
  line-height: 20px;
}

.site-footer__links a {
  color: var(--on-dark-muted);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.site-footer__divider {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--on-dark-divider);
}

.site-footer__copyright {
  text-align: center;
}

@media (min-width: 900px) {
  .site-footer {
    padding-top: var(--space-48);
  }

  .site-footer__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-footer__links {
    gap: var(--space-32);
  }
}

/* ---- page hero (FAQ, Support, Privacy, Terms, 404) ---- */

.page-hero {
  padding-block: var(--space-48) var(--space-40);
  border-bottom: 1px solid var(--line);
  background: var(--gradient-hero);
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

/* Body L at every width (the Figma 390 frames keep it, unlike the home leads). */
.page-hero__lead {
  max-width: 760px;
  font-size: 18px;
  line-height: 28px;
}

@media (min-width: 640px) {
  .page-hero {
    padding-block: var(--space-80) var(--space-64);
  }
}

/* ---- content columns ---- */

.content {
  padding-block: var(--space-40) var(--space-56);
}

.column {
  margin-inline: auto;
}

.column--800 {
  max-width: 800px;
}

.column--760 {
  max-width: 760px;
}

@media (min-width: 640px) {
  .content {
    padding-block: var(--space-64) var(--space-96);
  }
}

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: var(--space-20);
  border: 1px solid var(--line);
  border-radius: var(--radius-16);
  background: var(--white);
}

@media (min-width: 640px) {
  .faq-item {
    padding: var(--space-24) var(--space-28);
  }
}

/* Support */

.support {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.support__paragraph {
  font-size: var(--lead-size);
  line-height: var(--lead-lh);
}

.note {
  padding: var(--space-16) var(--space-20);
  border-radius: var(--radius-12);
  background: var(--teal-wash);
  color: var(--heading);
}

.email-card {
  display: flex;
  align-items: center;
  gap: var(--space-20);
  padding: var(--space-24) var(--space-28);
  border: 1px solid var(--line);
  border-radius: var(--radius-16);
  background: var(--white);
}

.email-card__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.email-card__label {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.email-card__address {
  overflow-wrap: anywhere;
  color: var(--teal-strong);
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  text-decoration: none;
}

.email-card__address:hover,
.email-card__address:focus-visible {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .email-card__address {
    font-size: var(--h3-size);
    line-height: var(--h3-lh);
    letter-spacing: var(--h3-ls);
  }
}

/* Privacy and Terms */

.legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
}

.legal__section {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  overflow-wrap: break-word;
}
