/*
 * Tamsi website: shared styles (QJ-286). Soft Cards palette from the QJ-307 redesign.
 * Mobile first; light and dark follow the system setting. No JavaScript anywhere on the site.
 *
 * Contrast (WCAG 2.x, checked 2026-10-19):
 *   text #1E2A33 on ground 13.1:1 · secondary #5C6A74 on card 5.57:1 · link #1A6B92 on card 5.9:1
 *   accent text #B04A26 on ground 4.88:1 / on card 5.45:1 (terracotta #D2724F stays decoration only)
 *   white on button #1E2A33 14.6:1 · white on blue #1F7AA6 4.78:1
 *   dark: text #E6EEF2 on card 13.3:1 · link #6CB8DD on card 7.1:1 · accent #E89A7C on ground 7.97:1
 */

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin.woff") format("woff");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #EEF3F6;
  --ground-2: #E4ECF1;
  --card: #FFFFFF;
  --text: #1E2A33;
  --secondary: #5C6A74;
  --blue: #1F7AA6;
  --link: #1A6B92;
  --terracotta: #D2724F;
  --accent-text: #B04A26;
  --button: #1E2A33;
  --on-button: #FFFFFF;
  --rule: #D9E4EA;
  --chip: #E3EEF4;
  --warn-bg: #FBEDE7;
  --warn-edge: #D2724F;
  --bezel: #1E2A33;
  --glow-warm: rgba(242, 154, 107, .35);
  --glow-cool: rgba(79, 179, 217, .28);
  --radius-card: 24px;
  --shadow: 0 1px 2px rgba(30, 42, 51, .05), 0 8px 28px rgba(30, 42, 51, .07);
  --shadow-phone: 0 30px 60px -20px rgba(30, 42, 51, .35), 0 12px 24px -12px rgba(30, 42, 51, .25);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #11181D;
    --ground-2: #151E24;
    --card: #1B252C;
    --text: #E6EEF2;
    --secondary: #9AA8B1;
    --blue: #6CB8DD;
    --link: #6CB8DD;
    --accent-text: #E89A7C;
    --button: #E6EEF2;
    --on-button: #11181D;
    --rule: #2A3740;
    --chip: #22313A;
    --warn-bg: #2E2420;
    --warn-edge: #E89A7C;
    --bezel: #05090C;
    --glow-warm: rgba(232, 154, 124, .16);
    --glow-cool: rgba(108, 184, 221, .14);
    --shadow: 0 0 0 1px #24313A;
    --shadow-phone: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px #2A3740;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--card); color: var(--text); padding: 10px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* ---------- layout ---------- */

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap-text { max-width: 780px; padding-top: 24px; padding-bottom: 48px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}
.header-row { display: flex; align-items: center; gap: 12px 24px; min-height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 900; font-size: 1.35rem; letter-spacing: .01em;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px var(--rule); }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px 22px; }
.site-nav a { color: var(--secondary); text-decoration: none; font-weight: 700; padding: 12px 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--terracotta); }

/* Small screens: the nav moves to its own scrollable row under the brand. */
@media (max-width: 719px) {
  .header-row { flex-wrap: wrap; min-height: 0; padding-top: 10px; }
  .site-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .site-nav ul { gap: 2px 18px; }
  .site-nav a { padding: 8px 0 10px; }
  .header-cta { margin-left: auto; }
}

/* ---------- type ---------- */

h1, h2, h3 { font-weight: 900; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 6vw, 2.6rem); }
h2 { font-size: 1.35rem; margin-top: 1.6em; }
h3 { font-size: 1.1rem; font-weight: 800; margin-top: 1.2em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: 0 0 .45em; }
strong { font-weight: 800; }

.lede { font-size: 1.12rem; color: var(--secondary); }
.muted { color: var(--secondary); }
.eyebrow {
  margin: 0 0 .6em; font-size: .82rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-text);
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--button); color: var(--on-button);
  font-weight: 800; font-size: 1.02rem; text-decoration: none;
  padding: 14px 24px; border-radius: 999px; min-height: 52px;
  box-shadow: 0 10px 24px -12px rgba(30, 42, 51, .6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.button svg { width: 18px; height: 18px; flex: none; }
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(30, 42, 51, .7); }
.button-small { min-height: 44px; padding: 10px 18px; font-size: .95rem; box-shadow: none; }
.button-small svg { width: 14px; height: 14px; }
.button-ghost {
  background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--rule);
}
.button-ghost:hover { box-shadow: inset 0 0 0 2px var(--secondary); }

