/* AgentticMail site. Tokens mirror DESIGN.md; change them there first. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  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;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  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;
}

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --ink: #020b26;
  --text: #363b4e;
  --muted: #5f6475;
  --accent: #0056fa;
  --accent-hover: #0046cc;
  --accent-wash: #eef4ff;
  --accent-edge: #c9dbff;
  --accent-on-band: #5b9bff;
  --canvas: #ffffff;
  --surface-sunken: #f7f6f2;
  --surface-chip: #f1efe9;
  --line-soft: #e7e3d9;
  --line-strong: #d6d1c5;
  --band: #020b26;
  --band-ink: #ffffff;
  --band-muted: #a3abc2;
  --band-line: #1d2745;
  --error: #c2264b;
  --error-wash: #fff1f4;
  --success: #0f7b52;
  --success-wash: #e6f6ee;
  --success-edge: #b9e3cd;
  --error-edge: #f3c1cd;
  --warn: #8a4b00;
  --warn-wash: #fff4e0;
  --warn-edge: #f1d28a;
  --gradient-pink: #fb3486;
  --gradient-violet: #7a1efc;
  --gradient-cyan: #01ccfc;
  --brand-gradient: linear-gradient(90deg, var(--gradient-pink) 0%, var(--gradient-violet) 35%, var(--accent) 70%, var(--gradient-cyan) 100%);

  --display: clamp(44px, 5.2vw, 72px);
  --headline: clamp(30px, 3.4vw, 42px);
  --headline-sm: clamp(26px, 2.6vw, 34px);
  --subhead: 24px;
  --price: 40px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-18: 72px;
  --space-26: 104px;

  --radius-md: 8px;
  --radius-window: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --shadow-window: 0 24px 48px rgb(2 11 38 / 14%), 0 2px 6px rgb(2 11 38 / 6%);
  --shadow-menu: 0 12px 32px rgb(2 11 38 / 12%);
  --ease: cubic-bezier(0.2, 0, 0, 1);

  --container: 1200px;
  --gutter: 24px;
  --header-h: 64px;

  color-scheme: light;
  accent-color: var(--accent);
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  scrollbar-color: var(--line-strong) transparent;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 16px/1.6 var(--font-sans);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}

::selection {
  background: var(--accent-edge);
  color: var(--ink);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

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

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

.tabular {
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--band-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

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

main {
  flex: 1;
}

main {
  flex: 1;
}

input,
select,
textarea,
button {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.header-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: var(--header-h);
}

.brand-link {
  display: inline-flex;
  flex: none;
  border-radius: var(--radius-md);
}

.brand-link img {
  height: 32px;
  width: auto;
}

.brand-link .brand-iso {
  display: none;
  height: 34px;
}

.main-nav {
  margin-right: auto;
}

.main-nav ul {
  display: flex;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav > ul > li > a,
.mega > summary {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.main-nav > ul > li > a:hover,
.mega > summary:hover,
.mega[open] > summary {
  background: var(--surface-sunken);
  color: var(--ink);
}

.main-nav > ul > li > a[aria-current='page'],
.mega > summary.is-current {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- mega menu ---------- */

