/* takkato.app — one stylesheet for every page, both languages, light and dark.
   Colors and type follow the app's design system (Cairo, plum brand, raspberry, sage). */

@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url("/assets/fonts/cairo-regular.woff2") format("woff2"); }
@font-face { font-family: "Cairo"; font-weight: 600; font-display: swap; src: url("/assets/fonts/cairo-semibold.woff2") format("woff2"); }
@font-face { font-family: "Cairo"; font-weight: 900; font-display: swap; src: url("/assets/fonts/cairo-black.woff2") format("woff2"); }

:root {
  --surface: #ffffff;
  --surface-2: #f6f2f7;
  --surface-3: #efeaf2;
  --page: #faf8fb;
  --ink: #2e1533;
  --ink-2: #6b5570;
  --ink-3: #958599;
  --brand: #5a245c;
  --brand-muted: #efe8f1;
  --on-brand: #ffffff;
  --raspberry: #be2f62;
  --raspberry-muted: #fbeaf0;
  --sage: #3e6b2c;
  --sage-muted: #e6efd8;
  --border: #e9e2ec;
  --shadow: 0 1px 2px rgb(46 21 51 / 6%), 0 12px 32px -12px rgb(46 21 51 / 18%);
  --radius: 22px;
  --radius-sm: 14px;
  --measure: 72ch;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1c1620;
    --surface-2: #241d2a;
    --surface-3: #2a2230;
    --page: #16121a;
    --ink: #f2edf4;
    --ink-2: #a99bb0;
    --ink-3: #6e6276;
    --brand: #c79bd4;
    --brand-muted: #2e2535;
    --on-brand: #16121a;
    --raspberry: #e8709c;
    --raspberry-muted: #2e1f28;
    --sage: #b9d9a0;
    --sage-muted: #23301c;
    --border: #332a3a;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -12px rgb(0 0 0 / 60%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--raspberry); }
:focus-visible { outline: 3px solid var(--raspberry); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- header ---------- */
.site-header { padding-block: 18px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); padding: 4px; }
.brand span { font-weight: 900; font-size: 22px; letter-spacing: -0.01em; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.lang-switch:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- landing ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; padding-block: 40px 72px; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px);
}
.hero::before { inset-inline-end: -140px; top: 24px; width: 400px; height: 400px; background: var(--sage-muted); opacity: .9; }
.hero::after  { inset-inline-start: -160px; bottom: 16px; width: 340px; height: 340px; background: var(--raspberry-muted); opacity: .9; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand-muted); color: var(--brand);
  font-weight: 600; font-size: 15px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--raspberry); }
.hero h1 {
  margin: 18px 0 14px; font-weight: 900; color: var(--brand);
  font-size: clamp(38px, 6vw, 64px); line-height: 1.2; letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero .lede { margin: 0; max-width: 34em; color: var(--ink-2); font-size: clamp(17px, 2vw, 20px); text-wrap: pretty; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 16px;
  background: var(--brand); color: var(--on-brand);
  font-weight: 600; font-size: 15px; line-height: 1.3;
}
.store svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.store small { display: block; font-weight: 400; opacity: .8; font-size: 12px; }
.store.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }

.hero-art { position: relative; justify-self: center; width: min(360px, 80vw); aspect-ratio: 1; }
.hero-art .plate {
  position: absolute; inset: 0; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.hero-art .plate img { width: 66%; }
.hero-art .chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.hero-art .chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.hero-art .c1 { top: 8%; inset-inline-start: -8%; }
.hero-art .c1 i { background: var(--raspberry); }
.hero-art .c2 i { background: var(--sage); }
.hero-art .c3 i { background: var(--brand); }
.hero-art .c2 { bottom: 14%; inset-inline-end: -10%; }
.hero-art .c3 { bottom: -2%; inset-inline-start: 6%; }

.features { padding-block: 24px 72px; }
.features h2, .section-title { font-weight: 900; font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 24px; color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.card .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.t-brand .icon { background: var(--brand-muted); color: var(--brand); }
.t-rasp .icon { background: var(--raspberry-muted); color: var(--raspberry); }
.t-sage .icon { background: var(--sage-muted); color: var(--sage); }

.contact {
  margin-block: 0 72px; padding: 32px; border-radius: var(--radius);
  background: var(--brand); color: var(--on-brand);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.contact h2 { margin: 0; font-size: 24px; font-weight: 900; }
.contact p { margin: 4px 0 0; opacity: .85; }
.contact a.btn {
  padding: 12px 22px; border-radius: 999px; background: var(--on-brand); color: var(--brand);
  font-weight: 600; text-decoration: none; direction: ltr; unicode-bidi: isolate;
}

/* ---------- legal / document pages ---------- */
.doc { padding-block: 16px 72px; }
.doc-head { max-width: var(--measure); margin-bottom: 28px; }
.doc-head h1 { margin: 8px 0 6px; font-size: clamp(32px, 5vw, 46px); font-weight: 900; line-height: 1.25; color: var(--brand); }
.doc-head .meta { color: var(--ink-3); font-size: 15px; }
.doc-body {
  max-width: var(--measure); padding: clamp(22px, 4vw, 44px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.doc-body h2 { font-size: 22px; font-weight: 900; margin: 36px 0 8px; line-height: 1.4; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 18px; font-weight: 600; margin: 22px 0 4px; }
.doc-body p, .doc-body li { color: var(--ink); }
.doc-body ul, .doc-body ol { padding-inline-start: 1.3em; }
.doc-body li { margin-block: 4px; }
.doc-body li::marker { color: var(--brand); }
.doc-body .note {
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--brand-muted); color: var(--ink); margin: 18px 0;
}
.doc-body .note.sage { background: var(--sage-muted); }
.doc-body .note.rasp { background: var(--raspberry-muted); }
.doc-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc-body th, .doc-body td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc-body th { color: var(--ink-2); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 10px; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start;
  padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); margin: 0;
}
.steps li::before {
  content: counter(s); width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 900;
}
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 28px 40px; color: var(--ink-2); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; width: min(260px, 70vw); }
  .hero-art .chip { font-size: 13px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding-block: 16px 48px; }
  .hero-art .c1 { inset-inline-start: -4%; }
  .hero-art .c2 { inset-inline-end: -4%; }
  .contact { padding: 24px; }
  .store { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art .plate { animation: float 7s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-8px); } }
}
