/* ============================================================
   Ktavit — site styles (D-1001, D-1005)
   One stylesheet for RTL (he, ar) and LTR (en, ru): logical properties only
   (inline-start/end, padding-inline…), never left/right.
   Bump ?v= in components/head.html and @font-face on any change.
   ============================================================ */

/* ---------- Font (self-hosted, OFL-1.1, D-1010) ----------
   Heebo variable: Hebrew with nikud, Latin, digits, ₪ — one file, weights 100–900. */
@font-face {
  font-family: "Heebo";
  src: url("/assets/fonts/Heebo-Variable.woff2?v=20261113b") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --brand-900: #121A4F;    /* download band */
  --brand-700: #1E2A78;    /* primary buttons, logo mark */
  --brand-600: #2A3AA0;    /* links, hover */
  --brand-100: #E4E7F8;
  --brand-50:  #F2F3FC;    /* icon tiles */
  --mark: #FFD45C;         /* "בטא" marker */
  --mark-soft: #FFF1C2;

  /* Neutrals */
  --ink-900: #141B2D;      /* headings */
  --ink-700: #2E3850;      /* body */
  --ink-500: #5B6478;      /* muted */
  --ink-300: #A3A9B7;
  --line: #E6E2D8;
  --paper: #FBFAF6;        /* page */
  --paper-2: #F3F1EA;      /* footer, page mock */
  --white: #FFFFFF;

  /* States */
  --ok: #1F7A4D;
  --ok-bg: #E5F4EC;
  --err: #B42318;
  --err-bg: #FDECEA;

  /* Type */
  --font: "Heebo", system-ui, "Segoe UI", Arial, sans-serif;
  --fs-h1: clamp(2.4rem, 1.5rem + 3.4vw, 4.1rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 1.7vw, 2.75rem);
  --fs-lead: clamp(1.1rem, 1rem + .35vw, 1.3rem);

  /* Layout */
  --container: 1180px;
  --gutter: 20px;
  --section: clamp(64px, 8vw, 112px);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --header-h: 68px;
  --shadow: 0 1px 2px rgba(20, 27, 45, .05), 0 8px 24px rgba(20, 27, 45, .06);
  --shadow-lg: 0 2px 6px rgba(20, 27, 45, .06), 0 24px 60px rgba(30, 42, 120, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink-700);
  background: var(--paper);
  font-synthesis: none;           /* real weights only, never faked */
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; overflow-wrap: break-word; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; }
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -64px; z-index: 100;
  padding: 10px 16px; background: var(--brand-700); color: var(--white); border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- Headings ---------- */
.h2 { font-size: var(--fs-h2); line-height: 1.2; font-weight: 700; color: var(--ink-900); }
.section-head { max-width: 720px; margin-block-end: clamp(32px, 4vw, 52px); }
.section-head p { margin-block-start: 14px; font-size: var(--fs-lead); color: var(--ink-500); }
.section { padding-block: var(--section); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding-inline: 26px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 17px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--primary { background: var(--brand-700); color: var(--white); }
.btn--primary:hover { background: var(--brand-600); box-shadow: 0 8px 20px rgba(30, 42, 120, .25); }
.btn--ghost { background: transparent; color: var(--brand-700); border-color: var(--brand-100); }
.btn--ghost:hover { background: var(--brand-50); border-color: var(--brand-600); }
.btn--sm { min-height: 40px; padding-inline: 18px; font-size: 15px; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 999px; background: var(--mark-soft); color: var(--ink-900); font-size: 15px; font-weight: 500;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 3px rgba(255, 212, 92, .35); }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.6; white-space: nowrap; }
.chip--beta { background: var(--mark); color: var(--ink-900); }
.chip--soon { background: var(--paper-2); color: var(--ink-500); border: 1px solid var(--line); }

/* ============================================================
   Header — light, set apart by a white surface, a full-width underline and a soft shadow
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-block-end: 2px solid var(--brand-100);
  box-shadow: 0 4px 18px rgba(20, 27, 45, .06);
}
.nav { display: flex; align-items: center; gap: 36px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-900); }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  background: var(--brand-700); color: var(--white);
}
.brand-mark .icon { width: 36px; height: 36px; }
.brand-word { font-size: 26px; font-weight: 700; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-inline-end: auto; }
.nav-links > a, .dropdown-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px;
  color: var(--ink-700); font-size: 16px; font-weight: 500; transition: background-color .2s, color .2s;
}
.nav-links > a:hover, .dropdown-toggle:hover, .dropdown.is-open .dropdown-toggle { background: var(--brand-50); color: var(--brand-700); }
.nav-links a[aria-current="page"] { color: var(--brand-700); box-shadow: inset 0 -3px 0 var(--mark); border-radius: 8px 8px 0 0; }
.dropdown-toggle .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.dropdown.is-open .dropdown-toggle .icon { transform: rotate(180deg); }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; inset-block-start: calc(100% + 10px); inset-inline-start: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 540px; padding: 12px;
  background: var(--white); color: var(--ink-900); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.dropdown-menu::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: -12px; height: 12px; } /* hover bridge */
