/* MailTwin — shared theme for all pages.
   Pulled from the landing page's CSS variables and type system. */

:root {
  --pink: #F4A6C8;
  --pink-2: #E879B5;
  --magenta: #C26FD9;
  --purple: #9B6FE0;
  --indigo: #7B7BE8;
  --blue: #6BA0F0;

  --ink: #0E0B14;
  --ink-2: #1A1424;
  --muted: #6B6478;
  --muted-2: #9A93A8;
  --line: rgba(15,11,20,0.08);
  --line-2: rgba(15,11,20,0.04);
  --bg: #FBF8FE;
  --bg-2: #F4EEFB;
  --card: #FFFFFF;

  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
::selection { background: var(--magenta); color: white; }

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

.serif { font-family: "Instrument Serif", "Times New Roman", serif; font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: "Geist Mono", ui-monospace, monospace; }

code {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.9em;
  background: rgba(155, 111, 224, 0.1);
  color: var(--ink-2);
  padding: 2px 6px;
  border-radius: 5px;
}

/* ── Header ── */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 254, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
header.site .inner {
  max-width: 1240px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 28px;
}
header.site .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: var(--ink);
  letter-spacing: -0.01em;
}
header.site .brand img { width: 28px; height: 28px; border-radius: 7px; }
header.site nav {
  margin-left: auto;
  display: flex; gap: 28px; align-items: center;
}
header.site nav a {
  color: var(--muted); font-size: 14.5px; font-weight: 500;
}
header.site nav a:hover { color: var(--ink); text-decoration: none; }
header.site nav a.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; color: white;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--purple) 50%, var(--blue) 100%);
  box-shadow: 0 6px 20px -8px rgba(155, 111, 224, 0.55), inset 0 1px 0 rgba(255,255,255,0.25);
  font-weight: 600;
}
header.site nav a.cta:hover { color: white; }

/* ── Article (long-form pages) ── */
main {
  max-width: 760px; margin: 0 auto;
  padding: 80px 28px 40px;
}

article .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-bottom: 22px;
}
article .eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--magenta); display: inline-block; }

article h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05; letter-spacing: -0.03em;
  font-weight: 600; margin: 0 0 14px;
}
article .updated {
  color: var(--muted); font-size: 16px;
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
article h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 56px 0 16px;
  line-height: 1.2;
}
article h2 .serif { font-style: italic; color: var(--purple); font-weight: 400; }
article h3 {
  font-size: 18px; font-weight: 600;
  margin: 32px 0 10px;
}
article p, article li {
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.65;
}
article p { margin: 0 0 16px; }
article ul, article ol { margin: 0 0 24px; padding-left: 22px; }
article li { margin-bottom: 8px; }
article li::marker { color: var(--purple); }

article strong { color: var(--ink); font-weight: 600; }
article em { font-style: italic; color: var(--ink); }

article .note {
  background: linear-gradient(135deg, rgba(244, 166, 200, 0.08), rgba(123, 123, 232, 0.08));
  border: 1px solid rgba(155, 111, 224, 0.2);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 32px 0 40px;
}
article .note strong { color: var(--ink); }
article .note p:last-child { margin-bottom: 0; }

/* Tables */
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0 32px;
  font-size: 15px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
