/* QcPlot marketing site. Tokens and rules follow docs/marketing/style-guide.md. Everything uses logical properties, so right-to-left is the same code mirrored. */

@font-face { font-family: "Space Grotesk"; src: url("/_content/QcPlot.UI/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF; }
@font-face { font-family: "Inter"; src: url("/_content/QcPlot.UI/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/_content/QcPlot.UI/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Vazirmatn"; src: url("/_content/QcPlot.UI/fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; src: url("/_content/QcPlot.UI/fonts/vazirmatn-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --site-bg: #ffffff; --site-bg-soft: #f6f8fb; --site-ink: #1f2937; --site-ink-2: #4b5563; --site-line: #e2e8f0;
  --brand-blue: #1d55b8; --brand-blue-strong: #174a9e; --brand-green: #0f8447; --brand-green-strong: #0b6b39; --tile: #e8effb;
  --footer-bg: #0f2238; --footer-ink: #e6edf5; --footer-ink-2: #a9b8c9; --footer-blue: #7da8f2; --footer-green: #3dd68c;
  --status-blue: #1e5fb8; --status-green: #2e7d32; --status-yellow: #d6a300; --status-orange: #e85a14; --status-red: #b3261e; --status-grey: #6b7280;
  --radius-control: 8px; --radius-card: 14px;
  --shadow-card: 0 1px 2px rgb(15 34 56 / 6%), 0 4px 16px rgb(15 34 56 / 6%);
  --shadow-frame: 0 8px 40px rgb(15 34 56 / 14%);
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --space: 1rem;
  /* Soft brand tints for the hero and the call to action. They are tokens so a dark theme can override them; the site is light today. */
  --tint-blue: rgb(29 85 184 / 9%); --tint-green: rgb(15 132 71 / 8%);
  --tint-blue-on-dark: rgb(125 168 242 / 18%); --tint-green-on-dark: rgb(61 214 140 / 13%);
  --tile-from: #e8effb; --tile-to: #e3f3ea;
  /* The home page redesign (2026-11-23): a tinted hero, a hairline under the top bar, a navy closing band. */
  --hero-tint: #eaf1fb; --hero-pill-line: #c9d8f0; --bar-line: #e3e8f0; --navy: #0e1b36; --bezel: #111827; --bezel-soft: #0f172a;
}
:lang(fa), :lang(ar) { --font-head: "Vazirmatn", "Segoe UI", system-ui, sans-serif; --font-body: "Vazirmatn", "Segoe UI", system-ui, sans-serif; }
:lang(zh-Hans) { --font-head: "Space Grotesk", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.55 var(--font-body); color: var(--site-ink); background: var(--site-bg); }
:lang(fa) body, :lang(ar) body { line-height: 1.7; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5rem; color: var(--site-ink); }
:lang(fa) h1, :lang(ar) h1, :lang(fa) h2, :lang(ar) h2 { line-height: 1.3; }
h1 { font-size: clamp(2.25rem, 3vw + 1rem, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem); font-weight: 700; }
h3, .h3 { font-size: clamp(1.125rem, 1vw + 1rem, 1.375rem); font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--brand-blue); text-underline-offset: 3px; }
a:hover { color: var(--brand-blue-strong); }
:focus-visible { outline: 3px solid var(--footer-blue); outline-offset: 2px; border-radius: 4px; }
.small { font-size: .875rem; color: var(--site-ink-2); }
.lead { font-size: clamp(1.125rem, .5vw + 1rem, 1.25rem); color: var(--site-ink-2); max-width: 65ch; }
.hide-small { display: none; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 1.25rem; }
.wrap.narrow { max-width: 720px; }
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.soft { background: var(--site-bg-soft); }

.skip-link { position: absolute; inset-inline-start: .5rem; inset-block-start: -4rem; background: var(--brand-blue); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-control); z-index: 20; }
.skip-link:focus { inset-block-start: .5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .5rem 1.25rem; border-radius: var(--radius-control); font: 600 1rem/1.25 var(--font-body); text-decoration: none; text-align: center; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, box-shadow .15s; }
/* The one filled call to action is brand green with white text: 4.76 to 1 on white, above the 4.5 to 1 a normal-size label needs. */
.btn-primary { background: var(--brand-green); color: #fff; }
.btn-primary:hover { background: var(--brand-green-strong); color: #fff; }
.btn-secondary { background: #fff; color: var(--brand-blue); border-color: var(--brand-blue); }
.btn-secondary:hover { background: var(--site-bg-soft); }
.btn-text { color: var(--brand-blue); padding-inline: .75rem; }
.btn-lg { min-height: 52px; padding-inline: 1.75rem; font-size: 1.0625rem; }
.btn-lg .icon { color: var(--brand-blue); }
.btn-on-dark { background: #fff; color: var(--brand-blue); }
.btn-on-dark:hover { background: var(--footer-ink); color: var(--brand-blue-strong); }

/* Header */
.site-header { position: sticky; inset-block-start: 0; z-index: 10; background: rgb(255 255 255 / 96%); border-block-end: 1px solid var(--bar-line); backdrop-filter: blur(6px); }
.bar { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.wordmark { font: 700 1.375rem/1 "Space Grotesk", "Segoe UI", sans-serif; letter-spacing: -.01em; direction: ltr; unicode-bidi: isolate; }
.wordmark b { color: var(--brand-blue); font-weight: 700; }
.wordmark i { color: var(--brand-green); font-style: normal; }
.nav-links { display: none; gap: 1.5rem; margin-inline-start: 1.5rem; }
.nav-links a { color: var(--site-ink); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--brand-blue); text-decoration: underline; }
.bar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.bar-actions .btn { min-height: 44px; padding-inline: 1rem; }
/* On a phone the header keeps only the brand, the language and the menu; the call to action is the hero's and the menu's. */
.bar-actions .btn-primary { display: none; }
.lang-menu summary span { display: none; }
.panel-start { margin-block-start: .5rem; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.lang-menu, .mobile-menu { position: relative; }
.lang-menu summary, .mobile-menu summary { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding-inline: .6rem; border-radius: var(--radius-control); color: var(--site-ink); }
.lang-menu summary:hover, .mobile-menu summary:hover { background: var(--site-bg-soft); }
.lang-menu ul, .mobile-panel { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 6px); min-width: 12rem; background: #fff; border: 1px solid var(--site-line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: .5rem; list-style: none; margin: 0; z-index: 30; }
.lang-menu li a, .mobile-panel a { display: block; padding: .6rem .75rem; border-radius: 6px; color: var(--site-ink); text-decoration: none; min-height: 44px; }
.lang-menu li a:hover, .mobile-panel a:hover { background: var(--site-bg-soft); }
.lang-menu li a[aria-current="true"] { font-weight: 700; color: var(--brand-blue); }

/* Hero: a flat brand tint across the full width, the text on one side and a CSS-only laptop, tablet and phone on the other. */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 7vw, 5rem); background: var(--hero-tint); overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3.5rem; } }
.eyebrow { display: inline-block; margin: 0 0 1.25rem; padding: .375rem .875rem; background: #fff; color: var(--brand-blue); border: 1px solid var(--hero-pill-line); border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
:lang(fa) .eyebrow, :lang(ar) .eyebrow, :lang(zh-Hans) .eyebrow { letter-spacing: 0; text-transform: none; font-size: .875rem; }
.hero h1 { font-size: clamp(2.25rem, 2.2vw + 1.6rem, 3.5rem); line-height: 1.05; letter-spacing: -.025em; margin-block-end: 1.1rem; }
:lang(fa) .hero h1, :lang(ar) .hero h1 { letter-spacing: 0; line-height: 1.3; }
.hero .lead { font-size: clamp(1.0625rem, .5vw + 1rem, 1.1875rem); color: var(--site-ink-2); margin-block-end: 1.5rem; }
.hero .hero-points { margin-block: 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-block: 0 1rem; }
.reassurance { font-size: .875rem; color: var(--site-ink-2); max-width: 60ch; }

/* The devices. Percentages are of the .devices box; the tablet sits on the end side and the phone on the start side, so right to left swaps them. */
.devices-wrap { min-width: 0; }
.devices { position: relative; margin-block-end: 4.5rem; margin-inline: 3% 0; }
.dev-laptop { inline-size: 100%; }
.dev-screen { background: var(--bezel); border-radius: 14px 14px 4px 4px; padding: .6rem .6rem .8rem; box-shadow: 0 30px 60px rgb(15 27 51 / 22%); }
.dev-screen img { display: block; inline-size: 100%; block-size: auto; border-radius: 3px; }
.dev-base { block-size: .875rem; margin-inline: -4%; background: #c9d1de; border-block-start: 3px solid #aeb8c8; border-radius: 0 0 14px 14px; }
.dev-tablet { position: absolute; inset-inline-end: -4%; inset-block-end: -3.25rem; inline-size: 42%; background: var(--bezel-soft); border-radius: 16px; padding: .5rem; box-shadow: 0 24px 50px rgb(15 27 51 / 30%); }
.dev-tablet img { display: block; inline-size: 100%; block-size: auto; border-radius: 8px; }
.dev-phone { position: absolute; inset-inline-start: -4%; inset-block-end: -4.25rem; inline-size: 19%; min-inline-size: 4.25rem; background: var(--bezel-soft); border-radius: 24px; padding: .375rem; box-shadow: 0 24px 50px rgb(15 27 51 / 32%); }
.dev-phone-screen { aspect-ratio: 9 / 19; border-radius: 19px; overflow: hidden; background: #fff; }
.dev-phone-screen img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: top; }
.dev-caption { margin: 0; text-align: end; }
@media (max-width: 959px) { .dev-caption { text-align: center; } .devices { margin-inline: 0; } .dev-tablet { inset-inline-end: 0; } .dev-phone { inset-inline-start: 0; } }
@media (min-width: 960px) { .devices { inline-size: 108%; } }

/* Sample chart: the status tokens appear only here, in a product picture, each mark with a shape and a legend */
.sample { margin: 0; background: #fff; border: 1px solid var(--site-line); border-radius: 18px; box-shadow: 0 24px 60px rgb(15 34 56 / 18%), 0 4px 12px rgb(15 34 56 / 8%); padding: 1.25rem; }
@media (min-width: 960px) {
  .hero .sample { transform: rotate(-1.6deg) translateY(.5rem); }
  [dir="rtl"] .hero .sample { transform: rotate(1.6deg) translateY(.5rem); }
}
.sample [data-home="chart"] svg { width: 100%; height: auto; display: block; }
.sc-plot { fill: var(--site-bg-soft); stroke: var(--site-line); }
.sc-line { stroke: #cbd5e1; stroke-width: 1; }
.sc-sd-0 { stroke: var(--brand-blue); stroke-width: 1.5; }
.sc-sd-2 { stroke: var(--status-orange); stroke-dasharray: 6 5; }
.sc-sd-3 { stroke: var(--status-red); }
.sc-path { fill: none; stroke: #94a3b8; stroke-width: 1.5; }
.sc-point { fill: var(--status-green); }
.sc-flag { fill: var(--status-orange); stroke: #fff; stroke-width: 1; }
.sample figcaption { margin-block-start: .75rem; }

/* The product pictures (M2): a soft window around a real screenshot of the fictional demonstration laboratory. */
.frame { margin: 0; background: #fff; border: 1px solid var(--site-line); border-radius: 14px; box-shadow: 0 8px 40px rgb(15 34 56 / 14%); overflow: hidden; }
.frame-bar { display: flex; gap: .4rem; padding: .6rem .8rem; background: var(--site-bg-soft); border-block-end: 1px solid var(--site-line); }
.frame-bar span { inline-size: .6rem; block-size: .6rem; border-radius: 50%; background: var(--site-line); }
.frame img { display: block; inline-size: 100%; block-size: auto; }
.frame figcaption { padding: .5rem .8rem; font-size: .8125rem; color: var(--site-ink-2); border-block-start: 1px solid var(--site-line); }
@media (min-width: 960px) {
  .hero .hero-picture .frame { transform: rotate(-1.2deg) translateY(.5rem); }
  [dir="rtl"] .hero .hero-picture .frame { transform: rotate(1.2deg) translateY(.5rem); }
}
.showcase-text { max-inline-size: 46rem; margin-block-end: 2.5rem; }
.points { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; }
.points li { display: flex; gap: .6rem; align-items: flex-start; }
.points li svg { flex: none; margin-block-start: .15rem; color: var(--brand-green-strong); }
.showcase-pictures { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 800px) { .showcase-pictures { grid-template-columns: 1fr 1fr; } }
.sc-legend { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0 0 .25rem; padding: 0; font-size: .875rem; }
.sc-legend li { display: inline-flex; align-items: center; gap: .4rem; }

/* Trust strip: short, true statements about the product, each with its own icon. No logos, no quotes. */
.trust { background: #fff; border-block: 1px solid var(--site-line); }
.trust-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .75rem 2rem; list-style: none; margin: 0; padding: 1.25rem 0; }
.trust-list li { display: flex; align-items: center; gap: .65rem; font-weight: 500; color: var(--site-ink); }
.trust-list .icon { color: var(--brand-green-strong); }

/* Modules */
.grid { display: grid; gap: 1.25rem; }
.cards { margin-block-start: 2rem; }
.card { background: #fff; border: 1px solid var(--site-line); border-radius: var(--radius-card); padding: 1.5rem; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: .25rem; transition: transform .2s, box-shadow .2s; }
.card h3, .card .h3 { margin-block-start: .5rem; }
.card p { color: var(--site-ink-2); flex: 1; }
.tile { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--tile-from), var(--tile-to)); color: var(--brand-blue); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgb(29 85 184 / 10%); }
.tile .icon { width: 28px; height: 28px; }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 999px; background: var(--site-bg-soft); border: 1px solid var(--site-line); font-size: .8125rem; color: var(--site-ink-2); }

/* Home: three alternating feature rows with one picture each, three link cards, three static steps */
.features { display: grid; gap: clamp(3.5rem, 7vw, 6rem); }
.feature-row { display: grid; gap: 2rem; align-items: center; }
.feature-text, .feature-picture { min-width: 0; }
.feature-text h2 { margin-block-end: .75rem; }
.row-eyebrow { margin: 0 0 .5rem; color: var(--brand-green-strong); font-weight: 600; font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; }
:lang(fa) .row-eyebrow, :lang(ar) .row-eyebrow, :lang(zh-Hans) .row-eyebrow { letter-spacing: 0; text-transform: none; }
.feature-picture { background: var(--site-bg-soft); border-radius: 20px; padding: clamp(.75rem, 2vw, 1.5rem); }
@media (min-width: 900px) {
  .feature-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 3.5rem; }
  .feature-row.reverse .feature-text { order: 2; }
}
.more-cards { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .more-cards { grid-template-columns: repeat(3, 1fr); } }
.how-steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: how; }
@media (min-width: 760px) { .how-steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.how-step { counter-increment: how; background: #fff; border: 1px solid var(--site-line); border-radius: var(--radius-card); padding: 1.5rem; box-shadow: var(--shadow-card); }
.how-step h3::before { content: counter(how); display: inline-grid; place-items: center; inline-size: 2rem; block-size: 2rem; margin-inline-end: .6rem; border-radius: 50%; background: var(--brand-green); color: #fff; font: 700 1rem var(--font-body); }
.how-step p { margin: 0; color: var(--site-ink-2); }

/* Plans */
.tiers { display: grid; gap: 1.25rem; margin-block-start: 2rem; }
.tier { background: #fff; border: 1px solid var(--site-line); border-radius: var(--radius-card); padding: 1.5rem; box-shadow: var(--shadow-card); }
.tier-text { color: var(--site-ink-2); margin-block-end: 1rem; }
.tier-list { list-style: none; margin: 0; padding: 0; }
.tier-list li { display: flex; align-items: flex-start; gap: .6rem; padding-block: .55rem; border-block-start: 1px solid var(--site-line); }
.tier-list .icon { color: var(--brand-green-strong); margin-block-start: .15rem; }
.tier.featured { border: 2px solid var(--brand-green); box-shadow: 0 10px 30px rgb(15 132 71 / 16%); }
.plans-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; margin-block-start: 1.5rem; }
.plans-foot .more { margin: 0; }
.tier-price { padding-block: .25rem 1rem; } .tier-price p { margin: 0; font: 700 1.25rem var(--font-head); } .tier-price strong { font: 700 1.5rem var(--font-head); }
.currency { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-block-end: 1.25rem; }
.currency a { padding: .4rem .8rem; min-block-size: 44px; display: inline-flex; align-items: center; border-radius: 999px; border: 1.5px solid var(--site-line); background: #fff; color: var(--site-ink); text-decoration: none; }
.currency a[aria-current="true"] { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.tier-rows { margin: 0; }
.tier-row { padding-block: .6rem; border-block-start: 1px solid var(--site-line); }
.tier-row dt { font-size: .875rem; color: var(--site-ink-2); }
.tier-row dd { margin: 0; font-weight: 500; }

/* Closing call to action: flat dark navy, the headline and one green button. */
.cta-band { background: var(--navy); color: var(--footer-ink); text-align: center; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta-band h2 { color: #fff; max-width: 24ch; margin-inline: auto; margin-block-end: 1.5rem; }
.cta-band .reassurance { color: var(--footer-ink-2); margin: 1rem auto 0; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink-2); border-block-start: 1px solid #1f3550; }
.site-footer .wordmark b { color: var(--footer-blue); } .site-footer .wordmark i { color: var(--footer-green); }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
.footer-text { color: var(--footer-ink); margin-block: 1rem .5rem; }
.footer-small { font-size: .875rem; }
.footer-title { font: 600 .875rem var(--font-body); text-transform: none; color: var(--footer-ink); margin-block-end: .75rem; }
.footer-langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.footer-langs a { color: var(--footer-blue); display: inline-block; padding-block: .35rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.footer-links a { color: var(--footer-blue); display: inline-block; padding-block: .3rem; }
.footer-title-next { margin-block-start: 1.25rem; }
.more { margin-block-start: .5rem; font-weight: 600; color: var(--brand-blue-strong); }
.more:hover, .more:focus-visible { text-decoration: underline; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Feature pages, FAQ, legal (M3) */
.page-head { padding-block-end: 2rem; }
.page-head .tile { margin-block-end: 1rem; }
.feature-pictures { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 800px) { .feature-pictures { grid-template-columns: 1fr 1fr; } .feature-pictures.single { grid-template-columns: minmax(0, 52rem); justify-content: center; } }
.note { margin-block-start: 1.5rem; color: var(--site-ink-2); }
.avail { margin-block-start: 3rem; }
.avail-list { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.avail-list li { display: flex; align-items: center; gap: .6rem; }
.faq { display: grid; gap: .75rem; }
.faq-item { background: #fff; border: 1px solid var(--site-line); border-radius: var(--radius-card); padding: 0; }
.faq-item summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; list-style-position: inside; }
.faq-item summary:focus-visible { outline: 3px solid var(--footer-blue); outline-offset: 2px; border-radius: 8px; }
.faq-item p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--site-ink-2); }
.legal-banner { display: inline-block; padding: .6rem 1rem; border: 1.5px solid var(--brand-blue); border-radius: 8px; background: var(--site-bg-soft); font-weight: 600; }
.legal h2 { font-size: 1.25rem; margin-block: 2rem .5rem; }
.legal p { max-width: 65ch; }
/* The introduction video facade (M5): a fixed-ratio frame, so nothing moves when the player replaces the poster. */
.video-frame { position: relative; aspect-ratio: 16 / 9; max-inline-size: 56rem; margin-block: 1.5rem; border-radius: 14px; overflow: hidden; background: var(--footer-bg); box-shadow: 0 8px 40px rgb(15 34 56 / 14%); }
.video-frame iframe, .video-play { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; }
.video-play { display: grid; place-items: center; color: #fff; text-decoration: none; }
.video-play img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; opacity: .55; }
.video-button { position: relative; display: inline-flex; align-items: center; gap: .75rem; padding: .9rem 1.5rem; border-radius: 999px; background: var(--brand-blue); font-weight: 600; }
.video-play:hover .video-button, .video-play:focus-visible .video-button { background: var(--brand-blue-strong); }
.video-play:focus-visible { outline: 3px solid var(--footer-blue); outline-offset: -6px; }
.video-soon { display: grid; place-items: center; color: var(--footer-ink); text-align: center; padding: 1rem; }
.transcript { max-inline-size: 56rem; }
.transcript summary { cursor: pointer; font-weight: 600; }
.transcript ol { color: var(--site-ink-2); padding-inline-start: 1.25rem; }
/* The animated guide (M6). By default an ordered list of six still pictures; guide.js adds .guide-live and the list becomes one stage. */
:root { --status-blue: #1e5fb8; --status-green: #2e7d32; --status-yellow: #d6a300; --status-orange: #e85a14; --status-red: #b3261e; }
.guide-steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 2.5rem; counter-reset: step; }
.guide-step { display: grid; gap: 1.5rem; align-items: center; counter-increment: step; }
@media (min-width: 800px) { .guide-step { grid-template-columns: 1fr 1.2fr; } }
.guide-copy h3::before { content: counter(step); display: inline-grid; place-items: center; inline-size: 2rem; block-size: 2rem; margin-inline-end: .6rem; border-radius: 50%; background: var(--brand-blue); color: #fff; font: 700 1rem var(--font-body); }
.guide-copy p { color: var(--site-ink-2); }
.guide-scene { margin: 0; }
.guide-scene svg { display: block; inline-size: 100%; block-size: auto; border-radius: 14px; background: #fff; border: 1px solid var(--site-line); box-shadow: 0 8px 40px rgb(15 34 56 / 10%); }
[dir="rtl"] .guide-scene svg { transform: scaleX(-1); }
.guide-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-start: 1.5rem; }
.guide-tab { font: inherit; font-size: .9rem; padding: .5rem .9rem; min-block-size: 44px; border-radius: 999px; border: 1.5px solid var(--site-line); background: #fff; color: var(--site-ink); cursor: pointer; }
.guide-tab[aria-current="step"] { border-color: var(--brand-blue); background: var(--brand-blue); color: #fff; }
.guide-tab:focus-visible { outline: 3px solid var(--footer-blue); outline-offset: 2px; }
.guide-controls { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-start: 1.5rem; }
.guide-controls [aria-pressed="false"] .when-paused, .guide-controls [aria-pressed="true"] .when-playing { display: none; }
.guide-live .guide-steps { display: grid; margin-block-start: 1.5rem; }
.guide-live .guide-step { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .2s; }
.guide-live .guide-step.is-active { visibility: visible; opacity: 1; }
.guide-controls[hidden], .guide-tabs[hidden] { display: none; }
/* Drawing: shapes, in the site's own tokens. Status colours appear only here, always with a shape. */
.g-card { fill: #fff; stroke: var(--site-line); stroke-width: 2; }
.g-line { fill: var(--site-line); } .g-in { fill: var(--site-bg-soft); stroke: var(--site-line); stroke-width: 1.5; } .g-fill { fill: var(--brand-blue); stroke: none; }
.g-ok { fill: var(--status-green); } .g-tick { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; } .g-tick-small { stroke: var(--status-green); stroke-width: 3; }
.g-sd { stroke: var(--site-line); stroke-width: 1.5; stroke-dasharray: 5 4; } .g-sd-2 { stroke: var(--status-yellow); } .g-mean { stroke: var(--brand-blue); stroke-width: 2; }
.g-path { fill: none; stroke: var(--site-ink-2); stroke-width: 2.5; stroke-linejoin: round; } .g-dot { fill: var(--brand-green-strong); }
.g-st-blue { fill: var(--status-blue); } .g-st-green { fill: var(--status-green); } .g-st-yellow { fill: var(--status-yellow); } .g-st-orange { fill: var(--status-orange); } .g-st-red { fill: var(--status-red); }
.g-cell { fill: var(--site-bg-soft); stroke: var(--site-line); } .g-cell-warn { stroke: var(--status-orange); stroke-width: 2.5; } .g-bar { fill: var(--brand-blue); } .g-bar-warn { fill: var(--status-orange); }
.g-tri { fill: var(--status-orange); } .g-mark { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; }
.g-warn-line { stroke: var(--status-orange); stroke-width: 2.5; stroke-dasharray: none; } .g-ring { fill: none; stroke: var(--status-red); stroke-width: 3.5; } .g-bell { fill: #fff; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.g-line-thick { fill: none; stroke: var(--site-line); stroke-width: 4; stroke-linecap: round; }
.g-whisker { stroke: var(--site-ink-2); stroke-width: 2.5; } .g-grade { fill: var(--status-blue); stroke: #fff; stroke-width: 3; }
.g-day { fill: var(--site-bg-soft); stroke: var(--site-line); } .g-day-done { fill: #fff; stroke: var(--status-green); stroke-width: 2; } .g-day-soon { fill: var(--status-yellow); stroke: none; } .g-day-late { fill: var(--status-orange); stroke: none; } .g-day-missed { fill: var(--status-red); stroke: none; }
.g-in, .g-pop, .g-fade, .g-pulse { transform-box: fill-box; }
@keyframes g-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes g-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes g-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes g-draw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
@keyframes g-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.guide-live .is-active .g-in { transform-origin: left center; animation: g-grow .5s ease-out var(--d, 0s) both; }
.guide-live .is-active .g-fill { transform-origin: center bottom; }
.guide-live .is-active .g-fade { animation: g-fade .3s ease-out var(--d, 0s) both; }
.guide-live .is-active .g-pop { transform-origin: center; animation: g-pop .35s ease-out var(--d, 0s) both; }
.guide-live .is-active .g-draw { stroke-dasharray: 400; animation: g-draw 1.1s ease-out both; }
.guide-live .is-active .g-pulse { transform-origin: center; animation: g-pulse 1.2s ease-in-out 1.4s 2; }
.footer-bottom { padding-block: 1rem 2rem; font-size: .875rem; border-block-start: 1px solid #1f3550; }

@media (min-width: 480px) { .lang-menu summary span { display: inline; } }
@media (min-width: 640px) { .bar-actions .btn-primary { display: inline-flex; } .panel-start { display: none; } }
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .hide-small { display: inline-flex; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .mobile-menu { display: none; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (hover: hover) { .card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgb(15 34 56 / 12%); } }
.card:focus-within { transform: translateY(-3px); box-shadow: 0 10px 30px rgb(15 34 56 / 12%); }
/* Scroll reveal, CSS only. It needs a browser with scroll-driven animations; others simply show everything. Never under reduced motion. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(1.25rem); animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes reveal { to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } .card:hover { transform: none; } }

/* A long word (German "Datenschutzerklärung", "Nutzungsbedingungen") must wrap on a phone rather than push the page sideways. */
h1, h2, h3, summary { overflow-wrap: break-word; hyphens: auto; }

/* The hero loop and the promo video modal (M9). The loop is a still image with the video laid over it; under "reduce motion" only the still shows. Logical properties throughout, so right to left mirrors by itself. */
.hero-loop { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden; background: var(--footer-bg); box-shadow: 0 8px 40px rgb(15 34 56 / 14%); }
.hero-still, .hero-video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
html.promo-lock { overflow: hidden; }
.promo-modal { inline-size: min(64rem, calc(100vw - 1.5rem)); max-block-size: calc(100dvh - 1.5rem); padding: 0; border: 0; border-radius: var(--radius-card); background: #fff; color: var(--site-ink); overflow: auto; }
.promo-modal::backdrop { background: rgb(15 34 56 / 72%); }
.promo-box { padding: .75rem 1.25rem 1.25rem; }
.promo-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block-end: .5rem; }
.promo-head h2 { margin: 0; font-size: 1.25rem; }
.promo-close { inline-size: 44px; block-size: 44px; border: 1.5px solid var(--site-line); border-radius: var(--radius-control); background: #fff; color: var(--site-ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.promo-close:hover { background: var(--site-bg-soft); }
.promo-close:focus-visible, .promo-langs button:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 2px; }
.promo-stage { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--footer-bg); }
.promo-stage video { display: block; inline-size: 100%; block-size: 100%; object-fit: contain; background: var(--footer-bg); }
.promo-also { margin-block: 1rem .5rem; color: var(--site-ink-2); font-weight: 600; }
.promo-langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.promo-langs button { min-block-size: 44px; padding-inline: 1rem; border: 1.5px solid var(--site-line); border-radius: var(--radius-control); background: #fff; color: var(--site-ink); font: inherit; cursor: pointer; }
.promo-langs button:hover { background: var(--site-bg-soft); }
.promo-langs button[aria-pressed="true"] { border-color: var(--brand-blue); background: var(--tile); color: var(--brand-blue-strong); font-weight: 600; }
.feature-text .more { display: inline-block; margin-block-start: 1.25rem; }

/* Persian and Arabic heroes (2026-11-23): their lines are taller and wrap more, so the headline and spacing are tighter and the buttons and the trial line stay on the first screen of a 1366 x 800 desktop. */
:lang(fa) .hero, :lang(ar) .hero { padding-block-start: clamp(1.75rem, 3vw, 2.5rem); }
:lang(fa) .hero h1, :lang(ar) .hero h1 { font-size: clamp(2rem, 1.4vw + 1.5rem, 2.75rem); line-height: 1.2; margin-block-end: .75rem; }
:lang(fa) .hero .lead, :lang(ar) .hero .lead { font-size: 1.0625rem; line-height: 1.6; margin-block-end: 1rem; }
:lang(fa) .eyebrow, :lang(ar) .eyebrow { margin-block-end: .875rem; }
:lang(fa) .hero .hero-points, :lang(ar) .hero .hero-points { gap: .4rem; margin-block-end: 1.25rem; }
:lang(fa) .hero-points li, :lang(ar) .hero-points li { line-height: 1.5; }
/* A phone: the sticky header is 64 px tall, so the hero starts below it with room to spare; an in-page link lands below it too. */
@media (max-width: 759px) { .hero { padding-block-start: 3.25rem; } }
#features, #how { scroll-margin-block-start: 5rem; }
