/* Atell marketing site. No external requests: system fonts only, so no cookie or
   font-transfer notice is needed. Palette follows the app (teal #0096b2 / #0BBCD4),
   darkened where it carries text so it passes WCAG AA. */

:root {
  --ground: #F5F8F8;
  --surface: #FFFFFF;
  --ink: #0F1923;
  --ink-soft: #4A5763;
  --line: #DDE5E7;
  --accent: #0A7A8C;
  --accent-bright: #08899E;
  --mark: #0BBCD4;
  --warm: #E3916A;
  --warm-ink: #9A4F2C;
  --on-accent: #FFFFFF;
  --shadow: 0 1px 2px rgba(15,25,35,.04), 0 12px 32px rgba(15,25,35,.06);
  --shadow-lg: 0 2px 4px rgba(15,25,35,.04), 0 24px 60px rgba(15,25,35,.10);

  --font-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;

  --maxw: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0B1216;
    --surface: #111B20;
    --ink: #E8EFF1;
    --ink-soft: #9AAAB2;
    --line: #1F2C33;
    --accent: #3CC6DA;
    --accent-bright: #62D6E7;
    --warm: #E9A07E;
    --warm-ink: #F0B596;
    --on-accent: #062026;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 30px 70px rgba(0,0,0,.45);
  }
}
:root[data-theme="dark"] {
  --ground: #0B1216;
  --surface: #111B20;
  --ink: #E8EFF1;
  --ink-soft: #9AAAB2;
  --line: #1F2C33;
  --accent: #3CC6DA;
  --accent-bright: #62D6E7;
  --warm: #E9A07E;
  --warm-ink: #F0B596;
  --on-accent: #062026;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 30px 70px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }

a { color: inherit; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -0.012em; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top .2s ease;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent); font-weight: 600; margin: 0;
}

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark { flex: none; width: 20px; height: 26px; color: var(--mark); display: block; }
.brand-mark.sm { width: 16px; height: 21px; }
.brand .name {
  font-family: var(--font-sans); font-weight: 700; font-size: 17px;
  letter-spacing: 0.2em; margin-right: -0.2em; color: var(--ink);
}
.brand .name.sm { font-size: 15px; }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
header.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
header.nav > .wrap, footer > .wrap { max-width: none; padding-inline: clamp(24px, 4vw, 60px); }

.nav-actions { display: flex; align-items: center; gap: 22px; }
.signin { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; transition: color .18s ease; }
.signin:hover { color: var(--accent); }
.signin:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  padding: 11px 20px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-bright); transform: translateY(-1px); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 38%, transparent); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-lg { font-size: 16px; padding: 13px 24px; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(44px, 7vw, 88px); padding-bottom: clamp(72px, 10vw, 128px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 55% at 80% 30%, color-mix(in srgb, var(--mark) 13%, transparent), transparent 70%),
    radial-gradient(45% 50% at 8% 90%, color-mix(in srgb, var(--warm) 9%, transparent), transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); line-height: 1.04; margin-top: 18px; }
.hero h1 .soft { color: var(--accent); display: block; }
.hero .lead {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-soft);
  margin: 22px 0 0; max-width: 32em; line-height: 1.55;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 34px; align-items: center; }
.hero-note { font-size: 14px; color: var(--ink-soft); }

