/* tecaji.si — "coming soon" teaser (launch/). Shared by / and /en/.
   System fonts, no external requests. Dark mode follows the system unless the
   visitor picks a theme with the button (stored in localStorage on their device). */

:root {
  color-scheme: light;
  --paper: #fbf7f0;
  --paper-2: #f3ecdf;
  --surface: #fffdf9;
  --ink: #1e1a16;
  --ink-2: #3b352e;
  --muted: #5f574c;
  --line: #e3dacb;
  --line-strong: #8b8273;
  --link: #13624f;
  --focus: #c2410c;
  --brand: #13624f;
  --brand-tint: #dcefe7;
  --on-brand: #ffffff;
  --hl: #f7d774;
  --hl-mark: #f7d774;
  --hl-soft: #fbedb9;
  --outlook: #a8412a;
  --outlook-tint: #f8e1d9;
  --dots: rgb(30 26 22 / 0.09);
  --shadow: 0 2px 4px rgb(60 45 25 / 0.05), 0 28px 60px -24px rgb(60 45 25 / 0.35);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Sitka Display", "Sitka Heading", "Palatino Linotype", Palatino,
    "Book Antiqua", Georgia, "Noto Serif", ui-serif, serif;
  --gutter: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #151311;
    --paper-2: #1c1916;
    --surface: #211e1a;
    --ink: #f2ede5;
    --ink-2: #ddd6cb;
    --muted: #b3aa9c;
    --line: #36302a;
    --line-strong: #776b5c;
    --link: #8ad8c1;
    --focus: #ffa25c;
    --brand: #7fd1b9;
    --brand-tint: #1b322b;
    --on-brand: #0f2a22;
    --hl: #e6c25a;
    --hl-mark: rgb(230 194 90 / 0.32);
    --hl-soft: #3d3215;
    --outlook: #f0a08a;
    --outlook-tint: #38251f;
    --dots: rgb(242 237 229 / 0.07);
    --shadow: 0 2px 4px rgb(0 0 0 / 0.4), 0 30px 60px -24px rgb(0 0 0 / 0.75);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151311;
  --paper-2: #1c1916;
  --surface: #211e1a;
  --ink: #f2ede5;
  --ink-2: #ddd6cb;
  --muted: #b3aa9c;
  --line: #36302a;
  --line-strong: #776b5c;
  --link: #8ad8c1;
  --focus: #ffa25c;
  --brand: #7fd1b9;
  --brand-tint: #1b322b;
  --on-brand: #0f2a22;
  --hl: #e6c25a;
  --hl-mark: rgb(230 194 90 / 0.32);
  --hl-soft: #3d3215;
  --outlook: #f0a08a;
  --outlook-tint: #38251f;
  --dots: rgb(242 237 229 / 0.07);
  --shadow: 0 2px 4px rgb(0 0 0 / 0.4), 0 30px 60px -24px rgb(0 0 0 / 0.75);
}

@media (min-width: 40rem) {
  :root { --gutter: 2rem; }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0 0 1rem; text-wrap: pretty; }

mark {
  color: inherit;
  background: linear-gradient(to bottom, transparent 55%, var(--hl-mark) 55%, var(--hl-mark) 92%, transparent 92%);
  padding: 0 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.icon { width: 1.2em; height: 1.2em; flex: none; }

/* Top bar */
.top { padding-block: 1.25rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.brand__mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding-bottom: 0.12rem;
  border-radius: 10px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 1.4rem;
  line-height: 1;
}

.brand__mark::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--hl);
  border: 2px solid var(--paper);
}

.brand__tld { color: var(--muted); font-weight: 400; }

/* Hero */
main { flex: 1 0 auto; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(1.5rem, 1rem + 4vw, 4.5rem) clamp(3rem, 2rem + 4vw, 5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(var(--dots) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10%;
  top: -15%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hl) 35%, transparent), transparent);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 4.5rem;
  }
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.9rem 0.3rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink-2);
}

.soon b {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--hl);
  color: #1e1a16;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.lead {
  max-width: 36rem;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.points {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 36rem;
}

.points li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.points .icon {
  margin-top: 0.15rem;
  color: var(--brand);
}

.points strong { color: var(--ink); }

/* Example card */
.demo {
  position: relative;
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

@media (min-width: 62rem) {
  .demo { transform: rotate(0.8deg); }
}

.demo__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.app-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: var(--outlook-tint);
  color: var(--outlook);
}

.demo__head p {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.35;
}

.demo__head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.prompt {
  margin: 0 0 1rem;
  border: 1.5px solid color-mix(in srgb, var(--outlook) 45%, var(--line));
  border-radius: 14px;
  overflow: hidden;
}

.prompt__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--outlook-tint) 60%, var(--surface));
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.prompt__label::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--outlook);
}

.prompt__text { margin: 0; padding: 1rem 1.25rem; }

.result {
  position: relative;
  margin: 0;
  padding: 1rem 1.25rem 1rem 3.2rem;
  border-radius: 14px;
  background: var(--paper-2);
}

.result .icon {
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  color: var(--brand);
}

.result p { margin: 0 0 0.35rem; font-weight: 700; }

.result ul { margin: 0; padding-left: 1.1rem; font-size: 0.95rem; color: var(--ink-2); }

.note {
  position: absolute;
  right: 0.5rem;
  bottom: -1.4rem;
  margin: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  background: var(--hl);
  color: #1e1a16;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 28px -12px rgb(60 45 25 / 0.4);
  transform: rotate(-2.5deg);
}

/* Footer */
footer {
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

footer p { max-width: 70ch; margin-bottom: 0.5rem; }

@media (max-width: 29.99rem) {
  .demo { padding: 1rem; }
  .result { padding-left: 2.8rem; }
  .result .icon { left: 0.8rem; }
}

/* Header tools: language switch and theme toggle */
.top__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.top .brand {
  margin: 0;
}

.tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.lang-switch:hover,
.theme-toggle:hover {
  background: var(--paper-2);
}

.theme-toggle {
  padding: 0;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle[aria-pressed="true"] .icon-sun {
  display: block;
}

.theme-toggle[aria-pressed="true"] .icon-moon {
  display: none;
}

footer a {
  color: var(--link);
  font-weight: 650;
  text-underline-offset: 0.2em;
}

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

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media print {
  .tools { display: none; }
  .hero::before, .hero::after { display: none; }
  .demo { box-shadow: none; transform: none; }
}
