/* TallyNxt website. One shared stylesheet. No scripts, no external fonts, no cookies. */

:root {
  --brand: #0b5fff;
  --brand-ink: #0a3fb5;
  --brand-wash: #e8f0ff;
  --violet: #7c3aed;
  --sky: #18a0f0;
  --ink: #0f172a;
  --ink-2: #475069;
  --ink-3: #5a6379;
  --paper: #f4f6fa;
  --surface: #ffffff;
  --line: #dde3ed;
  --line-soft: #eaeef5;
  --link: #0a3fb5;
  --grad: linear-gradient(135deg, #0b5fff 0%, #7c3aed 100%);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --radius: 24px;
  --gutter: 20px;
  --wide: 1080px;
  --measure: 42rem;
  --phone-bezel: #0f172a;
  --sky-fade: linear-gradient(180deg, #c9dcff 0%, #dfe6ff 38%, #f4f6fa 100%);
  --pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-wash: #14224a;
    --ink: #e8ecf6;
    --ink-2: #b6bed2;
    --ink-3: #9aa4bc;
    --paper: #0b1020;
    --surface: #121a2e;
    --line: #26304a;
    --line-soft: #1d2640;
    --link: #8cb4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --phone-bezel: #060a15;
    --sky-fade: linear-gradient(180deg, #16295c 0%, #101a3a 40%, #0b1020 100%);
  }
  /* the logo has dark lettering, so give it a light chip on the dark page */
  .brand img { background: #ffffff; border-radius: 8px; padding: 3px 8px; box-sizing: content-box; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sky-fade) no-repeat top / 100% 760px, var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { :focus-visible { outline-color: #8cb4ff; } }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--surface); color: var(--ink); padding: 10px 16px;
  border: 2px solid var(--brand); border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 12px; z-index: 50; padding: 12px var(--gutter) 0; }
.bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding: 8px 12px 8px 20px;
  max-width: var(--wide); margin: 0 auto;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line-soft); border-radius: 28px; box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-block; padding: 7px 12px; border-radius: var(--pill);
  color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500;
}
.nav a:hover { background: var(--brand-wash); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--brand-wash); color: var(--link); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 26px; max-width: 100%; text-align: center; overflow-wrap: anywhere; border-radius: var(--pill);
  font: 600 1rem/1 var(--sans); text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--grad); color: #ffffff; box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 40px; }
/* soft clouds behind the hero */
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0));
}
.hero::before { width: 520px; height: 260px; top: 30px; right: -60px; }
.hero::after { width: 420px; height: 220px; bottom: 20px; left: -80px; }
@media (prefers-color-scheme: dark) {
  .hero::before, .hero::after { background: radial-gradient(closest-side, rgba(90, 130, 255, .22), rgba(90, 130, 255, 0)); }
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
h1 em { font-style: normal; color: var(--brand); }
.float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--pill); background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow); font-size: .8125rem; font-weight: 600; white-space: nowrap;
}
.float i { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); flex: none; }
.f1 { top: 8%; left: 2%; }
.f2 { top: 42%; right: 2%; }
.f3 { bottom: 6%; left: 2%; }
@media (min-width: 860px) {
  .f1 { top: 10%; left: -14%; }
  .f2 { top: 30%; right: -10%; }
  .f3 { bottom: 4%; left: -8%; }
}
@media (prefers-reduced-motion: no-preference) {
  .float { animation: bob 6s ease-in-out infinite; }
  .f2 { animation-delay: -2s; }
  .f3 { animation-delay: -4s; }
  @keyframes bob { 50% { transform: translateY(-8px); } }
}
.eyebrow {
  margin: 0 0 14px; color: var(--link); font-size: .8125rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
}
h1 { margin: 0 0 16px; font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.1; letter-spacing: -.02em; }
h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2; letter-spacing: -.015em; }
h3 { margin: 0 0 6px; font-size: 1.125rem; line-height: 1.3; }
.lead { margin: 0; max-width: 36rem; color: var(--ink-2); font-size: 1.1875rem; }
.note { margin: 0; max-width: 36rem; color: var(--ink-3); font-size: .9375rem; }
.note::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--brand); }