.dropdown.is-open .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius); }
.dropdown-menu a:hover, .dropdown-menu a[aria-current="page"] { background: var(--brand-50); }
.dropdown-menu .tile { width: 40px; height: 40px; border-radius: 10px; }
.dropdown-menu .tile .icon { width: 22px; height: 22px; }
.dropdown-menu b { display: block; font-weight: 600; }
.dropdown-menu small { display: block; font-size: 14px; color: var(--ink-500); }
.dropdown-menu .dropdown-all { grid-column: 1 / -1; justify-content: center; padding: 10px; border-block-start: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); color: var(--brand-600); font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; border-radius: var(--radius-sm); color: var(--ink-900); }
.nav-toggle .icon { width: 24px; height: 24px; }
.mobile-menu {
  display: flex; flex-direction: column; gap: 2px; padding: 8px var(--gutter) 20px;
  border-block-start: 1px solid var(--line); background: var(--white);
}
.mobile-menu a:not(.btn) { padding: 12px 4px; font-size: 18px; color: var(--ink-700); border-block-end: 1px solid var(--line); }
.mobile-menu a[aria-current="page"] { color: var(--brand-700); }
.mobile-apps { display: grid; grid-template-columns: 1fr 1fr; padding-inline-start: 12px; }
.mobile-apps a:not(.btn) { font-size: 16px; padding: 10px 4px; }
.mobile-menu .btn { margin-block-start: 14px; }

/* ============================================================
   Hero — the message is "free", the picture is the real programs
   ============================================================ */
.hero { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr); align-items: center; gap: clamp(28px, 3.5vw, 56px); padding-block: clamp(40px, 5vw, 80px) var(--section); }
.hero h1 { margin-block: 16px 18px; font-size: clamp(1.75rem, 1rem + 3vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: var(--ink-900); }
.hero h1 .h1-line { display: block; white-space: nowrap; }
.hero h1 .free { display: block; margin-block-start: .08em; font-size: 1.25em; color: var(--brand-700); }
.hero .hero-lead { font-size: 1.08rem; }
.hero .free-list { font-size: 15px; }
.mark { background: linear-gradient(transparent 62%, var(--mark) 62%, var(--mark) 92%, transparent 92%); padding-inline: .06em; }
.hero-lead { max-width: 36ch; font-size: var(--fs-lead); color: var(--ink-500); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-block-start: 18px; font-size: 15px; color: var(--ink-500); }
.hero-note .icon { width: 18px; height: 18px; }
.free-list { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-block-start: 22px; font-size: 16px; color: var(--ink-700); }
.free-list li { display: inline-flex; align-items: center; gap: 6px; }
.free-list .icon { width: 18px; height: 18px; color: var(--ok); }

/* Screenshot carousel */
.shots { min-width: 0; }
.shots-stage { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; isolation: isolate; background: #1B1E27; box-shadow: 0 0 0 1px rgba(20, 27, 45, .14), var(--shadow-lg); }
.shot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s var(--ease); }
.shot.is-active { opacity: 1; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: inherit; }
.shot { border-radius: inherit; overflow: hidden; }
.shots-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-block-end: 14px; }
.shots-tabs button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-500);
  background: transparent; border: 1px solid var(--line); transition: background-color .2s, color .2s, border-color .2s;
}
.shots-tabs button:hover { color: var(--ink-900); border-color: var(--ink-300); }
.shots-tabs button[aria-selected="true"] { background: var(--brand-700); border-color: var(--brand-700); color: var(--white); }
@media (prefers-reduced-motion: reduce) { .shot { transition: none; } }

/* ============================================================
   Apps
   ============================================================ */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-card {
  display: flex; flex-direction: column; gap: 12px; padding: 26px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.app-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand-700); }