/* ---------- hero ---------- */

.hero {
  position: relative; isolation: isolate;
  padding: 40px 0 24px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(10px);
}
.hero::before { width: 620px; height: 620px; right: -120px; top: -220px; max-width: 100vw; background: radial-gradient(circle, var(--glow-warm), transparent 68%); }
.hero::after { width: 680px; height: 680px; left: -260px; bottom: -320px; background: radial-gradient(circle, var(--glow-cool), transparent 68%); }

.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 56px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .hero h1 .accent { display: block; }
}

.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); font-weight: 800; font-size: .9rem; color: var(--secondary);
}
.pill-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #F29A6B, #CF5534); }

.hero h1 { font-size: clamp(2.5rem, 7.5vw, 3.5rem); line-height: 1.02; letter-spacing: -.03em; margin-bottom: .35em; }
.accent { color: var(--accent-text); }
.hero .lede { font-size: clamp(1.1rem, 2.2vw, 1.28rem); max-width: 34em; margin-bottom: 1.5em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.meta { color: var(--secondary); font-size: .95rem; font-weight: 700; margin: 0; }

.hero-media { position: relative; height: min(150vw, 580px); max-width: 460px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) { .hero-media { height: 600px; max-width: none; } }

/* ---------- phone frame ---------- */

.phone {
  background: var(--bezel); padding: 9px; border-radius: 40px; box-shadow: var(--shadow-phone);
  width: 100%; max-width: 300px;
}
.phone img { width: 100%; border-radius: 31px; }
.hero-media .phone { position: absolute; width: 58%; max-width: 290px; }
.phone-front { right: 6%; top: 0; transform: rotate(3deg); }
.phone-back { left: 4%; top: 64px; transform: rotate(-7deg); opacity: .96; }
@media (min-width: 900px) { .phone-front { right: 4%; } .phone-back { left: 2%; } }

/* ---------- trust strip ---------- */

.trust-strip { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin: 8px auto 24px; }
@media (min-width: 900px) { .trust-strip { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.trust-item { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 18px 18px 16px; }
.trust-item svg { width: 28px; height: 28px; color: var(--accent-text); margin-bottom: 10px; }
.trust-item h2 { font-size: 1.02rem; margin: 0 0 .25em; letter-spacing: 0; }
.trust-item p { margin: 0; color: var(--secondary); font-size: .93rem; line-height: 1.45; }

/* ---------- sections ---------- */

.section-head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); margin: 0 0 .35em; letter-spacing: -.025em; }
.section-head .lede { margin: 0; }

.features { padding: 56px 16px 8px; }
@media (min-width: 720px) { .features { padding: 80px 32px 16px; } }

.feature { display: grid; gap: 28px; align-items: center; margin: 0 0 56px; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media::before {
  content: ""; position: absolute; inset: 12% 8%; z-index: 0; border-radius: 40px;
  background: linear-gradient(140deg, var(--glow-cool), var(--glow-warm));
}
.feature-media .phone { position: relative; z-index: 1; max-width: 270px; }
.feature-text h2 { font-size: clamp(1.6rem, 3.8vw, 2.2rem); margin: 0 0 .4em; letter-spacing: -.02em; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; margin-bottom: 96px; }
  .feature-flip .feature-media { order: 2; }
  .feature-media .phone { max-width: 300px; }
}

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 .6em; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--accent-text); stroke-width: 2.4; }

/* ---------- privacy band ---------- */

