/* Tako marketing site — colours sampled from the app. */

:root,
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f7;
  --surface: #ffffff;
  --ink: #10211e;
  --muted: #3d5550;
  --line: #d5e2df;
  --brand: #0f766e;
  --brand-text: #0c5f58;
  --on-brand: #ffffff;
  --soft: #e7f4f2;
  --shadow: 0 18px 48px rgba(16, 40, 38, 0.1);
  --header: rgba(244, 246, 247, 0.9);
  --band-text: #f3fffc;
  --band-muted: #cfe8e3;
  --code-bg: rgba(0, 0, 0, 0.22);
  --glow: rgba(15, 118, 110, 0.28);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1113;
  --surface: #121c1f;
  --ink: #e8f4f1;
  --muted: #a9bfba;
  --line: #243236;
  --brand: #2dd4bf;
  --brand-text: #5eead4;
  --on-brand: #042f2e;
  --soft: #132f2f;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  --header: rgba(10, 17, 19, 0.9);
  --glow: rgba(45, 212, 191, 0.2);
}

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

html { scroll-padding-top: 84px; }

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

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

h1, h2, h3, p { overflow-wrap: break-word; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; }

p { margin: 0; }

a { color: var(--brand-text); }

:focus { outline: none; }

:focus-visible {
  outline: 3px solid #f7fffd;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #0f766e;
}

html[data-theme="dark"] :focus-visible {
  outline-color: #042f2e;
  box-shadow: 0 0 0 6px #5eead4;
}

@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid Highlight;
    box-shadow: none;
  }
}

::selection { background: rgba(15, 118, 110, 0.22); }

html[data-theme="dark"] ::selection { background: rgba(45, 212, 191, 0.28); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: clip;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.icon-btn,
.menu-btn { position: relative; }

html[data-lang="pt"] .en { display: none; }
html[data-lang="en"] .pt { display: none; }
html[data-theme="light"] .for-dark,
html[data-theme="light"] .only-dark,
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="dark"] .for-light,
html[data-theme="dark"] .only-light,
html[data-theme="dark"] .icon-moon { display: none; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.section { padding: 72px 0; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  margin: 0 0 28px;
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.125rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.15rem);
  letter-spacing: -0.04em;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

h3 { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -0.02em; }

.mark {
  background-image: linear-gradient(transparent 62%, rgba(15, 118, 110, 0.28) 62%);
}

html[data-theme="dark"] .mark {
  background-image: linear-gradient(transparent 60%, rgba(45, 212, 191, 0.32) 60%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header);
  backdrop-filter: saturate(1.2) blur(16px);
  border-top: 3px solid #14b8a6;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand img { width: 36px; height: 36px; display: block; }

.brand-version {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 8px 0;
}

.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.tools { display: flex; align-items: center; gap: 8px; }

.seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
}

.seg button,
.icon-btn,
.menu-btn,
.btn {
  font: inherit;
  cursor: pointer;
}

.seg button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-width: 44px;
  min-height: 38px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.seg button[aria-pressed="true"] {
  background: var(--brand);
  color: var(--on-brand);
}

.icon-btn,
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.menu-btn { display: none; }
.menu-btn .when-open { display: none; }
.menu-btn[aria-expanded="true"] .when-closed { display: none; }
.menu-btn[aria-expanded="true"] .when-open { display: inline-flex; }

.hero { padding: 48px 0 28px; }

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-copy p.intro {
  margin-top: 16px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.15rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn svg { flex: none; }

.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 86%, black); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--brand-text); color: var(--ink); }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pills li {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.soon {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  background: var(--soft);
  border: 1px dashed color-mix(in srgb, var(--brand) 50%, var(--line));
  border-radius: 16px;
}

.soon:hover { border-style: solid; }

.badge {
  flex: none;
  margin-top: 2px;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.soon p { color: var(--ink); font-size: 0.95rem; flex: 1; min-width: 0; }

.hero-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  margin: 6px 0;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #14b8a6;
}

.hero-visual { position: relative; z-index: 0; margin: 0; }

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4% 0 -8%;
  background: radial-gradient(circle at 50% 45%, var(--glow), transparent 68%);
  pointer-events: none;
}

.frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px;
  box-shadow: var(--shadow);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

figcaption, .shot-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-grid,
.privacy-grid,
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.card p { color: var(--muted); }

.icon-tile {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
  color: var(--brand-text);
  margin-bottom: 14px;
}

.card-soon {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--soft) 80%, var(--surface)), var(--surface));
  border-style: dashed;
}

.showcase { display: grid; gap: 22px; align-items: center; margin: 0 0 56px; }
.showcase:last-child { margin-bottom: 0; }
.showcase ul { margin: 12px 0 0; padding: 0 0 0 18px; color: var(--ink); }
.showcase li { margin: 4px 0; }
.showcase li::marker { color: #0f766e; }
html[data-theme="dark"] .showcase li::marker { color: #2dd4bf; }

.frame-narrow { max-width: 640px; margin-inline: auto; }

.gallery figcaption {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

.cap-note::before {
  content: "·";
  margin-right: 8px;
}

.cap-note { color: var(--muted); font-size: 0.85rem; text-align: right; }

.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
}

.shot-btn img { display: block; width: 100%; height: auto; }

.shot-btn:hover img { transform: scale(1.015); }
.shot-btn img { transition: transform 0.35s ease; }

.privacy-grid .card h3 { display: flex; align-items: center; gap: 10px; }

.download-band {
  background:
    radial-gradient(700px 280px at 100% 0%, rgba(45, 212, 191, 0.2), transparent 60%),
    linear-gradient(165deg, #083f39, #0e4e48 48%, #082e2b);
  color: var(--band-text);
}

.download-band .eyebrow { color: #99f6e4; }
.download-band .lede,
.download-band .fine { color: var(--band-muted); }
.download-grid { display: grid; gap: 28px; align-items: center; }
.download-band .btn-primary { background: #2dd4bf; color: #042f2e; }
.download-band .btn-primary:hover { background: #5eead4; }
.download-band .btn-ghost { color: #f4fffc; border-color: rgba(255, 255, 255, 0.38); }
.download-band .btn-ghost:hover { border-color: #99f6e4; color: #ffffff; }
.download-list { margin: 16px 0 0; padding-left: 18px; }
.download-list li { margin: 4px 0; }

.filename {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--code-bg);
  color: #d8f6f0;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.fine { margin-top: 14px; font-size: 0.92rem; max-width: 62ch; }

.faq { display: grid; gap: 10px; }

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
}

details.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

details.faq-item summary .pt,
details.faq-item summary .en {
  flex: 1;
  min-width: 0;
}

details.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--brand-text);
  transition: transform 0.2s ease;
}

details[open] .faq-icon { transform: rotate(45deg); }

.faq-item .answer { color: var(--muted); padding: 0 36px 16px 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand img { width: 28px; height: 28px; }
.footer-meta { color: var(--muted); margin: 0; }
.site-footer a { font-weight: 700; }

dialog {
  border: 0;
  padding: 0;
  width: min(1100px, calc(100% - 24px));
  max-height: min(92vh, 900px);
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

dialog::backdrop { background: rgba(6, 16, 16, 0.72); }

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

#lightbox-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

@media (min-width: 720px) {
  .feature-grid,
  .privacy-grid,
  .gallery { grid-template-columns: 1fr 1fr; }
  .card-soon { grid-column: 1 / -1; }
}

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; }
  .feature-grid { grid-template-columns: 1fr 1fr 1fr; }
  .card-soon { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; }
  .card-soon .icon-tile { grid-row: span 2; }
  .showcase { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 40px; }
  .showcase.flip .copy { order: 2; }
  .download-grid { grid-template-columns: 1.3fr 0.7fr; }
  .privacy-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 1079px) {
  html.js .menu-btn { display: inline-flex; }
  html.js .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  html.js .nav.is-open { display: flex; }
  html.js .nav a { padding: 12px 0; border-top: 1px solid var(--line); }
}

@media (max-width: 380px) {
  .brand-version { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .shot-btn:hover img { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { backdrop-filter: none; background: var(--bg); }
}

@media (max-width: 719px) {
  .section { padding: 52px 0; }
  .hero { padding-top: 32px; }
}
