/* atkinson-hyperlegible-next-latin-ext-wght-normal */
@font-face {
  font-family: 'Atkinson Hyperlegible Next Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/site-font-latin-ext-wght-normal-7dae0c6c66.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* atkinson-hyperlegible-next-latin-wght-normal */
@font-face {
  font-family: 'Atkinson Hyperlegible Next Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/site-font-latin-wght-normal-18b2a1a39a.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Design tokens. Source of truth: docs/research/06-design-rules.md section G.
   Change a value here and every screen follows. No gradients, no glass, no purple. */
:root {
  --font-ui: 'Atkinson Hyperlegible Next Variable', 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --font-mono-face: 'Atkinson Hyperlegible Mono', ui-monospace, monospace;

  --accent: #03435b;
  --accent-hover: #033549;
  --accent-pressed: #042b3a;
  --accent-subtle: #e8f2f7;
  --on-accent: #ffffff;

  --n-50: #f7f8f9;
  --n-100: #eff1f3;
  --n-200: #e2e5e9;
  --n-300: #cdd2d8;
  --n-500: #848c95;
  --n-600: #646c75;
  --n-700: #4b525a;
  --n-900: #1f2327;
  --surface: #ffffff;
  --app-bg: #f7f8f9;
  --canvas: #eff1f3;

  --danger: #b42318;
  --danger-subtle: #fdecea;
  --success: #166b2e;
  --success-subtle: #e8f5ec;
  --warning: #8a5300;
  --warning-subtle: #fdf3e2;
  --highlight: #ffd400;
  /* text on a danger fill; the scrim behind dialogs; selected words (see-through so the
     words stay readable on the white page and on dark panels) */
  --on-danger: #ffffff;
  --scrim: rgb(31 35 39 / 0.32);
  --selection: rgb(3 67 91 / 0.22);
  /* messages use the opposite surface (n-900 fill): their icons and buttons use the other theme's colors */
  --inverse-accent: #86b8cc;
  --inverse-success: #6fd08c;
  --inverse-danger: #ff8a7a;
  /* marks drawn ON the page (sign boxes, word outlines, typing box): the page is white paper
     in both themes, so these keep the light accent in dark mode too (10.7:1 on white).
     Not redefined in the dark blocks on purpose. */
  --paper-accent: #03435b;
  --paper-accent-subtle: #e8f2f7;
  /* Find changes marks on the page: taken out (6.57:1 on white), put in (6.61:1) */
  --paper-danger: #b42318;
  --paper-success: #166b2e;

  --shadow-page: 0 1px 2px rgb(16 24 40 / 0.08), 0 2px 8px rgb(16 24 40 / 0.06);
  --shadow-overlay: 0 8px 24px rgb(16 24 40 / 0.16), 0 2px 6px rgb(16 24 40 / 0.08);
  --overlay-border: transparent;

  --ease-enter: cubic-bezier(0.2, 0, 0, 1);
  --ease-exit: cubic-bezier(0.3, 0, 1, 1);
  --fast: 120ms;
  --base: 200ms;
  --slow: 300ms;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --accent: #86b8cc;
    --accent-hover: #95c3d5;
    --accent-pressed: #a2ccdc;
    --accent-subtle: #142730;
    --on-accent: #0f1215;
    --n-50: #16181b;
    --n-100: #262a2f; /* one step above the surface (was equal to it, so hover and tab tracks vanished) */
    --n-200: #2c3035; /* stays one step above n-100, so hover and pressed differ */
    --n-300: #33383e;
    --n-500: #6b737c;
    --n-600: #8f98a1;
    --n-700: #b4bbc3;
    --n-900: #eef0f2;
    --surface: #1e2125;
    --app-bg: #16181b;
    --canvas: #121417;
    --danger: #ff8a7a;
    --danger-subtle: #3a1f1c;
    --success: #6fd08c;
    --success-subtle: #17301f;
    --warning: #f5c451;
    --warning-subtle: #33280f;
    --shadow-overlay: none;
    --overlay-border: #33383e;
    --on-danger: #0f1215;
    --scrim: rgb(0 0 0 / 0.6);
    --selection: rgb(134 184 204 / 0.35);
    --inverse-accent: #03435b;
    --inverse-success: #166b2e;
    --inverse-danger: #b42318;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --accent: #86b8cc;
  --accent-hover: #95c3d5;
  --accent-pressed: #a2ccdc;
  --accent-subtle: #142730;
  --on-accent: #0f1215;
  --n-50: #16181b;
  --n-100: #262a2f;
  --n-200: #2c3035;
  --n-300: #33383e;
  --n-500: #6b737c;
  --n-600: #8f98a1;
  --n-700: #b4bbc3;
  --n-900: #eef0f2;
  --surface: #1e2125;
  --app-bg: #16181b;
  --canvas: #121417;
  --danger: #ff8a7a;
  --danger-subtle: #3a1f1c;
  --success: #6fd08c;
  --success-subtle: #17301f;
  --warning: #f5c451;
  --warning-subtle: #33280f;
  --shadow-overlay: none;
  --overlay-border: #33383e;
  --on-danger: #0f1215;
  --scrim: rgb(0 0 0 / 0.6);
  --selection: rgb(134 184 204 / 0.35);
  --inverse-accent: #03435b;
  --inverse-success: #166b2e;
  --inverse-danger: #b42318;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --base: 120ms;
    --slow: 120ms;
  }
}

/* ezlana.com pages. Colors, radii, shadows and motion come from the app's tokens
   (apps/web/src/styles/tokens.css, prepended at build). Sizes follow docs/research/06-design-rules.md G1-G7.
   No gradients, no glass, no card shadows, no uppercase, no positive letter-spacing. */

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

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

body {
  margin: 0;
  background: var(--app-bg);
  color: var(--n-900);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

img,
svg {
  display: block;
}

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

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

p,
li,
dd {
  text-wrap: pretty;
}

p {
  margin: 0;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--n-900);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 600px) {
  .wrap {
    padding: 0 32px;
  }
}

.icon {
  flex: none;
}

/* ---------- header (same as the front page: apps/web/src/app/landing/SiteChrome.tsx) ---------- */

html {
  scroll-padding-top: 80px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--n-200);
  background: var(--app-bg);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-right: auto;
  border-radius: 8px;
  color: var(--n-900);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  text-decoration: none;
}