.privacy-band {
  display: grid; gap: 28px; margin: 24px 0 40px; padding: 36px 24px; border-radius: 32px;
  background: #1E2A33; color: #E6EEF2;
}
@media (prefers-color-scheme: dark) { .privacy-band { background: #1B252C; box-shadow: 0 0 0 1px #2A3740; } }
@media (min-width: 900px) { .privacy-band { grid-template-columns: .9fr 1.1fr; gap: 56px; padding: 56px; } }
.privacy-band .eyebrow { color: #E89A7C; }
.privacy-head h2 { font-size: clamp(1.8rem, 4.2vw, 2.4rem); margin: 0 0 .4em; letter-spacing: -.025em; }
.privacy-head p { color: #B8C5CD; }
.button-light { background: #E6EEF2; color: #11181D; box-shadow: none; }
.privacy-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
@media (min-width: 640px) { .privacy-points { grid-template-columns: 1fr 1fr; } }
.privacy-points li { display: flex; gap: 14px; margin: 0; }
.privacy-points svg { width: 26px; height: 26px; flex: none; color: #E89A7C; margin-top: 2px; }
.privacy-points h3 { margin: 0 0 .3em; font-size: 1.05rem; color: #FFFFFF; }
.privacy-points p { margin: 0; color: #B8C5CD; font-size: .95rem; line-height: 1.5; }

/* ---------- pricing ---------- */

.pricing { padding-top: 40px; padding-bottom: 24px; }
.plans { display: grid; gap: 18px; max-width: 880px; margin: 0 auto; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  position: relative; background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow);
  padding: 28px 24px 22px;
}
.plan h3 { margin: 0 0 .2em; font-size: 1.3rem; }
.plan-price { font-size: 1.6rem; font-weight: 900; margin: 0 0 18px; letter-spacing: -.02em; }
.plan-price span { font-size: .95rem; font-weight: 700; color: var(--secondary); letter-spacing: 0; }
.plan-premium { box-shadow: var(--shadow), inset 0 0 0 2px var(--terracotta); }
.plan-badge {
  position: absolute; top: -13px; left: 24px; margin: 0; padding: 3px 12px; border-radius: 999px;
  background: #B04A26; color: #fff; font-size: .8rem; font-weight: 900;
}
.fine { max-width: 880px; margin: 18px auto 0; color: var(--secondary); font-size: .93rem; text-align: center; }

/* ---------- FAQ ---------- */

.faq-teaser { padding-top: 64px; padding-bottom: 16px; max-width: 840px; }
.faq details { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); margin: 0 0 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 800; position: relative; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-weight: 900; font-size: 1.35rem; color: var(--secondary);
}
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding: 0 20px 16px; }
.faq .answer > :last-child { margin-bottom: 0; }
.faq h2 { margin: 1.4em 0 .6em; }
.more { text-align: center; font-weight: 800; margin: 18px 0 0; }

/* ---------- closing call to action ---------- */

.cta-band {
  margin: 56px 0 64px; padding: 44px 24px; border-radius: 32px; text-align: center;
  background:
    radial-gradient(circle at 85% 0%, var(--glow-warm), transparent 55%),
    radial-gradient(circle at 10% 100%, var(--glow-cool), transparent 55%),
    var(--card);
  box-shadow: var(--shadow);
}
.cta-band img { margin: 0 auto 16px; border-radius: 18px; box-shadow: 0 0 0 1px var(--rule); }
.cta-band h2 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); margin: 0 0 .3em; letter-spacing: -.025em; }
.cta-band p { color: var(--secondary); margin-bottom: 22px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--rule); background: var(--ground-2); color: var(--secondary); font-size: .95rem; }
.footer-grid { display: grid; gap: 24px; padding-top: 36px; padding-bottom: 16px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } .footer-brand { grid-column: auto; } }
.footer-brand .brand { font-size: 1.2rem; margin-bottom: 8px; }
.site-footer h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin: 4px 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { color: var(--secondary); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer p { margin: 0 0 6px; }
.footer-base { padding-top: 12px; padding-bottom: 28px; font-size: .88rem; }

/* ---------- inner pages: cards, legal, tables ---------- */

.card { background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 24px 22px; margin: 0 0 16px; }
@media (min-width: 720px) { .card { padding: 32px 36px; } }
.card > :last-child { margin-bottom: 0; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0 0 16px; }
.grid .card { margin: 0; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
a.card-link { display: block; color: inherit; text-decoration: none; }
a.card-link:hover h2, a.card-link:hover h3 { text-decoration: underline; text-decoration-color: var(--terracotta); }

.doc-meta { color: var(--secondary); font-size: .95rem; margin: 0 0 1em; }
.note { background: var(--chip); border-radius: 14px; padding: 12px 16px; margin: 0 0 1.2em; font-size: .97rem; }
.warn { background: var(--warn-bg); border-left: 4px solid var(--warn-edge); border-radius: 12px; padding: 12px 16px; margin: 0 0 1.2em; }
.warn > :last-child, .note > :last-child { margin-bottom: 0; }

.tablewrap { overflow-x: auto; margin: 0 0 1.2em; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border: 1px solid var(--rule); padding: 9px 11px; text-align: left; vertical-align: top; }
th { background: var(--chip); font-weight: 800; }
caption { text-align: left; font-weight: 800; padding: 0 0 6px; }
.effective { margin-top: 1.6em; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--secondary); font-size: .93rem; }

/* ---------- motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .skip, .site-footer nav, .cta-band, .hero-media { display: none; }
  .card, .faq details, .plan, .trust-item { box-shadow: none; border: 1px solid #ccc; }
}