.mega > summary {
  gap: 6px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

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

.mega-chevron {
  color: var(--muted);
  transition: transform 200ms var(--ease);
}

.mega[open] .mega-chevron {
  transform: rotate(180deg);
}

/* Lined up under its button by site.js; without the script it opens under the logo. */
.mega-panel {
  position: absolute;
  top: calc(100% - 4px);
  left: var(--mega-left, 0);
  z-index: 60;
  display: grid;
  gap: var(--space-2) var(--space-6);
  padding: var(--space-6);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  box-shadow: var(--shadow-menu);
  animation: mega-in 180ms var(--ease);
}

.mega-product {
  grid-template-columns: repeat(2, minmax(0, 260px)) 300px;
  grid-template-rows: min-content 1fr;
}

.mega-product .mega-group:nth-child(3) {
  margin-top: var(--space-4);
}

.mega-product .mega-group:first-child {
  grid-row: span 2;
}

.mega-product .mega-feature {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.mega-resources {
  grid-template-columns: repeat(2, minmax(0, 270px));
}

/* Keeps the pointer inside the menu while it crosses the gap under the button. */
.mega-panel::before {
  position: absolute;
  inset: -14px 0 auto;
  height: 14px;
  content: '';
}

@keyframes mega-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.mega-label {
  margin: 0 0 var(--space-1);
  padding: 0 var(--space-3);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.mega-group ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega-link {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
  padding: 10px var(--space-3);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 150ms var(--ease);
}

.mega-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--canvas);
  color: var(--ink);
  transition: border-color 150ms var(--ease), color 150ms var(--ease);
}

.mega-text {
  display: grid;
  gap: 2px;
  padding-top: 1px;
}

.mega-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.mega-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.mega-link:hover,
.mega-link[aria-current='page'] {
  background: var(--surface-sunken);
}

.mega-link:hover .mega-icon,
.mega-link:focus-visible .mega-icon {
  border-color: var(--accent-edge);
  color: var(--accent);
}

.mega-feature {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
  border-radius: var(--radius-window);
  background: var(--surface-sunken);
  color: var(--ink);
  text-decoration: none;
}

.mega-feature img {
  width: 100%;
  height: auto;
  margin-bottom: var(--space-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--canvas);
}

.mega-feature-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.mega-feature-text {
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.45;
}

.mega-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: var(--space-2);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.mega-feature-link svg {
  transition: transform 200ms var(--ease);
}

.mega-feature:hover .mega-feature-link svg {
  transform: translateX(3px);
}

@media (max-width: 1180px) {
  .mega-product {
    grid-template-columns: repeat(2, minmax(0, 250px)) 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mega-panel {
    animation: none;
  }

  .mega-chevron,
  .mega-feature-link svg {
    transition: none;
  }
}

.lang-switch {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--surface-chip);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 38px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.lang-switch a[aria-current='true'] {
  background: var(--canvas);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.lang-switch a:not([aria-current='true']):hover {
  color: var(--accent);
}

.header-cta {
  flex: none;
}

/* The other language this visitor reads, offered under the header. */
.lang-suggest {
  border-bottom: 1px solid var(--accent-edge);
  background: var(--accent-wash);
  color: var(--ink);
  font-size: 14px;
}

.lang-suggest .container {
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.lang-suggest a {
  color: var(--accent);
  font-weight: 600;
}

.header-signin {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.header-signin:hover {
  background: var(--surface-sunken);
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}

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

.mobile-menu nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100dvh - var(--header-h) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  box-shadow: var(--shadow-menu);
}

.mobile-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.mobile-menu a svg {
  flex: none;
  color: var(--muted);
}

.mobile-menu a:hover,
.mobile-menu a[aria-current='page'] {
  background: var(--surface-sunken);
}

.mobile-direct a {
  font-weight: 600;
}

.mobile-group {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line-soft);
}

.mobile-label {
  margin: 0;
  padding: var(--space-1) var(--space-3);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.mobile-signin {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line-soft);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: 600 14px/1.4 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}

.button svg {
  flex: none;
}

.button-lg {
  height: 52px;
  padding: 0 24px;
  font-size: 16px;
}

.button-primary {
  background: var(--accent);
  color: var(--band-ink);
}

.button-primary:hover {
  background: var(--accent-hover);
  color: var(--band-ink);
}

.button-secondary {
  background: var(--canvas);
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

/* ---------- pills ---------- */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-chip);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.status-pill.is-soon {
  padding: 2px 10px;
  background: var(--accent-wash);
  border: 1px solid var(--accent-edge);
  color: var(--accent);
}

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

.display {
  font-size: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.headline {
  font-size: var(--headline);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.title {
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.6;
}

.note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

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

.section {
  padding: var(--space-26) 0;
}

.section.is-sunken {
  background: var(--surface-sunken);
}

.section-tight-top {
  padding-top: 0;
}

.section-tight {
  padding-bottom: var(--space-26);
}

.stack-lg {
  display: grid;
  gap: var(--space-12);
}

.section-copy {
  display: grid;
  gap: var(--space-4);
  max-width: 760px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-12) var(--space-16);
  align-items: start;
}

.split-copy {
  display: grid;
  gap: var(--space-4);
}

.page-head {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-18);
  padding-bottom: var(--space-12);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 0;
  overflow: clip;
  padding: var(--space-18) 0 0;
  background: var(--canvas);
}

/* The cream band starts halfway down the app window, wherever the copy above it ends (comité 5 B12). */
.hero-shot::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: calc(50% - var(--space-8));
  bottom: 0;
  left: -100vw;
  right: -100vw;
  background: var(--surface-sunken);
}

.hero-copy {
  display: grid;
  gap: var(--space-6);
  max-width: 860px;
}

.hero-copy .lead {
  font-size: 20px;
}

.hero-shot {
  position: relative;
  margin-top: var(--space-16);
  padding-bottom: var(--space-16);
}

/* ---------- lists ---------- */

.point-list,
.check-list {
  display: grid;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.point-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 18px;
}

.point-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.point-list svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--surface-chip);
  color: var(--ink);
}

