/* TESIA website — one stylesheet for every page.
   Colors: app brand color (#00B5A3, kTesiaColor) + the admin pages palette
   (privacy.html / terms.html). No web font is loaded: system fonts only, so the
   site makes no request to any third party. */

:root {
  --bg: #f7f9f9;          /* page background (admin pages) */
  --ink: #16252e;         /* main text (admin pages) */
  --muted: #5b6b73;       /* secondary text (admin pages) */
  --line: #e3e8ea;        /* card borders (admin pages) */
  --card: #ffffff;
  --accent: #2a9d8f;      /* teal accent (admin pages) */
  --accent-strong: #1f7a6f; /* buttons and links: white or text on it stays readable */
  --brand: #00b5a3;       /* app color (kTesiaColor) */
  --brand-2: #5fe07a;     /* end of the logo gradient */
  --mint: #e8f6f3;        /* soft teal section */
  --warm: #fbf6ee;        /* warm "home" section */
  --radius: 16px;
  --shadow: 0 1px 2px rgba(22, 37, 46, .05), 0 8px 24px rgba(22, 37, 46, .06);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); font-weight: 600; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 249, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; }
.logo img { width: 120px; height: auto; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 600; text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--accent-strong); }
.site-header .btn { margin-left: auto; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .site-header .btn { margin-left: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: 0 6px 18px rgba(31, 122, 111, .25); }
.btn-primary:hover { background: #18665d; color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-mint { background: var(--mint); }
.section-warm { background: var(--warm); }
.section-head { max-width: 720px; margin: 0 0 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: 10px;
  color: var(--accent-strong); font-weight: 700; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.lead { color: var(--muted); font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero .container { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero .container { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}
.hero h1 span {
  background: linear-gradient(90deg, var(--accent-strong), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 20px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.hero-facts li {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .9rem; font-weight: 600; color: var(--ink);
}
.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: 8% -6% -6% 8%;
  background: radial-gradient(closest-side, rgba(0, 181, 163, .22), transparent);
  z-index: -1;
}

/* ---------- Media frames (images keep their space even before loading) ---------- */
.frame {
  border-radius: var(--radius); overflow: hidden; background: var(--mint);
  box-shadow: var(--shadow);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-1 { aspect-ratio: 1 / 1; }
.ratio-wide { aspect-ratio: 1940 / 1200; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Two ways */
.way { display: flex; flex-direction: column; gap: 6px; }
.way-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mint); color: var(--accent-strong); margin-bottom: 8px;
}
.way-icon svg { width: 28px; height: 28px; }
.way h3 { font-size: 1.4rem; }

/* Steps */
.step { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.step .frame { border-radius: 0; box-shadow: none; }
.step-body { padding: 20px 22px 24px; }
.step-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-strong); color: #fff; font-weight: 800; font-size: .9rem; margin-bottom: 10px;
}
.center-cta { text-align: center; margin-top: 32px; }

/* Split block (image + text) */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.reverse .split-media { order: 2; }
}

/* Kit */
.kit-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.kit-list li { display: flex; gap: 12px; align-items: flex-start; }
.kit-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a6f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.price-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.price { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.price small { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-top: 6px; }

/* Tips */
.tip h3 { display: flex; gap: 10px; align-items: center; }
.tip h3::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.tip p { color: var(--ink); }
.source { font-size: .9rem; color: var(--muted); margin: 0; }
.note { font-size: .95rem; color: var(--muted); margin-top: 24px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent-strong);
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 22px 20px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer ul { margin: 0 0 1em; padding-left: 1.2em; }

/* Final call to action */
.cta-card {
  background: linear-gradient(135deg, #0f3b3a, #1f7a6f);
  color: #fff; border-radius: 24px; overflow: hidden;
  display: grid; align-items: center;
}
.cta-card .cta-body { padding: 32px 24px; }
.cta-card h2 { color: #fff; }
.cta-card p { color: #e3f4f1; }
.cta-card .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.cta-card .btn-primary:hover { background: var(--mint); color: var(--ink); }
.cta-card .frame { border-radius: 0; box-shadow: none; height: 100%; }
@media (min-width: 900px) {
  .cta-card { grid-template-columns: 1fr 1fr; }
  .cta-card .cta-body { padding: 56px; }
}

/* Store badges: official artwork, unchanged; equal visual height */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.badges a { display: inline-block; line-height: 0; flex: none; }
.badges img { max-width: none; }
.badge-apple { height: 48px; width: auto; }
.badge-google { height: 71px; width: auto; margin: -11px -11px; } /* the PNG has built-in padding */

/* Legal notice */
.legal {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; color: var(--muted); font-size: .95rem;
}
.legal p:last-child { margin-bottom: 0; }

/* Simple page (FAQ, 404) */
.page-head { padding: 48px 0 24px; }
@media (min-width: 900px) { .page-head { padding: 72px 0 32px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 1fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.footer-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--accent-strong); text-decoration: underline; }
.site-footer p { margin: 0 0 .4em; }
.site-footer .small { font-size: .85rem; margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