/* ---------- hero vignette: a calm glimpse of a practice day ---------- */
.vignette { position: relative; width: 100%; max-width: 440px; margin-inline: auto; padding: 26px 22px 44px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.day { padding: 22px 22px 8px; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.day-head strong { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; }
.day-head span { font-size: 13px; color: var(--ink-soft); }
.row {
  display: grid; grid-template-columns: 44px 34px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.3;
}
.row time { color: var(--ink-soft); font-variant-numeric: tabular-nums; font-size: 13px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 600; font-size: 13px;
  background: color-mix(in srgb, var(--accent) 13%, var(--surface)); color: var(--accent);
}
.avatar.warm { background: color-mix(in srgb, var(--warm) 20%, var(--surface)); color: var(--warm-ink); }
.who { min-width: 0; }
.who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; color: var(--ink-soft); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.pill.sent { background: color-mix(in srgb, var(--warm) 18%, transparent); color: var(--warm-ink); }
.pill.due { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-soft); }

.float { position: absolute; display: flex; gap: 12px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 14px; }
.float b { display: block; font-size: 14px; line-height: 1.25; }
.float small { display: block; color: var(--ink-soft); font-size: 12.5px; line-height: 1.3; }
.float-report { right: 0; bottom: 0; animation: bob 7s ease-in-out infinite; }
.float-wait { left: 0; top: 0; padding: 10px 16px 10px 12px; animation: bob 7s ease-in-out -3.5s infinite; }
.tick {
  width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
}
.float-wait .brand-mark { width: 14px; height: 18px; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-block: 26px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.trust-item svg { color: var(--accent); flex: none; }
.trust-item span { line-height: 1.35; }

/* ---------- sections ---------- */
section { position: relative; }
.band { padding-block: clamp(64px, 10vw, 120px); }
.section-head { max-width: 40em; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; margin-top: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin: 16px 0 0; }

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 54px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.pillar { background: var(--surface); padding: 34px 30px 38px; display: flex; flex-direction: column; gap: 12px; }
.pillar .num { font-family: var(--font-serif); font-size: 15px; color: var(--warm-ink); letter-spacing: .02em; }
.pillar h3 { font-size: 1.4rem; line-height: 1.15; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }

.features-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.feature {
  background: var(--ground); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.feature .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent) 11%, transparent); color: var(--accent);
}
.feature h3 { font-family: var(--font-sans); font-size: 1.06rem; font-weight: 650; letter-spacing: -0.005em; }
.feature p { margin: 8px 0 0; color: var(--ink-soft); font-size: .98rem; line-height: 1.55; }

/* ---------- statement ---------- */
.statement .wrap { padding-block: clamp(64px, 10vw, 120px); }
.statement .rule { width: 46px; height: 2px; background: var(--warm); margin-bottom: 30px; }
.statement blockquote {
  margin: 0; font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(1.5rem, 3.3vw, 2.3rem); line-height: 1.28; letter-spacing: -0.01em;
  max-width: 21em; text-wrap: balance;
}
.statement blockquote .hl { color: var(--accent); }

/* ---------- final cta ---------- */
.final { text-align: center; border-top: 1px solid var(--line); }
.final .inner { max-width: 40em; margin-inline: auto; }
.final h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); line-height: 1.12; margin-top: 14px; }
.final p { color: var(--ink-soft); font-size: 1.12rem; margin: 18px 0 0; }
.final .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-block: 34px; }
.foot-meta { font-size: 14px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.foot-meta a { text-decoration: none; }
.foot-meta a:hover { color: var(--accent); }
.foot-legal { width: 100%; font-size: 13px; color: var(--ink-soft); margin: 0; }

/* ---------- legal / simple pages ---------- */
.page { padding-block: clamp(48px, 8vw, 96px); }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); line-height: 1.08; margin-top: 14px; }
.page .updated { color: var(--ink-soft); font-size: 15px; margin: 14px 0 0; }
.page h2 { font-size: 1.4rem; line-height: 1.2; margin-top: 2.4em; }
.page p, .page li { color: var(--ink); }
.page ul { padding-left: 1.2em; }
.page li + li { margin-top: .4em; }
.page a { color: var(--accent); text-underline-offset: 3px; }
.page .note {
  margin-top: 32px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink-soft); font-size: 15px;
}
.center-page { min-height: calc(100vh - 72px - 110px); display: grid; place-items: center; text-align: center; padding-block: 64px; }
.center-page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-top: 14px; }
.center-page p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.1rem; margin: 16px auto 0; max-width: 30em; }
.center-page .hero-cta { justify-content: center; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn .arrow, .feature { transition: none; }
  .float-report, .float-wait { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .vignette { max-width: 460px; }
  .pillars { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { grid-template-columns: 1fr; gap: 14px; padding-block: 22px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 20px; }
  .nav-inner { height: 64px; }
  .nav-actions { gap: 14px; }
  .nav-actions .btn { padding: 9px 15px; }
  .features { grid-template-columns: 1fr; }
  .vignette { padding-inline: 8px; }
  .float-report { right: -4px; }
  .float-wait { left: -4px; }
}
@media (max-width: 380px) {
  .brand .name { font-size: 15px; letter-spacing: 0.16em; }
  .row { grid-template-columns: 40px 30px minmax(0, 1fr) auto; gap: 9px; }
  .avatar { width: 30px; height: 30px; font-size: 12px; }
}