.check-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-8);
}

.check-list li {
  display: flex;
  gap: var(--space-3);
  color: var(--ink);
}

.check-list svg {
  flex: none;
  margin-top: 3px;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding-left: 1.4em;
  color: var(--ink);
  font-size: 18px;
}

.steps li::marker {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- signature: app window ---------- */

.app-window {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-window);
  background: var(--canvas);
  box-shadow: var(--shadow-window);
}

.app-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-sunken);
}

.app-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.app-window img {
  width: 100%;
  height: auto;
}

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

.band {
  position: relative;
  overflow: hidden;
  padding: var(--space-12);
  border-radius: var(--radius-lg);
  background: var(--band);
  color: var(--band-muted);
}

.band::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--brand-gradient);
}

.band h2,
.band h3 {
  color: var(--band-ink);
}

.band a:not(.button) {
  color: var(--accent-on-band);
}

.band :focus-visible {
  outline-color: var(--accent-on-band);
}

.band-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-12) var(--space-16);
}

.band-split > div {
  display: grid;
  align-content: start;
  gap: var(--space-4);
}

.band-split .headline {
  font-size: var(--headline-sm);
}

.band-icon {
  color: var(--accent-on-band);
}

.band-note {
  padding-top: var(--space-4);
  border-top: 1px solid var(--band-line);
  font-size: 14px;
}

/* ---------- final call to action ---------- */

.final-cta {
  border-top: 1px solid var(--line-soft);
}

.final-cta-inner {
  display: grid;
  justify-items: center;
  gap: var(--space-6);
  text-align: center;
}

.final-cta .lead {
  margin: 0 auto;
}

.final-cta .cta-row {
  justify-content: center;
}

/* ---------- features ---------- */

.feature-rows {
  display: grid;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--space-4) var(--space-12);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--line-soft);
}

.feature-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.feature-row p {
  max-width: 65ch;
  font-size: 18px;
}