.top-nav {
  display: flex;
  gap: 4px;
}

.top-nav a,
.menu-nav a,
.menu summary,
.foot-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--n-900);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--fast) var(--ease-enter);
}

.top-nav a:hover,
.menu-nav a:hover,
.menu summary:hover,
.foot-nav a:hover {
  background: var(--n-100);
}

.top-nav a[aria-current='page'],
.menu-nav a[aria-current='page'],
.foot-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.top-open {
  margin-left: 8px;
}

.menu {
  display: none;
}

.menu summary {
  cursor: pointer;
  list-style: none;
}

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

.menu-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  padding: 8px 16px;
  border-bottom: 1px solid var(--n-200);
  background: var(--app-bg);
}

.menu-nav a {
  min-height: 48px;
  font-size: 18px;
}

@media (max-width: 767px) {
  .top-nav {
    display: none;
  }
  .menu {
    display: block;
  }
}

@media (max-width: 639px) {
  .top-open {
    min-height: 44px;
    padding: 0 16px;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 12px;
  font: 600 16px/24px var(--font-ui);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--fast) var(--ease-enter),
    border-color var(--fast) var(--ease-enter);
}

.btn-main {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-main:hover {
  background: var(--accent-hover);
}

.btn-main:active {
  background: var(--accent-pressed);
}

.btn-line {
  border-color: var(--n-500);
  background: var(--surface);
  color: var(--n-900);
}

.btn-line:hover {
  border-color: var(--accent);
}

.btn-big {
  min-height: 56px;
  padding: 0 28px;
  font-size: 20px;
  line-height: 28px;
}

/* ---------- type ---------- */

.h-hero {
  font-size: 40px;
  line-height: 48px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (min-width: 900px) {
  .h-hero {
    font-size: 56px;
    line-height: 60px;
  }
}

.h-section {
  font-size: 30px;
  line-height: 38px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.h-item {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.lede {
  margin-top: 16px;
  max-width: 44ch;
  font-size: 20px;
  line-height: 30px;
}

.quiet {
  color: var(--n-700);
}

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

.prose {
  max-width: 66ch;
}

.prose > * + * {
  margin-top: 16px;
}

.prose ul,
.prose ol {
  margin-bottom: 0;
  padding-left: 24px;
}

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

/* ---------- sections ---------- */

.hero {
  padding: 48px 0 32px;
}

@media (min-width: 900px) {
  .hero {
    padding: 72px 0 48px;
  }
}

.section {
  padding: 48px 0;
}

@media (min-width: 900px) {
  .section {
    padding: 64px 0;
  }
}

.section + .section {
  border-top: 1px solid var(--n-200);
}

.section-head {
  max-width: 66ch;
  margin-bottom: 32px;
}

.section-head p {
  margin-top: 12px;
}

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 32px;
}

/* ---------- screenshots of the real app ---------- */

.shot {
  display: block;
  overflow: hidden;
  border: 1px solid var(--n-300);
  border-radius: 12px;
  background: var(--surface);
}

.shot img {
  width: 100%;
}

.shot-phone {
  max-width: 320px;
  margin: 0 auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 12px;
  color: var(--n-700);
  font-size: 16px;
  line-height: 24px;
}

/* ---------- notes ---------- */

.note {
  display: flex;
  gap: 12px;
  max-width: 66ch;
  padding: 16px 20px;
  border: 1px solid var(--n-300);
  border-radius: 12px;
  background: var(--surface);
}

.note .icon {
  margin-top: 2px;
}

.note-warn {
  border-color: var(--warning);
  background: var(--warning-subtle);
}

.note-warn .icon {
  color: var(--warning);
}

/* ---------- plans ---------- */

.plans {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--n-300);
  border-radius: 16px;
  background: var(--n-200);
}

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

@media (min-width: 1040px) {
  .plans {
    grid-template-columns: repeat(4, 1fr);
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
}

.price {
  margin-top: 12px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.price-alt {
  margin-top: 4px;
  min-height: 48px;
  color: var(--n-700);
  font-size: 16px;
  line-height: 24px;
}

.limits {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 24px;
}

.limits div + div {
  margin-top: 12px;
}

.limits dt {
  color: var(--n-700);
}

.limits dd {
  margin: 0;
  font-weight: 600;
}

.plan-end {
  margin-top: auto;
  padding-top: 24px;
}

/* ---------- compare table (stacks on phones) ---------- */

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 24px;
}

.compare caption {
  text-align: left;
}

.compare th,
.compare td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--n-200);
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  border-bottom: 2px solid var(--n-300);
  font-size: 18px;
}

.compare tbody th {
  width: 28%;
  font-weight: 600;
}

.compare td.us {
  font-weight: 600;
}

.compare q {
  quotes: '\201C' '\201D';
}

@media (max-width: 639px) {
  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: 100%;
  }
  .compare tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--n-200);
  }
  .compare tbody th,
  .compare td {
    width: 100%;
    padding: 0;
    border: 0;
  }
  .compare td {
    margin-top: 8px;
  }
  .compare td::before {
    content: attr(data-who);
    display: block;
    color: var(--n-700);
    font-weight: 400;
  }
}