article thead {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
article th {
  text-align: left;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
article td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
}
article tbody tr:last-child td { border-bottom: none; }
article tbody tr:hover { background: rgba(155, 111, 224, 0.03); }

/* Inline link styling inside articles */
article a {
  color: var(--purple);
  font-weight: 500;
  border-bottom: 1px solid rgba(155, 111, 224, 0.3);
}
article a:hover {
  color: var(--magenta);
  border-bottom-color: var(--magenta);
  text-decoration: none;
}

/* ── Page hero (used at the top of each long page) ── */
.page-hero {
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 0%, rgba(244, 166, 200, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(123, 123, 232, 0.15), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ── Footer ── */
footer.site {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 56px 0 40px;
  margin-top: 100px;
}
footer.site .inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 28px;
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
footer.site .brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: white; font-weight: 600; font-size: 15px;
}
footer.site .brand img { width: 22px; height: 22px; border-radius: 5px; }
footer.site .meta { font-size: 13px; }
footer.site nav {
  display: flex; gap: 22px; flex-wrap: wrap;
}
footer.site nav a {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  border-bottom: none;
}
footer.site nav a:hover { color: white; text-decoration: none; }

footer.site .lang-switcher {
  width: 100%;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  font-size: 12.5px;
}
footer.site .lang-switcher span {
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}
footer.site .lang-switcher a {
  color: rgba(255,255,255,0.6);
  border-bottom: none;
}
footer.site .lang-switcher a:hover { color: white; text-decoration: none; }
footer.site .lang-switcher a[aria-current="true"] {
  color: white;
  font-weight: 500;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  main { padding: 48px 24px 24px; }
  header.site nav { display: none; }
  header.site nav a.cta { display: inline-flex; }
  header.site nav { display: flex; gap: 12px; }
  article h1 { font-size: 36px; }
  article h2 { font-size: 22px; margin-top: 40px; }
  article p, article li { font-size: 15.5px; }
  footer.site .inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* === inline style block from index.html (merged 2026-05-04) === */
:root {
    /* Brand — pulled from the app icon gradient */
    --pink: #F4A6C8;
    --pink-2: #E879B5;
    --magenta: #C26FD9;
    --purple: #9B6FE0;
    --indigo: #7B7BE8;
    --blue: #6BA0F0;

    --ink: #0E0B14;
    --ink-2: #1A1424;
    --muted: #6B6478;
    --muted-2: #9A93A8;
    --line: rgba(15,11,20,0.08);
    --line-2: rgba(15,11,20,0.04);
    --bg: #FBF8FE;
    --bg-2: #F4EEFB;
    --card: #FFFFFF;

    --radius: 18px;
    --radius-lg: 28px;
    --radius-xl: 40px;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.45;
    overflow-x: hidden;
  }
  ::selection { background: var(--magenta); color: white; }

  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; }

  .serif { font-family: "Instrument Serif", "Times New Roman", serif; font-weight: 400; letter-spacing: -0.01em; }
  .mono  { font-family: "Geist Mono", ui-monospace, monospace; }

  .container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
  .container-tight { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

  /* Brand gradient utilities */
  .brand-grad {
    background: linear-gradient(135deg, var(--pink) 0%, var(--magenta) 35%, var(--purple) 65%, var(--blue) 100%);
  }
  .brand-text {
    background: linear-gradient(135deg, var(--pink-2) 0%, var(--magenta) 30%, var(--purple) 65%, var(--blue) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* Reusable */
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted); font-weight: 500;
  }
  .eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--magenta); }

  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px; border-radius: 999px; font-weight: 600;
    font-size: 15px; border: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
  }
  .btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--magenta) 0%, var(--purple) 50%, var(--blue) 100%);
    box-shadow: 0 10px 30px -10px rgba(155, 111, 224, 0.55), inset 0 1px 0 rgba(255,255,255,0.25);
  }
  .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(155, 111, 224, 0.7), inset 0 1px 0 rgba(255,255,255,0.3); }
  .btn-ghost {
    color: var(--ink); background: transparent;
    border: 1px solid var(--line);
  }
  .btn-ghost:hover { background: rgba(15,11,20,0.04); }
  .btn-dark {
    color: white; background: var(--ink);
  }
  .btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }

  /* Section spacing */
  section { padding: 120px 0; }
  @media (max-width: 768px) { section { padding: 80px 0; } }

  h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.05; font-weight: 600; }
  h1 { font-size: clamp(44px, 6.4vw, 92px); }
  h2 { font-size: clamp(36px, 4.8vw, 64px); letter-spacing: -0.03em; }
  h3 { font-size: clamp(22px, 2vw, 28px); }
  p  { margin: 0; }

  .lede { font-size: clamp(18px, 1.4vw, 22px); color: var(--muted); line-height: 1.5; }

  /* Card */
  .card {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
  }

  /* SF symbols-ish chip */
  .chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 500;
    background: rgba(155, 111, 224, 0.1);
    color: var(--purple);
  }

  /* Subtle grid background */
  .grid-bg {
    background-image:
      linear-gradient(to right, rgba(15,11,20,0.04) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(15,11,20,0.04) 1px, transparent 1px);
    background-size: 56px 56px;
  }

  /* Skeleton helpers for placeholder mac UI */
  .sk { background: rgba(15,11,20,0.06); border-radius: 6px; }
