/* Static marketing landing page styles (wostoolkit.com/ + /<lang>/).
   Palette mirrors mobile/lib/src/theme.dart (AppColors) so the web
   marketing page reads as the same product as the Flutter app. Shared,
   immutable (1-year cache); generated HTML links this rather than
   inlining, to keep each per-language page small. Uses logical
   properties (margin-inline, padding-inline) so dir="rtl" (Arabic)
   mirrors without extra rules. */

:root {
  --bg: #0a0e16;
  --bg-tint: #0d1320;
  --surface: #141a28;
  --surface2: #1c2338;
  --text: #e6ecf6;
  --muted: #8893ab;
  --frost: #a6dcf2;
  --frost-deep: #5fb2d8;
  --border: rgba(180, 210, 255, 0.07);
  --border-strong: rgba(180, 210, 255, 0.16);
}

* { box-sizing: border-box; }

html,
body {
  background: var(--bg);
  margin: 0;
  padding: 0;
}

body {
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--frost); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0; }

/* Keyboard skip link — visually hidden until focused. */
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
}
.skip-link:focus {
  inset-inline-start: 12px;
  top: 12px;
  z-index: 10;
  background: var(--surface2);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
}

/* ---- top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 24px;
}
.wordmark {
  font-size: 17px;
  letter-spacing: 0.2px;
  color: var(--text);
}
.wordmark b { color: var(--frost); font-weight: 700; }
.signin {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
}
.signin:hover { text-decoration: none; border-color: var(--frost); }

/* ---- shared section frame ---- */
main { display: block; }
section {
  max-width: 1040px;
  margin: 0 auto;
  padding-inline: 24px;
}
section h2 {
  font-size: clamp(22px, 4vw, 30px);
  text-align: center;
  margin-bottom: 28px;
}

/* ---- hero ---- */
.hero {
  text-align: center;
  padding-top: 56px;
  padding-bottom: 64px;
  background:
    radial-gradient(60% 80% at 50% -10%, rgba(166, 220, 242, 0.10), transparent 70%);
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--frost-deep);
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(32px, 6.4vw, 56px);
  max-width: 16ch;
  margin: 0 auto 18px;
  background: linear-gradient(180deg, #ffffff, var(--frost));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary,
.btn-ghost {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 14px;
}
.btn-primary {
  background: var(--frost);
  color: var(--bg);
  border: 1px solid var(--frost);
}
.btn-primary:hover {
  text-decoration: none;
  background: #c2e8fb;
  border-color: #c2e8fb;
}
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { text-decoration: none; border-color: var(--frost); }

/* ---- screenshots ---- */
.screens { padding-block: 40px; }
.shot-strip {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.shot {
  margin: 0;
  width: 240px;
  max-width: 70vw;
}
.shot img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.shot figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ---- features ---- */
.features { padding-block: 56px; }
.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.feature h3 { font-size: 19px; color: var(--frost); margin-bottom: 10px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- pro ---- */
.pro {
  text-align: center;
  margin-block: 16px;
  padding: 48px 32px;
  background:
    linear-gradient(180deg, var(--bg-tint), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  max-width: 760px;
}
.pro p { color: var(--muted); max-width: 52ch; margin: 0 auto 28px; }
.pro .btn-primary { margin-bottom: 16px; }
.pro .pro-note { font-size: 13px; margin: 0; }

/* ---- tools ---- */
.tools { padding-block: 56px; max-width: 760px; }
.tool-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
  color: var(--text);
}
.tool-card:hover { text-decoration: none; border-color: var(--border-strong); }
.tool-text { display: flex; flex-direction: column; gap: 4px; }
.tool-title { font-weight: 700; font-size: 17px; }
.tool-desc { color: var(--muted); font-size: 14px; }
.tool-open { color: var(--frost); font-weight: 600; white-space: nowrap; }

/* ---- footer ---- */
.site-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 24px 56px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}
.foot-tag { margin: 0 0 12px; font-size: 14px; }
.foot-links { margin: 0 0 20px; font-size: 14px; }
.foot-links span { margin-inline: 8px; color: var(--muted); }
.lang-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  font-size: 13px;
  margin-bottom: 24px;
}
.lang-switcher a { color: var(--frost); }
.lang-current { color: var(--text); font-weight: 600; }
.disclaimer {
  font-size: 12px;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto;
  color: var(--muted);
  opacity: 0.85;
}

@media (max-width: 600px) {
  .hero { padding-top: 36px; padding-bottom: 44px; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
  .cta-row { flex-direction: column; }
}