.feature-row-body {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.feature-group .stack-lg {
  gap: var(--space-8);
}

/* ---------- pricing ---------- */

.beta-callout {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  padding: var(--space-6) var(--space-8);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
}

.beta-callout p {
  max-width: 80ch;
  color: var(--ink);
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.list-intro {
  margin-bottom: var(--space-4);
  font-weight: 600;
}

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

  .plans.cols-3 .plan:nth-child(3) {
    border-top: 0;
    border-left: 1px solid var(--line-soft);
  }
}

.plan {
  display: grid;
  grid-row: span 7;
  grid-template-rows: subgrid;
  row-gap: var(--space-3);
  align-content: start;
  padding: var(--space-8) var(--space-6);
  border-left: 1px solid var(--line-soft);
  background: var(--canvas);
}

.plan:first-child {
  border-left: 0;
}

.plan.is-featured {
  background: var(--accent-wash);
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  color: var(--ink);
  font-size: var(--price);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan-per {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.plan-year {
  min-height: 1.5em;
  color: var(--muted);
  font-size: 14px;
}

.plan-body {
  margin-bottom: var(--space-3, 12px);
}

.plan-points {
  margin: 0 0 var(--space-3, 12px);
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 15px;
}

.plan-points li {
  position: relative;
  padding: 4px 0 4px 18px;
}

.plan-points li::before {
  content: '';
  position: absolute;
  top: 0.85em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.plan-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.plan .button {
  align-self: end;
  width: 100%;
  height: auto;
  min-height: 44px;
  padding-block: 10px;
  white-space: normal;
  text-align: center;
}

.table-scroll {
  position: relative;
  overflow-x: auto;
  background:
    linear-gradient(to right, var(--canvas) 30%, transparent) left center / 40px 100% no-repeat local,
    linear-gradient(to left, var(--canvas) 30%, transparent) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(2 11 38 / 14%), transparent) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(2 11 38 / 14%), transparent) right center / 14px 100% no-repeat scroll;
  margin-top: var(--space-8);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--canvas);
}

.split .table-scroll {
  margin-top: 0;
}

.compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}

.compare th,
.compare td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

.compare thead th {
  background: var(--surface-sunken);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.compare tbody th {
  color: var(--ink);
  font-weight: 500;
}

.compare tbody tr:last-child > * {
  border-bottom: 0;
}

.compare tr.compare-group > th {
  padding-top: 20px;
  background: var(--surface-sunken);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.compare tr.is-ours > * {
  background: var(--accent-wash);
  font-weight: 600;
}

.cell-yes {
  color: var(--success);
}

.cell-no {
  color: var(--muted);
}

.faq {
  display: grid;
  border-top: 1px solid var(--line-soft);
}

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

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details p {
  max-width: 65ch;
  padding-bottom: var(--space-6);
}

/* ---------- downloads ---------- */

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-6);
  align-items: start;
}

.download-panel {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-8);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--canvas);
}

.download-panel.is-main {
  background: var(--surface-sunken);
}

.download-head {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  color: var(--ink);
}

.download-head > div {
  display: grid;
  gap: var(--space-1);
  justify-items: start;
}

.sha {
  display: block;
  margin-top: var(--space-1);
  font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink);
  word-break: break-all;
}

/* ---------- forms ---------- */

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='search'],
input:not([type]),
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-edge);
}

input[aria-invalid='true'] {
  border-color: var(--error);
}

textarea {
  resize: vertical;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.inline-form-row {
  display: flex;
  gap: var(--space-2);
}

.inline-form-row input {
  flex: 1;
  min-width: 0;
}

.inline-form-row .button {
  height: 48px;
}

.field-error,
.form-error {
  color: var(--error);
  font-size: 14px;
  font-weight: 500;
}

.form-error {
  padding: 12px 16px;
  border: 1px solid var(--error-edge);
  border-radius: var(--radius-md);
  background: var(--error-wash);
}

.form-ok {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  color: var(--success);
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: var(--space-6);
  max-width: 720px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

/* ---------- help and blog ---------- */

.search-form {
  position: relative;
  display: flex;
  gap: var(--space-2);
  max-width: 640px;
  margin-top: var(--space-4);
}

.search-form > svg {
  position: absolute;
  top: 14px;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding-left: 44px;
}

.search-form .button {
  height: 48px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-12) var(--space-16);
}

.topic-grid section {
  display: grid;
  align-content: start;
  gap: var(--space-4);
}

.doc-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.doc-list li {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line-soft);
}

.doc-list a {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.doc-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.doc-list p {
  color: var(--muted);
  font-size: 15px;
}

.empty-note {
  padding: var(--space-8);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}

.still-stuck {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-16);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--space-16);
  padding-top: var(--space-16);
  padding-bottom: var(--space-26);
}

