/* TAGO site — plain CSS, no external fonts or scripts (privacy: no third-party requests). */

:root {
  color-scheme: light dark;
  --paper: #f2ece0;
  --surface: #f9f6ee;
  --card: #ffffff;
  --ink: #1c1b18;
  --muted: #5c5644;
  --line: #d6cdb4;
  --accent: #2e52a0;
  --on-accent: #ffffff;
  --accent-soft: #d9e2f7;
  --on-accent-soft: #14295a;
  --plum: #774b8b;
  --radius: 14px;
  --gutter: 16px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1b18;
    --surface: #23211d;
    --card: #2a2823;
    --ink: #ece6d8;
    --muted: #b8b09c;
    --line: #403c33;
    --accent: #a9c1f0;
    --on-accent: #14295a;
    --accent-soft: #2b3a5c;
    --on-accent-soft: #d9e2f7;
    --plum: #d6b8e3;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

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

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

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--on-accent); padding: 0.5rem 1rem;
}
.skip:focus { left: var(--gutter); z-index: 10; }

/* --- Header --- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: 0.95rem; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 0.4rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }

/* --- Hero --- */

.hero { padding: 3.5rem 0 2.5rem; }
.hero .wrap {
  display: grid; gap: 2.5rem; align-items: center;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -0.01em; }
.hero .lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 1.5rem; max-width: 36em; }
.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.badges li {
  background: var(--accent-soft); color: var(--on-accent-soft);
  border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.9rem; font-weight: 600;
}
.hero-shots { display: flex; justify-content: center; gap: 1rem; }
.hero-shots img { width: min(46%, 240px); }
.hero-shots img:nth-child(2) { margin-top: 2.5rem; }

.phone {
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(28, 27, 24, 0.14);
  background: var(--card);
}

.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.button {
  display: inline-block; background: var(--accent); color: var(--on-accent);
  text-decoration: none; font-weight: 700; padding: 0.75rem 1.3rem; border-radius: 999px;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.note { color: var(--muted); font-size: 0.92rem; margin: 0.75rem 0 0; }

/* --- Sections --- */

section { padding: 2.5rem 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.2; margin: 0 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.section-intro { color: var(--muted); max-width: 42em; margin: 0 0 2rem; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.card ul { margin: 0; padding-left: 1.1rem; }
.card li + li { margin-top: 0.3rem; }
.card p:last-child { margin-bottom: 0; }

.feature {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  margin-bottom: 3rem;
}
.feature:last-child { margin-bottom: 0; }
.feature img { width: min(100%, 280px); margin: 0 auto; }
.feature.reverse > :first-child { order: 2; }
.feature ul { padding-left: 1.1rem; margin: 0; }
.feature li + li { margin-top: 0.35rem; }

.pricing { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pricing .card h3 { font-size: 1.3rem; }
.pricing .card.pro { border: 2px solid var(--plum); }
.price { font-size: 1.05rem; font-weight: 700; color: var(--plum); margin: 0 0 0.75rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* --- Guide --- */

.guide { display: grid; gap: 2.5rem; grid-template-columns: 240px minmax(0, 1fr); padding: 2.5rem 0 3rem; }
.toc { position: sticky; top: 1rem; align-self: start; font-size: 0.95rem; }
.toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.8rem; }
.toc li + li { margin-top: 0.35rem; }
.guide article > section { padding: 0 0 2.5rem; scroll-margin-top: 1rem; }
.guide article h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 0.5rem; }
.guide article h3 { margin-top: 1.5rem; scroll-margin-top: 1rem; }
.path {
  display: inline-block; font-size: 0.92rem; background: var(--accent-soft); color: var(--on-accent-soft);
  border-radius: 6px; padding: 0.05rem 0.5rem; font-weight: 600;
}
.tip {
  border-left: 4px solid var(--plum); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.2rem; margin: 1rem 0;
}
.tip p { margin: 0; }

details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 0.75rem; }
summary { cursor: pointer; padding: 0.9rem 1.2rem; font-weight: 600; }
details > div { padding: 0 1.2rem 1rem; }
details > div p:first-child { margin-top: 0; }
details > div p:last-child { margin-bottom: 0; }

/* --- Footer --- */

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; }

/* --- Small screens --- */

@media (max-width: 760px) {
  .hero { padding-top: 2rem; }
  .hero .wrap, .feature, .guide { grid-template-columns: minmax(0, 1fr); }
  .feature.reverse > :first-child { order: 0; }
  .feature img { width: min(70%, 240px); }
  .toc { position: static; }
  .site-nav { gap: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* --- Standalone pages (root index, 404) --- */

.page { padding-top: 3rem; padding-bottom: 3rem; }
.page .card h2 { font-size: 1.3rem; }
.footer-note { margin-top: 2rem; }