/* ---------- phone frames ---------- */
.phones { position: relative; display: flex; justify-content: center; gap: 18px; padding: 8px 0; }
.phone {
  width: min(240px, 44vw); margin: 0; padding: 7px;
  background: var(--phone-bezel); border-radius: 30px; box-shadow: var(--shadow);
}
.phone img { border-radius: 23px; width: 100%; }
.phone-b { display: none; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.band { background: var(--surface); border-radius: 36px; margin: 0 12px; }
@media (min-width: 860px) { .band { margin: 0 24px; } }
.intro { max-width: var(--measure); margin: 0 0 28px; color: var(--ink-2); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
@media (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-4px); } }
.band .card { box-shadow: none; background: var(--paper); }
.card p { margin: 0; color: var(--ink-2); font-size: .96875rem; }
.tag {
  display: inline-block; margin-top: 12px; padding: 2px 10px; border-radius: 99px;
  background: var(--brand-wash); color: var(--link); font: 600 .75rem/1.6 var(--mono);
}

/* screenshots */
.shots { display: grid; gap: 20px 14px; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; }
.shots figure { margin: 0; }
.shots .phone { width: 100%; max-width: 230px; margin: 0 auto; }
.shots figcaption { margin-top: 10px; text-align: center; color: var(--ink-2); font-size: .9rem; }

/* steps */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 20px 20px 68px; position: relative; box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px;
  width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.steps p { margin: 0; color: var(--ink-2); font-size: .96875rem; }

/* data and permissions */
.when { margin: 0 0 6px; color: var(--link); font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.fine { max-width: var(--measure); margin: 24px 0 0; color: var(--ink-2); font-size: .96875rem; }

/* ---------- inner pages (privacy, terms, support, delete) ---------- */
.page-head { padding: 40px 0 8px; }
.page-head .meta { margin: 0; color: var(--ink-3); font-size: .9375rem; }
.prose { max-width: var(--measure); padding: 8px 0 56px; }
.prose h2 { margin: 2.2rem 0 .6rem; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 1.375rem; }
.prose h3 { margin: 1.6rem 0 .4rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.summary {
  margin: 20px 0 0; padding: 14px 18px; background: var(--brand-wash);
  border-left: 4px solid var(--brand); border-radius: 8px;
}
.summary p { margin: 0; }
.tablewrap { overflow-x: auto; margin: 14px 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
th { background: var(--brand-wash); }
code { font-family: var(--mono); font-size: .9em; background: var(--brand-wash); padding: 1px 6px; border-radius: 5px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; margin: 10px 0; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.faq details[open] summary { border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; }
.faq details p { margin: 8px 0 12px; color: var(--ink-2); }
.contact-box {
  margin: 24px 0; padding: 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.contact-box p { margin: 0 0 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-radius: 36px 36px 0 0; margin: 24px 12px 0; padding: 40px 0 40px; color: var(--ink-2); font-size: .9375rem; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: .8125rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 6px 0; }
.site-footer p { margin: 0 0 8px; }
.legal { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: .875rem; color: var(--ink-3); }

/* ---------- small screens: hamburger menu (no script: a hidden checkbox opens it) ---------- */
.nav-toggle, .burger { display: none; }
@media (max-width: 859px) {
  .site-header { position: static; }
  .bar { position: relative; flex-wrap: wrap; gap: 0; padding: 6px 8px 6px 16px; }
  .nav-toggle {
    display: block; position: absolute; top: 6px; right: 8px; z-index: 2;
    width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer;
  }
  .burger {
    display: grid; place-items: center; position: relative; width: 44px; height: 44px;
    margin-left: auto; border-radius: 50%; color: var(--ink);
  }
  .nav-toggle:hover + .burger { background: var(--brand-wash); }
  .nav-toggle:focus-visible + .burger { outline: 3px solid var(--brand); outline-offset: 2px; }
  .burger span {
    position: absolute; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .2s, opacity .2s;
  }
  .burger span:nth-child(1) { transform: translateY(-6px); }
  .burger span:nth-child(3) { transform: translateY(6px); }
  /* open: the three lines become a close (X) icon */
  .nav-toggle:checked + .burger span:nth-child(1) { transform: rotate(45deg); }
  .nav-toggle:checked + .burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .burger span:nth-child(3) { transform: rotate(-45deg); }
  .bar nav { display: none; flex-basis: 100%; }
  .nav-toggle:checked ~ nav { display: block; }
  .nav { flex-direction: column; gap: 2px; padding: 6px 0 8px; }
  .nav a { display: block; padding: 12px 14px; font-size: 1rem; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .burger span { transition: none; } }

/* ---------- wider screens ---------- */
@media (min-width: 560px) {
  .shots { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 860px) {
  .bar { border-radius: var(--pill); }
  .nav a { padding: 8px 14px; }
  .site-footer { margin: 24px 24px 0; }
  .hero { padding: 80px 0 64px; }
  h1 { font-size: 3.4rem; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .phone-b { display: block; margin-top: 56px; }
  .phone { width: 240px; }
  .shots { grid-template-columns: repeat(5, 1fr); }
  .shots .phone { max-width: 190px; }
}