.article-side {
  position: sticky;
  top: calc(var(--header-h) + var(--space-8));
  align-self: start;
  display: grid;
  gap: var(--space-4);
}

.article-side ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-side a:not(.back-link) {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}

.article-side a:not(.back-link):hover {
  background: var(--surface-sunken);
  color: var(--ink);
}

.article-side a[aria-current='page'] {
  background: var(--accent-wash);
  color: var(--accent);
  font-weight: 600;
}

.side-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

.article {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  max-width: 760px;
}

.article-solo {
  padding-top: var(--space-12);
  padding-bottom: var(--space-26);
}

/* One left edge for the whole page: the title, the answer and the text start where the header's logo does. */
.container.article,
.container.answer {
  max-width: calc(var(--container) + 2 * var(--gutter));
}

.container.article > *,
.container.answer > * {
  max-width: 760px;
}

.post-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
  max-width: 820px;
}

.post-list > li {
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--line-soft);
}

.post-list article {
  display: grid;
  gap: var(--space-2);
}

.post-list .title a {
  color: var(--ink);
  text-decoration: none;
}

.post-list .title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.changelog-current {
  margin: var(--space-4) 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.changelog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.changelog-meta a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.changelog-meta a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.changelog-type {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-chip);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.changelog-type.is-feat {
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  color: var(--ink);
}

.changelog > li {
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}

.changelog .prose {
  font-size: 17px;
}

/* ---------- prose (articles, release notes, legal pages) ---------- */

.prose {
  display: grid;
  gap: var(--space-4);
  max-width: 70ch;
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

.prose h2 {
  margin-top: var(--space-6);
  font-size: var(--subhead);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.prose h3 {
  margin-top: var(--space-4);
  font-size: 20px;
  font-weight: 600;
}

.prose ul,
.prose ol {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding-left: 1.4em;
}

.prose li::marker {
  color: var(--ink);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-chip);
  color: var(--ink);
  font: 500 0.9em ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--surface-sunken);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: var(--space-12);
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  max-width: 42ch;
}

.footer-brand img {
  height: 28px;
  width: auto;
  margin-bottom: var(--space-2);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-8);
}

.footer-title {
  margin-bottom: var(--space-3);
  color: var(--ink);
  font-weight: 600;
}

.footer-links ul {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-base {
  padding-top: var(--space-6);
  padding-bottom: var(--space-8);
  border-top: 1px solid var(--line-soft);
}

/* ---------- account (account.agentticmail.com) ---------- */

.acct-lang {
  margin-left: auto;
}

.acct-main {
  padding: var(--space-16) 0 var(--space-26);
  background: var(--surface-sunken);
}

.acct-card {
  display: grid;
  gap: var(--space-4);
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-8);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--canvas);
}

.acct-title {
  font-size: var(--headline-sm);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.acct-intro {
  font-size: 16px;
}

.acct-list { margin: 0 0 20px; padding-left: 1.2em; display: grid; gap: 8px; }
.acct-form {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-2);
}

.acct-form .form-error {
  display: grid;
  gap: var(--space-1);
}

.acct-check {
  display: flex;
  min-height: 44px;
  margin-block: -10px;
  padding-block: 10px;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

.acct-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
}

.acct-check input[aria-invalid='true'] {
  outline: 2px solid var(--error);
  outline-offset: 2px;
}

.acct-submit {
  width: 100%;
}

.acct-alt {
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.acct-notice {
  padding: 12px 16px;
  border: 1px solid var(--success-edge);
  border-radius: var(--radius-md);
  background: var(--success-wash);
  color: var(--success);
  font-size: 14px;
  font-weight: 500;
}

.acct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.acct-page {
  display: grid;
  gap: var(--space-6);
  max-width: calc(760px + 2 * var(--gutter));
}

.acct-head {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.acct-head .acct-notice {
  margin-top: var(--space-2);
}

.acct-section {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-8);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--canvas);
}

.acct-section .acct-form {
  max-width: 440px;
}

