/*
 * The latticemail.com page: one page, one stylesheet, no framework. Trimmed from sites/marketing/site.css (same palette, same
 * dark-by-default theme, same glows, same buttons), so the two sites look like one product. The only script is theme.js,
 * identical to the main site's (dark by default, light on request, remembered in this browser).
 */
:root {
  color-scheme: dark;
  --ink: #eceefa;
  --muted: #9ba4c0;
  --line: #272d45;
  --brand: #7c93ff;
  --brand-2: #9bb0ff;
  --bg: #0d1020;
  --panel: #141932;
  --tint: #171d3d;
  --card: #151a33;
  --on-brand: #0d1020;
  --btn-end: #9bb0ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --glow-a: rgba(124, 147, 255, .42);
  --glow-b: rgba(176, 124, 255, .32);
  --glow-c: rgba(88, 196, 255, .20);
}
:root[data-theme='light'] {
  color-scheme: light;
  --ink: #12162a;
  --muted: #586079;
  --line: #e3e6f2;
  --brand: #3b5bdb;
  --brand-2: #5c7cfa;
  --bg: #ffffff;
  --panel: #f6f7fd;
  --tint: #eef1ff;
  --card: #ffffff;
  --on-brand: #ffffff;
  --btn-end: #4263eb;
  --shadow: 0 1px 2px rgba(18, 22, 42, .06), 0 8px 24px rgba(59, 91, 219, .10);
  --glow-a: rgba(92, 124, 250, .28);
  --glow-b: rgba(167, 100, 255, .22);
  --glow-c: rgba(34, 170, 255, .15);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* Colour that bleeds in from the edges of the window, behind the page. Fixed, so it stays while you scroll. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42vw 62vh at -8% 24%, var(--glow-a), transparent 70%),
    radial-gradient(40vw 60vh at 108% 46%, var(--glow-b), transparent 70%),
    radial-gradient(30vw 46vh at -8% 88%, var(--glow-c), transparent 70%),
    radial-gradient(30vw 46vh at 108% 6%, var(--glow-c), transparent 70%);
}
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--brand); text-underline-offset: .18em; }
img { display: block; }
code { font-size: .92em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: .75rem; top: -4rem; z-index: 10; padding: .5rem 1rem; border-radius: 8px; background: var(--brand); color: var(--on-brand); font-weight: 600; text-decoration: none; }
.skip:focus { top: .75rem; }

/* Header: brand on the left, everything else is a button. */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
@supports (backdrop-filter: blur(1px)) {
  .top { background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-actions { display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: .5rem .95rem; border-radius: 6px;
  font-weight: 600; font-size: .9rem; text-decoration: none; line-height: 1.4;
  color: var(--brand); background: transparent; box-shadow: inset 0 0 0 1px var(--line);
}
.btn:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.btn.primary { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.btn.primary:hover { opacity: .88; }
.btn.outline { box-shadow: inset 0 0 0 1px var(--muted); }
.btn.big { padding: .75rem 1.35rem; font-size: 1rem; }
.btn.link { box-shadow: none; padding-left: .4rem; padding-right: .4rem; text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: .18em; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); background: var(--tint); padding: .15rem .6rem; border-radius: 999px; margin: 0 0 1rem; }

/* Hero: the headline and the two buttons, with the phone screenshot beside them on a wide window. */
.hero { padding: 4rem 0 3rem; }
.hero .wrap { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 650; margin: 0 0 1.1rem; }
/* The address gets a line of its own and breaks only before the @ when the column is narrow. */
.hero h1 .addr { display: block; color: var(--brand-2); }
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); max-width: 36rem; margin: 0 0 1.75rem; }
.actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: 0; }
.note { color: var(--muted); font-size: .9rem; margin: 1rem 0 0; }
.hero figure { margin: 0; justify-self: center; }
.hero figure img { width: 100%; max-width: 16rem; height: auto; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.hero figcaption { color: var(--muted); font-size: .85rem; margin-top: .5rem; text-align: center; }

/* Sections: a hairline between them, a heading, then a list, columns or prose. */
.band { padding: 3rem 0; border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); letter-spacing: -.015em; margin: 0 0 1.25rem; }
.band .sub { color: var(--muted); max-width: 44rem; margin: 0 0 1.5rem; font-size: 1.05rem; }
.band p { max-width: 44rem; }

/* What you get: a card of rows, each with a short title and one or two plain sentences. */
.ledger { border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--panel) 85%, transparent); padding: .4rem 1.25rem; margin: 0; }
.ledger .row { padding: .9rem 0; border-top: 1px solid var(--line); }
.ledger .row:first-child { border-top: 0; }
.ledger dt { font-weight: 650; }
.ledger dd { margin: .2rem 0 0; color: var(--muted); font-size: .97rem; line-height: 1.5; }
@media (min-width: 48rem) {
  .ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; padding: .4rem 1.5rem; }
  .ledger .row:nth-child(2) { border-top: 0; }
}

/* Where things are: the four names, side by side with what each is for. */
.where { margin: 1.5rem 0 0; max-width: 44rem; }
.where .row { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.where .row:first-child { border-top: 0; }
.where dt { font-weight: 650; overflow-wrap: anywhere; }
.where dd { margin: 0; color: var(--muted); }
@media (max-width: 34rem) {
  .where .row { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
}

/* Three plain columns separated by a rule, no cards. */
.points { display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.points h3 { font-size: 1.02rem; margin: 0 0 .45rem; padding-top: .9rem; border-top: 2px solid var(--brand); }
.points p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Honest limits and the questions: one reading column. */
.prose { max-width: 44rem; }
.prose ul { padding-left: 1.25rem; margin: 0; }
.prose li { margin: .55rem 0; }
.prose p, .prose li { color: var(--muted); font-size: 1.02rem; }
.prose strong { color: var(--ink); }
.prose h3 { font-size: 1.1rem; margin: 1.75rem 0 .4rem; color: var(--ink); }
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 .5rem; }

.cta-band { padding: 3.5rem 0 4rem; border-top: 1px solid var(--line); text-align: center; }
.cta-band h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 1.25rem; letter-spacing: -.015em; }
.cta-band .actions { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 1.75rem 0;color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer p { margin: 0; }
footer a { color: var(--muted); }
footer a:hover { color: var(--brand); }
footer .foot-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

@media (max-width: 34rem) {
  .hero { padding-top: 2.5rem; }
  .top { position: static; }
  .top .wrap { padding-top: .5rem; padding-bottom: .6rem; }
  .nav-actions { width: 100%; gap: .35rem; }
  .nav-actions .btn { padding: .4rem .7rem; font-size: .8rem; }
  .nav-actions .btn.link { padding-left: .3rem; padding-right: .3rem; }
  .hero figure img { max-width: 13rem; }
}
@media (min-width: 56rem) {
  .hero { padding: 5rem 0 4rem; }
  .hero .wrap { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 3rem; }
}

/* The theme toggle: a button in the header, hidden until theme.js runs. */
.btn.theme-toggle { font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; border: 0; }
.theme-toggle[hidden] { display: none; }