.foot-notes {
  margin-top: 24px;
  padding-left: 24px;
  color: var(--n-700);
  font-size: 16px;
  line-height: 24px;
}

.foot-notes li + li {
  margin-top: 8px;
}

/* ---------- promises ---------- */

.promises {
  display: grid;
  gap: 32px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .promises {
    grid-template-columns: 1fr 1fr;
  }
}

.promises li {
  padding-top: 16px;
  border-top: 2px solid var(--n-300);
}

.promises p {
  margin-top: 8px;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--n-700);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.status-live {
  color: var(--success);
}

/* ---------- questions ---------- */

.faq {
  max-width: 66ch;
  border-top: 1px solid var(--n-200);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary .icon {
  transition: transform var(--base) var(--ease-enter);
}

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

.faq details > p {
  padding-bottom: 20px;
}

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

.get {
  margin-top: 32px;
}

.get-facts {
  margin-top: 12px;
  color: var(--n-700);
  font-size: 16px;
  line-height: 24px;
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  gap: 12px;
}

.ticks li + li {
  margin-top: 12px;
}

.ticks .icon {
  margin-top: 2px;
  color: var(--success);
}

.systems {
  max-width: 66ch;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--n-200);
  list-style: none;
}

.systems li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: 64px;
  padding: 12px 0;
  border-bottom: 1px solid var(--n-200);
}

.systems .name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.systems .what {
  margin-left: auto;
  color: var(--n-700);
  font-size: 16px;
  line-height: 24px;
}

.steps {
  margin: 0;
  padding-left: 24px;
}

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

/* ---------- about ---------- */

.fixes {
  max-width: 900px;
}

.suite {
  display: grid;
  gap: 16px;
  max-width: 66ch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.suite li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.suite img {
  width: 48px;
  height: 48px;
}

.suite .when {
  color: var(--n-700);
  font-size: 16px;
  line-height: 24px;
}

/* ---------- legal ---------- */

.legal {
  padding-bottom: 64px;
}

.legal h2 {
  margin-top: 48px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.legal h2 + * {
  margin-top: 12px;
}

.short {
  max-width: 66ch;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--n-300);
  border-radius: 16px;
  background: var(--surface);
}

.short ul {
  margin: 12px 0 0;
  padding-left: 24px;
}

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

.legal table {
  width: 100%;
  max-width: 900px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 24px;
}

.legal th,
.legal td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--n-200);
  text-align: left;
  vertical-align: top;
}

.legal thead th {
  border-bottom: 2px solid var(--n-300);
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

code {
  font-family: var(--font-mono-face);
  font-size: 16px;
}

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

.foot {
  border-top: 1px solid var(--n-200);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 48px;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: -12px;
}

.foot-nav a[href^='mailto:'] {
  color: var(--accent);
}

.foot-note {
  color: var(--n-700);
  font-size: 16px;
  line-height: 24px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0ms !important;
  }
}