.acct-section .acct-form .button {
  justify-self: start;
}

.acct-plan-name {
  color: var(--ink);
  font-size: var(--subhead);
  font-weight: 700;
  line-height: 1.2;
}

.acct-section .acct-actions {
  margin-top: var(--space-2);
}

.acct-devices {
  display: grid;
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}

.acct-devices li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line-soft);
}

.acct-device-name {
  color: var(--ink);
  font-weight: 600;
}

.acct-history summary {
  width: fit-content;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.acct-history ul {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.acct-history li {
  display: grid;
  grid-template-columns: minmax(150px, auto) 1fr;
  gap: var(--space-3);
}

.acct-danger {
  border-color: var(--error-edge);
}

.button-danger {
  background: var(--error);
  color: var(--band-ink);
}

.button-danger:hover {
  background: #a11d3e;
  color: var(--band-ink);
}

.acct-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.acct-footer-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.acct-footer-row a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.acct-footer-row a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- responsive ---------- */

/* The desktop menu needs about 1050 px; below 1100 px the header uses the phone menu (comité 5 A4). */
@media (max-width: 1099px) {
  .main-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .lang-switch {
    margin-left: auto;
  }

  .header-row {
    gap: var(--space-3);
  }
}

@media (max-width: 1024px) {

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

  .plan:nth-child(3) {
    border-left: 0;
  }

  .plan:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
  }

  .split,
  .download-grid,
  .band-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }

  .article-side {
    position: static;
  }

  .article-side ul,
  .side-title {
    display: none;
  }
}

