/* Fora company site. Tokens mirror mobile/src/theme/themes.ts (theme "fora"). No external requests. */

@font-face { font-family: "Google Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/google-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Google Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/google-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Google Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/google-sans-700.woff2") format("woff2"); }

:root {
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --wash: #EEF1F5;
  --text: #14181F;
  --muted: #566070;
  --border: #E3E7EE;
  --brand: #3F62EB;
  --brand-text: #3F62EB;
  --brand-wash: #EBF0FF;
  --on-brand: #FFFFFF;
  --phone: #14181F;
  --note-bg: #FFF6E5;
  --note-text: #7A4B00;
  --radius: 16px;
  --radius-s: 8px;
  --gutter: 20px;
  --font: "Google Sans", "Noto Sans Georgian", "Sylfaen", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1116;
    --card: #161A21;
    --wash: #1F2530;
    --text: #F3F5F8;
    --muted: #9AA3B2;
    --border: #262D38;
    --brand: #3F62EB;
    --brand-text: #7B93F5;
    --brand-wash: #1A2240;
    --phone: #2A313D;
    --note-bg: #2B2210;
    --note-text: #F2B04C;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--font);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h1 { font-weight: 700; font-size: clamp(2rem, 5.2vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-weight: 600; font-size: 1.125rem; }
p { margin: 0 0 1em; overflow-wrap: break-word; }
dd, li, dt, summary { overflow-wrap: break-word; }
strong { font-weight: 600; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .4em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--brand); color: var(--on-brand);
  padding: 10px 14px; border-radius: var(--radius-s); z-index: 10; text-decoration: none; }
.skip:focus { top: 12px; }

/* header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; min-height: 44px; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .mark-bg { fill: var(--brand); }
.brand .mark-fg { fill: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; order: 3; width: 100%; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: var(--radius-s); font-weight: 600; font-size: .95rem; min-height: 40px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--text); background: var(--wash); }
.nav a[aria-current="page"] { color: var(--brand-text); background: var(--brand-wash); }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--card); padding: 2px; }
.lang a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; padding: 6px 12px; border-radius: 6px; min-height: 36px; display: inline-flex; align-items: center; }
.lang a[aria-current="true"] { background: var(--brand); color: var(--on-brand); }
@media (min-width: 720px) {
  .nav { order: 0; width: auto; margin-left: auto; }
  .bar { flex-wrap: nowrap; }
}

/* hero */
.hero { padding: 40px 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; align-items: end; }
.hero-copy { padding-bottom: 0; }
.eyebrow { color: var(--brand-text); font-weight: 600; font-size: .95rem; margin: 0 0 14px; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 34em; margin: 20px 0 28px; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 1.05rem; }
.badge-note { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }
@media (min-width: 880px) {
  .hero { padding: 72px 0 0; }
  .hero-copy { padding-bottom: 88px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 72px; }
}

/* phone frame */
.phone { width: 100%; max-width: 300px; margin: 0 auto; border: 10px solid var(--phone); border-radius: 42px; overflow: hidden; background: var(--card); }
.phone img { width: 100%; height: auto; }
.hero .phone { max-width: 340px; border-bottom: 0; border-radius: 42px 42px 0 0; }

/* feature blocks */
.section { padding: 56px 0; }
.section-head { margin-bottom: 8px; }
.feature { display: grid; gap: 28px; align-items: center; padding: 32px 0; border-top: 1px solid var(--border); }
.feature:first-of-type { border-top: 0; }
.feature .label { color: var(--brand-text); font-weight: 600; font-size: .95rem; margin: 0 0 8px; }
.feature h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 14px; letter-spacing: -0.01em; }
.feature p.text { color: var(--muted); max-width: 32em; }
.points { list-style: none; padding: 0; margin: 20px 0 0; }
.points li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px; border-left: 2.5px solid var(--brand-text); border-bottom: 2.5px solid var(--brand-text); transform: rotate(-45deg) translateY(-50%); }
@media (min-width: 880px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 80px; padding: 48px 0; }
  .feature:nth-of-type(even) .shot { order: -1; }
}

/* grids and cards */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.two { display: grid; gap: 16px; }
@media (min-width: 760px) { .two { grid-template-columns: 1fr 1fr; } }
.band { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* pages */
.page { padding: 40px 0 72px; }
.page h1 { margin-bottom: 16px; font-size: clamp(1.6rem, 5vw, 3rem); overflow-wrap: anywhere; }
.page .lede { margin-top: 0; }
.draft-note { display: inline-block; background: var(--note-bg); color: var(--note-text); font-weight: 600; font-size: .9rem; padding: 6px 12px; border-radius: var(--radius-s); margin: 0 0 20px; }
.meta { color: var(--muted); font-size: .95rem; }
.toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 28px 0 8px; }
.toc h2 { font-size: 1rem; margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.legal section { padding-top: 36px; scroll-margin-top: 16px; }
.legal h2 { font-size: 1.4rem; margin-bottom: 14px; }
.legal dl { margin: 0 0 1em; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.legal dl > div { padding: 14px 18px; border-top: 1px solid var(--border); }
.legal dl > div:first-child { border-top: 0; }
.legal dt { font-weight: 600; margin-bottom: 4px; }
.legal dd { margin: 0; color: var(--muted); }
@media (min-width: 760px) {
  .legal dl > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
  .legal dt { margin: 0; }
}

/* faq */
details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 12px; }
summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 600; position: relative; min-height: 52px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details .answer { padding: 0 20px 8px; color: var(--muted); }
details .answer strong { color: var(--text); }
.callout { background: var(--brand-wash); border-radius: var(--radius); padding: 22px; margin: 28px 0; }
.callout h2 { font-size: 1.25rem; margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--muted); font-size: .95rem; }
.site-footer .cols { display: grid; gap: 20px; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 1.5fr 1fr; gap: 56px; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text); }
.site-footer .small { font-size: .85rem; margin-top: 16px; }

.center { text-align: center; padding: 96px 0; }
.center .lede { margin-left: auto; margin-right: auto; }

@media print { .site-header, .site-footer, .skip { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