.tile .icon { width: 28px; height: 28px; }
.app-card h3 { font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--ink-900); }
.app-card p { color: var(--ink-700); }
.app-formats { margin-block-start: auto; padding-block-start: 6px; font-size: 14px; color: var(--ink-500); }
.app-formats b { font-weight: 600; color: var(--ink-700); }
.app-more { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-600); font-weight: 500; }
a.app-card { color: inherit; }
a.app-card:hover .app-more { text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   Why
   ============================================================ */
.why { background: var(--white); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); }
.why-item .tile { margin-block-end: 18px; background: var(--mark-soft); color: var(--ink-900); }
.why-item h3 { font-size: 21px; line-height: 1.3; font-weight: 600; color: var(--ink-900); margin-block-end: 8px; }
.why-item p { color: var(--ink-500); }

/* ============================================================
   Download
   ============================================================ */
.download { background: var(--brand-900); color: #D9DDF5; }
.download .h2 { color: var(--white); }
.download .section-head p { color: #B9BFE6; }
.dl-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: stretch; }
.dl-card {
  display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
}
.dl-card h3 { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 600; color: var(--white); }
.dl-card h3 .icon { width: 28px; height: 28px; }
.dl-card .btn { align-self: start; margin-block-start: 6px; }
.dl-meta { font-size: 15px; color: #B9BFE6; }
.dl-main h3 .icon { width: 32px; height: 32px; padding: 2px; border-radius: 8px; background: var(--white); color: var(--brand-700); }
.btn--mark { background: var(--mark); color: var(--ink-900); }
.btn--mark:hover { background: #FFDF85; box-shadow: 0 8px 24px rgba(255, 212, 92, .25); }
.btn--line { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn--line:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.dl-list { display: grid; }
.dl-list li { display: flex; align-items: center; gap: 12px; min-height: 56px; border-block-end: 1px solid rgba(255, 255, 255, .1); }
.dl-list li:last-child { border-block-end: 0; }
.dl-list li > span:first-of-type { flex: 1; font-weight: 500; color: var(--white); }
.dl-list .icon { width: 22px; height: 22px; color: #B9BFE6; }
.chip--soon-dark { padding-inline: 14px; background: transparent; color: #B9BFE6; border: 1px dashed rgba(255, 255, 255, .3); }
.dl-beta { margin-block-start: 28px; max-width: 760px; font-size: 15px; color: #B9BFE6; }
.dl-beta strong { font-weight: 600; color: var(--mark); }

/* ============================================================
   Cloud + waitlist form
   ============================================================ */
.cloud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cloud-list { display: grid; gap: 14px; margin-block-start: 26px; }
.cloud-list li { display: flex; gap: 12px; align-items: flex-start; }
.cloud-list .icon { width: 22px; height: 22px; margin-block-start: 4px; color: var(--brand-600); }
.form-card { padding: clamp(24px, 3vw, 36px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-card h3 { font-size: 22px; font-weight: 600; color: var(--ink-900); margin-block-end: 18px; }
.field { display: grid; gap: 8px; margin-block-end: 16px; }
.field label { font-size: 15px; color: var(--ink-900); }
.field input {
  width: 100%; min-height: 50px; padding-inline: 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--paper); font-size: 17px; text-align: start;
}
.field input:focus { outline: 3px solid var(--brand-100); border-color: var(--brand-600); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-block-end: 20px; font-size: 15px; color: var(--ink-700); }
.consent input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--brand-700); }
.form-card .btn { width: 100%; }
.form-note { margin-block-start: 14px; font-size: 14px; color: var(--ink-500); }
.form-status { margin-block-start: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15px; }
.form-status:empty { display: none; }
.form-status.is-ok { background: var(--ok-bg); color: var(--ok); }
.form-status.is-err { background: var(--err-bg); color: var(--err); }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--white); border-block-start: 1px solid var(--line); }
.faq-list { max-width: 820px; border-block-start: 1px solid var(--line); }
.faq-list details { border-block-end: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 20px; font-size: 19px; font-weight: 500; color: var(--ink-900); cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 22px; height: 22px; color: var(--ink-500); transition: transform .2s var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list details p { padding-block-end: 22px; max-width: 70ch; color: var(--ink-700); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--paper-2); border-block-start: 1px solid var(--line); padding-block: 56px 28px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin-block-start: 14px; color: var(--ink-500); }
.footer-col h2 { font-size: 15px; font-weight: 600; color: var(--ink-500); margin-block-end: 12px; }
.footer-col li + li { margin-block-start: 8px; }
.footer-col a { color: var(--ink-700); }
.footer-col a:hover { color: var(--brand-700); text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-legal { margin-block-start: 40px; padding-block-start: 24px; border-block-start: 1px solid var(--line); color: var(--ink-500); font-size: 14px; }
.footer-legal a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-block-start: 28px; color: var(--ink-500); font-size: 14px; }

/* ============================================================
   404
   ============================================================ */
.notfound { padding-block: clamp(80px, 12vw, 160px); text-align: center; }
.notfound h1 { font-size: var(--fs-h2); font-weight: 700; color: var(--ink-900); margin-block: 16px 14px; }
.notfound .code { font-size: 64px; line-height: 1; color: var(--brand-100); }
.notfound p { color: var(--ink-500); }
.notfound .hero-ctas { justify-content: center; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1040px) {
  .hero, .app-hero-grid { grid-template-columns: 1fr; }
  .hero-lead { max-width: 46ch; }
  .why-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .nav-actions { margin-inline-start: auto; }
}
@media (max-width: 860px) {
  .dl-grid, .cloud-grid, .split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .apps-grid, .why-grid, .feature-grid, .other-apps { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .license-table th, .license-table td { padding: 10px 8px; font-size: 14px; }
}

/* Inline text links */
.link { color: var(--brand-600); text-decoration: underline; text-decoration-color: var(--brand-100); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--brand-600); }

/* ============================================================
   Inner pages: page head, app pages, features, licenses
   ============================================================ */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-500); margin-block-end: 20px; }
.crumbs a { color: var(--brand-600); }
.crumbs a:hover { text-decoration: underline; }
.page-head { padding-block: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 48px); }
.page-head h1 { margin-block: 14px 16px; font-size: var(--fs-h1); line-height: 1.1; font-weight: 800; color: var(--ink-900); }
.page-head .hero-lead { max-width: 52ch; }
.app-hero-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.app-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tile--lg { width: 64px; height: 64px; border-radius: 16px; }
.tile--lg .icon { width: 34px; height: 34px; }
.app-shot { margin: 0; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; isolation: isolate; background: #1B1E27; box-shadow: 0 0 0 1px rgba(20, 27, 45, .14), var(--shadow-lg); }
.app-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: inherit; }
.formats { margin-block-start: 18px; font-size: 15px; color: var(--ink-500); }
.formats b { font-weight: 600; color: var(--ink-700); }
.soon-note { margin-block-start: 14px; font-size: 15px; color: var(--ink-500); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.feature { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.feature h3 { font-size: 20px; font-weight: 600; color: var(--ink-900); margin-block-end: 8px; }
.feature p { color: var(--ink-700); }
.other-apps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.other-apps a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); font-weight: 500; color: var(--ink-900); transition: box-shadow .2s, transform .2s; }
.other-apps a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 26px; font-weight: 700; color: var(--ink-900); margin-block: 36px 12px; }
.prose h2:first-child { margin-block-start: 0; }
.prose p + p, .prose p + ul, .prose ul + p { margin-block-start: 12px; }
.prose ul { list-style: disc; padding-inline-start: 22px; }
.prose li + li { margin-block-start: 6px; }
.license-table { width: 100%; border-collapse: collapse; margin-block: 8px 4px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.license-table th, .license-table td { padding: 12px 14px; text-align: start; border-block-end: 1px solid var(--line); vertical-align: top; }
.license-table th { font-weight: 600; color: var(--ink-900); background: var(--paper-2); }
.cta-band { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--brand-900); color: #D9DDF5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { font-size: 28px; font-weight: 700; color: var(--white); }
.cta-band p { margin-block-start: 6px; color: #B9BFE6; }
.section-more { margin-block-start: 28px; font-size: 17px; }
.cta-band .badge { margin-block-end: 10px; }
.cta-band--light { background: var(--brand-50); color: var(--ink-700); border: 1px solid var(--brand-100); }
.cta-band--light h2 { color: var(--ink-900); }
.cta-band--light p { color: var(--ink-500); }
.prose .cloud-list { list-style: none; padding: 0; }

/* Responsive rules for the inner-page blocks above (they must come after them) */
@media (max-width: 1040px) {
  .app-hero-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .other-apps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .feature-grid, .other-apps { grid-template-columns: 1fr; }
  .other-apps a { flex-direction: row; justify-content: flex-start; text-align: start; }
}

/* ============================================================
   Program colours (D-1013) — the same as the program icons in the builds
   ============================================================ */
.app-write  { --app: #2563EB; --app-soft: #E7EEFD; --app-ink: #1D4FC4; }
.app-pdf    { --app: #DC2626; --app-soft: #FDEBEB; --app-ink: #B91C1C; }
.app-sheets { --app: #16A34A; --app-soft: #E6F6EC; --app-ink: #12813A; }
.app-slides { --app: #EA580C; --app-soft: #FDEEE5; --app-ink: #C2410C; }
.app-photos { --app: #7C3AED; --app-soft: #F0E9FD; --app-ink: #6D28D9; }
.app-mail   { --app: #0891B2; --app-soft: #E2F4F8; --app-ink: #0E7490; }
[class*="app-"] .tile { background: var(--app-soft, var(--brand-50)); color: var(--app, var(--brand-700)); }
a.app-card[class*="app-"]:hover { border-color: var(--app); }
a.app-card[class*="app-"] .app-more { color: var(--app-ink); }
.other-apps a[class*="app-"]:hover { border-color: var(--app); }
.dropdown-menu a[class*="app-"]:hover, .dropdown-menu a[class*="app-"][aria-current="page"] { background: var(--app-soft); }
.shots-tabs button[class*="app-"][aria-selected="true"] { background: var(--app); border-color: var(--app); }
.dl-list li[class*="app-"] .icon { color: var(--app-soft); }

/* A program's own page takes its colour */
.app-page .page-head { background: linear-gradient(to bottom, var(--app-soft), var(--paper) 85%); max-width: none; padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2)); }
.app-page .crumbs a { color: var(--app-ink); }
.app-page .btn--primary { background: var(--app); }
.app-page .btn--primary:hover { background: var(--app-ink); box-shadow: 0 8px 20px color-mix(in srgb, var(--app) 30%, transparent); }
.app-page .btn--ghost { color: var(--app-ink); border-color: color-mix(in srgb, var(--app) 35%, transparent); }
.app-page .btn--ghost:hover { background: var(--app-soft); border-color: var(--app); }
.app-page .feature { border-block-start: 3px solid var(--app); }
.app-page .formats b, .app-page h1 { color: var(--ink-900); }
.shots-tabs .icon { width: 18px; height: 18px; color: var(--app, var(--brand-700)); transition: color .2s; }
.shots-tabs button[aria-selected="true"] .icon { color: var(--white); }

/* First screen sits on its own band, so the next section reads as a new floor */
.hero-band { background: linear-gradient(to bottom, var(--white) 0%, var(--brand-50) 100%); border-block-end: 1px solid var(--brand-100); }

/* Text pages: the first section follows the page head closely */
.page-head + .section:not(.why) { padding-block-start: clamp(8px, 2vw, 24px); }

/* ============================================================
   /free — "why is it free"
   ============================================================ */
.free-head-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.stat-grid { display: grid; gap: 14px; }
.stat { display: grid; gap: 4px; padding: 22px 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat-num { font-size: clamp(28px, 2.4vw + 12px, 44px); font-weight: 800; line-height: 1.1; }
.stat-label { color: var(--ink-500); }
.stat--out .stat-num { color: #B42318; }
.stat--in { border-color: var(--brand-100); }
.stat--in .stat-num { color: var(--brand-700); }
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.compare-card { padding: 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.compare-card h3 { font-size: 22px; font-weight: 700; color: var(--ink-900); margin-block: 12px 14px; }
.compare-card ul { display: grid; gap: 10px; }
.compare-card li { position: relative; padding-inline-start: 26px; }
.compare-card li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; }
.compare-card--out { background: #FFF7F6; border-color: #F6D5D1; }
.compare-card--out li::before { background: #E8A39B; }
.compare-card--in { background: var(--brand-50); border-color: var(--brand-100); box-shadow: var(--shadow); }
.compare-card--in li::before { background: var(--mark); box-shadow: 0 0 0 3px rgba(255, 212, 92, .35); }
.compare-tag { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--white); border: 1px solid var(--line); color: var(--ink-700); }
.compare-card--in .compare-tag { background: var(--brand-700); border-color: var(--brand-700); color: var(--white); }
.compare-arrow { display: grid; place-items: center; color: var(--brand-600); }
.compare-arrow .icon { width: 36px; height: 36px; }
.feature .tile { margin-block-end: 14px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { padding: 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.plan .tile { margin-block-end: 14px; }
.plan h3 { font-size: 20px; font-weight: 600; color: var(--ink-700); }
.plan-price { margin-block: 4px 10px; font-size: 30px; font-weight: 800; color: var(--brand-700); }
@media (max-width: 860px) {
  .free-head-grid, .plans { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare-arrow .icon { transform: rotate(-90deg); }
}