@media (max-width: 767px) {
  .header-signin {
    display: none;
  }

  :root {
    --gutter: 16px;
    --space-26: 64px;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .hero {
    padding-top: var(--space-12);
  }

  .hero-shot {
    margin-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .hero-copy .lead,
  .lead {
    font-size: 18px;
  }

  .band {
    padding: var(--space-8) var(--space-6);
  }

  .feature-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .check-list,
  .form-row,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .plan {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .plan:first-child {
    border-top: 0;
  }

  .download-panel {
    padding: var(--space-6);
  }

  .cta-row .button {
    flex: 1 1 auto;
  }
}

@media (max-width: 560px) {
  .acct-main {
    padding-top: var(--space-6);
  }

  .acct-card,
  .acct-section {
    padding: var(--space-6) var(--space-4);
  }

  .acct-section .acct-form .button {
    justify-self: stretch;
  }

  .acct-history li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .brand-link .brand-full {
    display: none;
  }

  .brand-link .brand-iso {
    display: block;
  }

  .header-cta {
    height: 44px;
    padding: 0 12px;
  }

  .lang-switch a {
    min-width: 40px;
    padding: 0 8px;
  }

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

  .inline-form-row,
  .search-form {
    flex-direction: column;
  }

  .search-form > svg {
    display: none;
  }

  .search-form input {
    padding-left: 14px;
  }
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Precios, comité 2: what each card includes, the line for every plan, and the table on a phone. */
.plan-points ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-points-head {
  margin: var(--space-3) 0 2px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.plan-extra {
  margin: var(--space-3) 0 0;
  color: var(--muted);
  font-size: 14px;
}

.plans-all {
  margin: var(--space-6) 0 0;
  color: var(--text);
  text-align: center;
}

.compare-hint {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.split .compare {
  min-width: 0;
}

/* From 640 px the plan columns share the space evenly; the function column takes 40%. */
@media (min-width: 640px) {
  .compare-plans {
    table-layout: fixed;
  }

  .compare-plans thead th:first-child {
    width: 40%;
  }

  .compare-plans th:not(:first-child),
  .compare-plans td {
    text-align: center;
  }

  .compare-plans td svg {
    margin-inline: auto;
  }
}

.acct-page .note.is-warn {
  padding: 10px 14px;
  border: 1px solid var(--warn-edge);
  border-radius: var(--radius-md, 8px);
  background: var(--warn-wash);
  color: var(--warn);
}

/* On a phone each row stacks: the function on its own line, then one cell per plan, under a header that stays in view. */
@media (max-width: 639px) {
  .table-scroll.is-plans {
    overflow: visible;
  }

  .compare-plans {
    display: block;
    min-width: 0;
  }

  .compare-plans thead,
  .compare-plans tbody {
    display: block;
  }

  .compare-plans tr {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .compare-plans.cols-3 tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compare-plans.cols-5 tr { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .compare-plans.cols-2 tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .compare-plans thead {
    position: sticky;
    top: var(--header-h);
    z-index: 2;
  }

  .compare-plans thead tr {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: var(--surface-sunken);
  }

  .compare-plans thead th:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .compare-plans th,
  .compare-plans td {
    padding: 8px;
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .compare-plans tbody th[scope='row'],
  .compare-plans .compare-group > th {
    grid-column: 1 / -1;
  }

  .compare-plans tbody th[scope='row'] {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

/* ---------- Mi cuenta › Billing and /upgrade/<plan> (plan-stripe.md §4) ---------- */

.acct-subtitle {
  margin-top: var(--space-2);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}

.acct-facts {
  display: grid;
  margin: 0;
}

.acct-facts > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-6);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line-soft);
}

.acct-facts dt {
  color: var(--muted);
  font-size: 15px;
}

.acct-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.acct-facts > .is-total {
  border-top: 2px solid var(--line-strong);
}

.acct-facts > .is-total dt {
  color: var(--ink);
  font-weight: 700;
}

.acct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.acct-table th,
.acct-table td {
  padding: 10px 12px 10px 0;
  border-top: 1px solid var(--line-soft);
  text-align: left;
  white-space: nowrap;
}

.acct-table th {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* Mi cuenta › Facturación › Facturas (comité 4 B7): room inside the frame, one line on top, two lines per invoice on a phone. */
.acct-invoices .acct-table th,
.acct-invoices .acct-table td {
  padding: 12px 16px;
}

.acct-invoices .acct-table thead th {
  border-top: 0;
}

.acct-table .is-num {
  text-align: right;
}

@media (max-width: 599px) {
  .acct-invoices {
    overflow-x: visible;
  }

  .acct-invoices .acct-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .acct-invoices .acct-table,
  .acct-invoices .acct-table tbody {
    display: block;
  }

  .acct-invoices .acct-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'date total'
      'number status';
    gap: 2px var(--space-3);
    padding: 12px 16px;
  }

  .acct-invoices .acct-table tr + tr {
    border-top: 1px solid var(--line-soft);
  }

  .acct-invoices .acct-table td {
    padding: 0;
    border-top: 0;
  }

  .acct-invoices .inv-date { grid-area: date; }
  .acct-invoices .inv-total { grid-area: total; text-align: right; font-weight: 600; }
  .acct-invoices .inv-number { grid-area: number; }
  .acct-invoices .inv-status { grid-area: status; text-align: right; color: var(--muted); }
}

/* The parts of the next charge, under its amount (comité 4 A5). */
.acct-breakdown {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.acct-refund-hint {
  margin-top: var(--space-4);
}

/* Sign in and Create account when someone came from «Choose Pro» (comité 4 A9). */
.acct-buying {
  margin-bottom: var(--space-4);
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md, 8px);
  background: var(--surface-sunken);
  color: var(--ink);
}

input[type='number'] {
  width: 100%;
  max-width: 160px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
}

.acct-section .upgrade-form {
  max-width: 560px;
}

.upgrade-choice {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  border: 0;
}

.upgrade-choice legend {
  padding: 0;
  margin-bottom: var(--space-3);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.upgrade-summary {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
}

.plans-pay {
  max-width: 62ch;
  margin: var(--space-3) auto 0;
  text-align: center;
}

@media (max-width: 560px) {
  .upgrade-summary {
    padding: var(--space-4);
  }

  .upgrade-form .acct-actions .button {
    flex: 1 1 100%;
  }
}

/* The short question and answer near the top of a page. */
.answer {
  max-width: 760px;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.answer p {
  margin-top: var(--space-2);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

/* Comité 5: touch targets of 44 px on phones (logo, language and footer links). */
@media (max-width: 640px) {
  .brand-link {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .lang-switch a {
    min-height: 44px;
  }

  .footer-links a {
    min-height: 44px;
  }
}

/* Comité 5 B13: a shadow at the bottom of the phone menu while there is more to scroll. */
.mobile-menu nav {
  background:
    linear-gradient(var(--canvas) 30%, transparent) center top / 100% 40px no-repeat local,
    linear-gradient(transparent, var(--canvas) 70%) center bottom / 100% 40px no-repeat local,
    radial-gradient(farthest-side at 50% 0, rgb(2 11 38 / 12%), transparent) center top / 100% 12px no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, rgb(2 11 38 / 16%), transparent) center bottom / 100% 14px no-repeat scroll,
    var(--canvas);
}

/* Comité 5 A8: the box that closes each guide. */
.guide-cta {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding: var(--space-6) var(--space-8);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
}

.guide-cta p {
  margin: 0;
  color: var(--ink);
}

.topic-shot {
  padding-bottom: var(--space-12);
}

/* Help articles can show a cropped picture of the app (comité 5 B15). */
.prose figure {
  margin: var(--space-6) 0;
}

.prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}

.prose figcaption {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 14px;
}

/* Comité 5: the email services the app connects to, each with its own logo. */
.provider-strip {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.provider-title {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.provider-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.provider-strip li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.provider-imap {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-md);
  background: var(--surface-chip);
  color: var(--ink);
  font-weight: 700;
}

.brand-mark {
  flex: none;
}

.store-badge {
  display: inline-flex;
  margin-top: var(--space-3);
  border-radius: 6px;
}

.store-badge img {
  display: block;
  height: 48px;
  width: auto;
}

.mega-icon img.brand-mark {
  border-radius: 4px;
}

/* Comité 5-r2: the Store badge link is only as wide as the badge; menu icons share one box on the phone. */
.store-badge {
  align-self: flex-start;
  width: fit-content;
}

.mobile-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.title-logo {
  margin-right: var(--space-2);
  vertical-align: -3px;
}

.footer-crm-logo {
  margin-right: 6px;
  vertical-align: -4px;
}

@media (max-width: 640px) {
  .provider-strip ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2) var(--space-4);
  }

  .provider-strip .provider-imap-item {
    grid-column: 1 / -1;
  }
}

/* Precios: the number of licences on a card sold per person. */
.plan-seats {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
}

.plan-seats[hidden] {
  display: none;
}

.plan-seats label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.plan-seats p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.plan-seats-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--canvas);
}

.plan-seats-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-edge);
}

.plan-seats-row input {
  max-width: none;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: center;
  appearance: textfield;
}

.plan-seats-row input:focus-visible {
  box-shadow: none;
}

.plan-seats-row input::-webkit-inner-spin-button,
.plan-seats-row input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.plan-seats-row button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: none;
  color: var(--accent);
  cursor: pointer;
}

.plan-seats-row button:hover:not(:disabled) {
  background: var(--accent-wash);
}

.plan-seats-row button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.5;
}

/* The amount stays on the right, whatever the length of its label. */
.upgrade-summary .acct-facts > div {
  flex-wrap: nowrap;
}

.upgrade-summary .acct-facts dd {
  flex: none;
  text-align: right;
}

/* Mi cuenta › Equipo. */
.team-warn {
  color: var(--warn);
}

.team-confirm > summary {
  width: fit-content;
  list-style: none;
  cursor: pointer;
}

.team-confirm > summary::-webkit-details-marker {
  display: none;
}

.team-confirm > form {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
  max-width: 440px;
  margin-top: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
}

.team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.team-invite {
  padding: var(--space-4);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--accent-wash);
}

.acct-section .acct-devices + .acct-subtitle {
  margin-top: var(--space-4);
}
