/* =====================================================================
   Rastra marketing site — site.css
   Tokens copied from brand/tokens/rastra-tokens.css (v1). If the brand
   tokens change, update the :root block below from that file.
   ===================================================================== */

:root {
  --rastra-vermilion-50: #FEF2F0;
  --rastra-vermilion-100: #FFE2DC;
  --rastra-vermilion-200: #FEC9BF;
  --rastra-vermilion-300: #FEA796;
  --rastra-vermilion-400: #FE806A;
  --rastra-vermilion-500: #FF563D;
  --rastra-vermilion-600: #DE3F29;
  --rastra-vermilion-700: #C0361A;
  --rastra-vermilion-800: #961F0E;
  --rastra-vermilion-900: #71170A;
  --rastra-vermilion-950: #4D0F07;
  --rastra-neutral-0: #FFFFFF;
  --rastra-neutral-50: #F7F5EF;
  --rastra-neutral-100: #EAE7E3;
  --rastra-neutral-200: #D6D4D1;
  --rastra-neutral-300: #BDB9B9;
  --rastra-neutral-400: #9E9A9D;
  --rastra-neutral-500: #767178;
  --rastra-neutral-600: #615B64;
  --rastra-neutral-700: #49424D;
  --rastra-neutral-800: #342D39;
  --rastra-neutral-900: #201926;
  --rastra-neutral-950: #130C19;
  --rastra-success-text: #016E30;
  --rastra-error-bg: #FEEBED;
  --rastra-error-text: #A31A48;
  --rastra-info-base: #498BDC;
  --rastra-info-bg: #E7F1FF;
  --rastra-info-text: #215B9F;
  --rastra-font-display: 'Outfit', 'Estedad', sans-serif;
  --rastra-font-ui: 'Inter', 'Estedad', system-ui, sans-serif;
  --rastra-font-fa: 'Estedad', 'Inter', system-ui, sans-serif;
  --rastra-font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --rastra-radius-xs: 2px;
  --rastra-radius-sm: 4px;
  --rastra-radius-md: 6px;
  --rastra-radius-lg: 8px;

  /* site aliases */
  --ink: var(--rastra-neutral-900);
  --ink-2: var(--rastra-neutral-800);
  --paper: var(--rastra-neutral-50);
  --white: var(--rastra-neutral-0);
  --line: var(--rastra-neutral-200);
  --line-strong: var(--rastra-neutral-300);
  --muted: var(--rastra-neutral-600);
  --verm: var(--rastra-vermilion-500);
  --verm-deep: var(--rastra-vermilion-600);
  --verm-text: var(--rastra-vermilion-700);
  --select: var(--rastra-info-base);

  --wrap: 1200px;
  --gutter: 16px;
  --sec-pad: 72px;
  --header-h: 64px;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; --sec-pad: 112px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--rastra-font-ui);
  font-size: 17px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--rastra-font-fa);
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 .5em;
  letter-spacing: 0;
}
h1 { font-size: clamp(38px, 7.2vw, 76px); line-height: 1.32; }
h2 { font-size: clamp(28px, 4.4vw, 49px); line-height: 1.4; }
h3 { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.5; }
h4 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--verm-text); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 600; }
code, kbd, .mono { font-family: var(--rastra-font-mono); font-size: .88em; }
.en { font-family: var(--rastra-font-display); }
.ltr { direction: ltr; unicode-bidi: isolate; }
ul, :where(ol.problems, ol.flow, ol.footnotes, .dodont) { padding: 0; margin: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--rastra-radius-xs);
}
.sec--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--paper); }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 16px; border-radius: var(--rastra-radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px;
  font: 600 16px/1.4 var(--rastra-font-ui);
  border: 2px solid transparent; border-radius: var(--rastra-radius-sm);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn--primary { background: var(--verm); color: var(--ink); border-color: var(--verm); }
.btn--primary:hover { background: var(--verm-deep); border-color: var(--verm-deep); color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ink:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.sec--dark .btn--ghost { color: var(--paper); border-color: var(--paper); }
.sec--dark .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--sm { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.btn--block { width: 100%; }
.btn .px { width: 8px; height: 8px; background: currentColor; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand-link { display: inline-flex; align-items: center; flex: none; }
.brand-link svg { display: block; width: 128px; height: auto; }
.nav-main { margin-inline-start: auto; }
.nav-main ul { display: flex; gap: 4px; }
.nav-main a, .nav-mobile a {
  display: block; padding: 8px 12px; color: var(--ink); text-decoration: none;
  font-weight: 500; font-size: 15px; border-radius: var(--rastra-radius-sm);
}
.nav-main a:hover { background: var(--rastra-neutral-100); }
.nav-main a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--verm); border-radius: 0; }
.header-cta { flex: none; }
.nav-mobile { display: none; margin-inline-start: auto; position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 6px 12px; border: 2px solid var(--ink); border-radius: var(--rastra-radius-sm);
  font-weight: 600; font-size: 15px;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary .bars { display: grid; gap: 3px; }
.nav-mobile summary .bars i { display: block; width: 14px; height: 2px; background: var(--ink); }
.nav-mobile ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 220px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--rastra-radius-md);
  padding: 8px; box-shadow: 0 8px 0 -4px var(--ink);
}
.nav-mobile li + li { border-top: 1px solid var(--rastra-neutral-100); }
.nav-mobile a { padding: 12px; }
@media (max-width: 960px) {
  .nav-main { display: none; }
  .nav-mobile { display: block; }
}
@media (max-width: 420px) {
  .header-cta { display: none; }
  .brand-link svg { width: 112px; }
}

/* ---------- sections ---------- */
.sec { padding-block: var(--sec-pad); position: relative; }
.sec--paper { background: var(--paper); }
.sec--white { background: var(--white); border-block: 1px solid var(--line); }
.sec--accent { background: var(--verm); color: var(--ink); overflow: hidden; }
.sec--dark { background: var(--ink); color: var(--paper); overflow: hidden; }
.sec--accent a:not(.btn) { color: var(--ink); }
.sec--dark a:not(.btn) { color: var(--rastra-vermilion-400); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0; margin-bottom: 16px; color: var(--muted);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--verm); flex: none; }
.sec--accent .eyebrow { color: var(--ink); }
.sec--accent .eyebrow::before { background: var(--ink); }
.sec--dark .eyebrow { color: var(--rastra-neutral-300); }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head p { font-size: 19px; color: var(--muted); }
.sec--dark .sec-head p { color: var(--rastra-neutral-300); }
.sec--accent .sec-head p { color: var(--ink); }

/* giant stepped r */
.giant-r { position: absolute; pointer-events: none; display: block; }
.giant-r path { fill: currentColor; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 88px 104px; }
.hero .giant-r { color: var(--ink); height: 104%; width: auto; left: -3%; bottom: -16%; }
.hero__copy { position: relative; max-width: 660px; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.75; font-weight: 600; max-width: 34ch; }
.hero .sub { font-size: 17px; max-width: 46ch; }
.hero .en { margin-top: 40px; font-size: 20px; font-weight: 600; text-align: right; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border: 2px solid currentColor; border-radius: var(--rastra-radius-xs);
  font-size: 14px; font-weight: 600; margin-bottom: 24px;
}
.tag .dot { width: 8px; height: 8px; background: currentColor; }
@media (max-width: 1100px) {
  .hero { padding-bottom: 300px; }
  .hero .giant-r { height: 340px; left: -40px; bottom: -70px; }
}
@media (max-width: 560px) {
  .hero { padding-block: 56px 230px; }
  .hero .giant-r { height: 250px; left: -30px; bottom: -50px; }
  .hero .actions .btn { width: 100%; }
}

/* ---------- problem ---------- */
.problems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.problem { padding: 28px 24px 8px 0; }
.problem + .problem { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.problem__n { font: 800 40px/1 var(--rastra-font-fa); color: var(--verm-text); margin-bottom: 20px; display: block; }
.problem h3 { font-size: 20px; }
.problem p { color: var(--muted); font-size: 16px; }
@media (max-width: 960px) {
  .problems { grid-template-columns: 1fr 1fr; }
  .problem:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .problem:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .problems { grid-template-columns: 1fr; }
  .problem, .problem + .problem { border-inline-start: 0; padding-inline-start: 0; padding-inline-end: 0; }
  .problem + .problem { border-top: 1px solid var(--line); }
}

/* ---------- editor mock ---------- */
.editor {
  margin: 0 0 56px; border: 2px solid var(--ink); border-radius: var(--rastra-radius-lg);
  background: var(--rastra-neutral-100); overflow: hidden; box-shadow: 8px 8px 0 var(--verm);
  font-size: 13px; line-height: 1.6;
}
.editor__bar {
  direction: ltr; display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  background: var(--ink); color: var(--paper);
}
.editor__bar .sym { width: 18px; height: 22px; flex: none; }
.editor__bar .sym path { fill: var(--verm); }
.tools { display: flex; gap: 4px; }
.tools span {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--rastra-radius-sm);
  font: 500 12px/1 var(--rastra-font-mono); color: var(--rastra-neutral-300);
}
.tools span.on { background: var(--select); color: var(--white); }
.editor__file { flex: 1; text-align: center; direction: rtl; font-size: 13px; color: var(--rastra-neutral-300); }
.editor__file b { color: var(--paper); font-weight: 600; }
.editor__share { background: var(--verm); color: var(--ink); font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: var(--rastra-radius-sm); direction: rtl; }
.editor__body { direction: ltr; display: grid; grid-template-columns: 200px 1fr 220px; min-height: 420px; }
.panel { background: var(--white); direction: rtl; padding: 12px; }
.panel--layers { border-right: 1px solid var(--line); }
.panel--props { border-left: 1px solid var(--line); }
.panel__title { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.layers li { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: var(--rastra-radius-sm); }
.layers li.child { padding-inline-start: 24px; }
.layers li.sel { background: var(--rastra-info-bg); color: var(--rastra-info-text); font-weight: 600; }
.layers .ic { font-family: var(--rastra-font-mono); font-size: 12px; color: var(--muted); width: 14px; text-align: center; }
.layers li.sel .ic { color: var(--rastra-info-text); }
.prop-group { border-bottom: 1px solid var(--rastra-neutral-100); padding-bottom: 10px; margin-bottom: 10px; }
.prop-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 3px 0; }
.prop-row .k { color: var(--muted); }
.prop-row .v { font-family: var(--rastra-font-mono); font-size: 12px; background: var(--rastra-neutral-100); padding: 1px 8px; border-radius: var(--rastra-radius-xs); }
.prop-row .v.fa { font-family: var(--rastra-font-ui); }
.swatch { display: inline-block; width: 12px; height: 12px; background: var(--verm); vertical-align: -2px; margin-inline-end: 6px; border-radius: 2px; }
.editor__canvas {
  position: relative; display: grid; place-items: center; padding: 32px 16px;
  background-color: var(--rastra-neutral-100);
  /* square pixel dot grid (not a gradient) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='2' height='2' fill='%23BDB9B9'/%3E%3C/svg%3E");
}
.phone {
  direction: rtl; width: 280px; background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--rastra-radius-lg); padding: 20px 16px; font-family: var(--rastra-font-fa);
}
.phone__label { position: absolute; transform: translateY(-38px); font-size: 12px; color: var(--muted); }
.phone small { display: block; color: var(--muted); font-size: 12px; }
.phone h4 { font-size: 20px; font-weight: 800; margin: 2px 0 14px; }
.ph-card { position: relative; background: var(--verm); color: var(--ink); padding: 14px; border-radius: var(--rastra-radius-md); margin-bottom: 14px; }
.ph-card b { display: block; font-size: 15px; }
.ph-card span { font-size: 13px; }
.ph-card::after { content: ""; position: absolute; inset: -5px; border: 2px solid var(--select); border-radius: 2px; pointer-events: none; }
.sel-tag {
  position: absolute; bottom: -27px; left: 50%; transform: translateX(-50%);
  background: var(--select); color: var(--white); font: 500 12px/1 var(--rastra-font-mono);
  padding: 4px 6px; border-radius: 2px; direction: ltr; white-space: nowrap; z-index: 1;
}
.ph-list { margin-top: 26px; }
.ph-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ph-list .box { width: 14px; height: 14px; border: 2px solid var(--ink); flex: none; }
.ph-list .box.done { background: var(--ink); }
.ph-btn { margin-top: 14px; background: var(--ink); color: var(--paper); text-align: center; padding: 9px; border-radius: var(--rastra-radius-sm); font-size: 14px; font-weight: 600; }
.editor__caption { padding: 10px 16px; font-size: 13px; color: var(--muted); background: var(--white); border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .editor__body { grid-template-columns: 1fr; }
  .panel--layers, .panel--props { display: none; }
  .tools span:nth-child(n+4) { display: none; }
  .editor { box-shadow: 6px 6px 0 var(--verm); margin-inline-end: 6px; }
}
@media (max-width: 420px) {
  .editor__file { display: none; }
  .editor__bar { justify-content: space-between; }
  .phone { width: 100%; max-width: 280px; }
}

/* ---------- feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feature {
  grid-column: span 2; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--rastra-radius-md); padding: 28px; display: flex; flex-direction: column;
}
.feature--wide { grid-column: span 3; }
.feature h3 { display: flex; align-items: flex-start; gap: 12px; }
.feature p { color: var(--muted); font-size: 16px; }
.feature .note { font-size: 14px; border-top: 1px dashed var(--line-strong); padding-top: 12px; margin-top: auto; margin-bottom: 0; }
.f-ico { width: 28px; height: 28px; flex: none; margin-top: 6px; }
.f-ico rect, .f-ico path { fill: var(--verm); }
.f-ico .ink { fill: var(--ink); }
.kbds { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; direction: ltr; justify-content: flex-end; }
.kbds li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); direction: rtl; }
kbd {
  display: inline-block; min-width: 28px; text-align: center; padding: 2px 7px;
  border: 1px solid var(--ink); border-bottom-width: 3px; border-radius: var(--rastra-radius-sm);
  background: var(--white); color: var(--ink); font-size: 13px; line-height: 1.5; direction: ltr;
}
.mirror { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; direction: ltr; justify-content: flex-end; }
.mirror__f { width: 92px; border: 1px solid var(--ink); border-radius: var(--rastra-radius-sm); padding: 8px; background: var(--white); display: grid; gap: 5px; }
.mirror__f i { display: block; height: 8px; background: var(--rastra-neutral-300); }
.mirror__f i.a { background: var(--verm); width: 60%; }
.mirror__f i.s { width: 80%; }
.mirror__f.rtl i { justify-self: end; }
.mirror__arrow { font: 500 13px/1 var(--rastra-font-mono); color: var(--muted); }
.mirror__lab { font: 500 12px/1 var(--rastra-font-mono); color: var(--muted); text-align: center; margin-top: 4px; }
.filechip { direction: ltr; align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; margin: 4px 0 16px; }
.filechip span { font: 500 13px/1 var(--rastra-font-mono); padding: 8px 10px; border: 1px solid var(--ink); border-radius: var(--rastra-radius-sm); background: var(--white); direction: ltr; }
.filechip span.to { background: var(--verm); border-color: var(--verm); color: var(--ink); }
.filechip b { font-family: var(--rastra-font-mono); font-weight: 500; color: var(--muted); }
@media (max-width: 960px) {
  .features { grid-template-columns: 1fr 1fr; }
  .feature, .feature--wide { grid-column: span 1; }
  .feature:last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .feature, .feature--wide, .feature:last-child { grid-column: auto; padding: 22px; }
}

/* ---------- enterprise (dark) ---------- */
.ent { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; position: relative; }
.ent__intro p { color: var(--rastra-neutral-300); font-size: 19px; }
.specs { border-top: 1px solid var(--ink-2); }
.spec { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rastra-neutral-800); }
.spec dt { font-weight: 600; display: flex; gap: 12px; align-items: baseline; }
.spec dt::before { content: ""; width: 8px; height: 8px; background: var(--verm); flex: none; transform: translateY(-2px); }
.spec dd { margin: 0; color: var(--rastra-neutral-300); font-size: 16px; }
.spec dd .ltr { color: var(--paper); }
.ent-pattern { position: absolute; right: -24px; bottom: -90px; width: 380px; transform: scaleX(-1); pointer-events: none; }
.ent-pattern rect, .ent-pattern path { fill: var(--rastra-neutral-800); }
.ent .actions { margin-top: 28px; }
.doc-note { font-size: 15px; margin-top: 20px; color: var(--rastra-neutral-300); }
@media (max-width: 960px) {
  .ent { grid-template-columns: 1fr; gap: 32px; }
  .ent-pattern { display: none; }
}
@media (max-width: 560px) {
  .spec { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- sharing / Rastra Link ---------- */
.flow { display: grid; grid-template-columns: 1fr 64px 1fr 64px 1fr; align-items: stretch; margin-bottom: 40px; }
.node { border: 2px solid var(--ink); border-radius: var(--rastra-radius-md); padding: 24px; background: var(--white); position: relative; }
.node--out { background: var(--paper); border-style: dashed; }
.node__step { font: 800 14px/1 var(--rastra-font-fa); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--ink); color: var(--paper); margin-bottom: 16px; }
.node--mid .node__step { background: var(--verm); color: var(--ink); }
.node h3 { font-size: 20px; }
.node p { font-size: 16px; color: var(--muted); margin: 0; }
.node .where { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.link-arrow { display: grid; place-items: center; }
.link-arrow svg { width: 40px; height: 16px; transform: scaleX(-1); } /* flow runs right-to-left */
.link-arrow rect { fill: var(--ink); }
.honest {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  border: 2px solid var(--ink); border-radius: var(--rastra-radius-md); padding: 24px; background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
}
.honest h3 { font-size: 20px; margin-bottom: 8px; }
.honest p { margin: 0; color: var(--ink); }
.honest p + p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.honest__ico { width: 36px; height: 36px; }
.honest__ico rect { fill: var(--verm); }
.honest__ico .ink { fill: var(--ink); }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; }
  .link-arrow { height: 48px; }
  .link-arrow svg { transform: rotate(90deg); }
}
@media (max-width: 560px) {
  .honest { grid-template-columns: 1fr; gap: 12px; box-shadow: 4px 4px 0 var(--ink); margin-inline-end: 4px; }
}

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--rastra-radius-md);
  padding: 28px; display: flex; flex-direction: column;
}
.plan--pro { border: 2px solid var(--ink); box-shadow: 0 -8px 0 var(--verm) inset, 0 0 0 0 transparent; position: relative; }
.plan--pro::before { content: ""; position: absolute; top: -2px; inset-inline: -2px; height: 8px; background: var(--verm); border-radius: var(--rastra-radius-md) var(--rastra-radius-md) 0 0; }
.plan--pro { box-shadow: none; }
.plan__name { font: 800 22px/1.5 var(--rastra-font-fa); margin: 0 0 4px; }
.plan__for { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.plan__price { font: 800 32px/1.3 var(--rastra-font-fa); margin: 0; }
.plan__price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.plan__bill { font-size: 14px; color: var(--muted); margin: 4px 0 24px; min-height: 1.6em; }
.plan ul { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 28px; flex: 1; }
.plan li { position: relative; padding: 6px 0; padding-inline-start: 18px; font-size: 16px; line-height: 1.7; }
.plan li::before { content: ""; position: absolute; inset-inline-start: 0; top: calc(6px + .62em); width: 8px; height: 8px; background: var(--verm); }
.plan li.lead-in { font-weight: 600; }
.plan li.lead-in::before { background: var(--ink); }
.ph { color: var(--verm-text); font-weight: 600; } /* placeholder marker */
.sec--accent .ph, .sec--dark .ph, .site-footer .ph { color: inherit; text-decoration: underline dotted; }
.promise { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }
.promise p { margin: 0; max-width: 70ch; color: var(--muted); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font: 600 18px/1.6 var(--rastra-font-fa);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 16px; height: 16px; flex: none; position: relative; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; background: var(--ink); }
.faq summary .pm::before { inset: 7px 0; }
.faq summary .pm::after { inset: 0 7px; }
.faq details[open] summary .pm::after { display: none; }
.faq details[open] summary .pm::before { background: var(--verm-text); }
.faq .ans { padding: 0 0 20px; color: var(--muted); max-width: 64ch; }
.faq .ans p:last-child { margin-bottom: 0; }
@media (max-width: 960px) { .faq-wrap { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- final CTA + form ---------- */
.cta { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; position: relative; }
.cta-sec .giant-r { color: var(--verm-deep); height: 130%; width: auto; left: -6%; top: -12%; }
.cta__copy { position: relative; }
.cta__copy p { font-size: 19px; }
.cta__copy .alt { font-size: 16px; border-top: 2px solid var(--ink); padding-top: 16px; margin-top: 32px; }
.form-card {
  position: relative; background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  border-radius: var(--rastra-radius-md); padding: 32px; box-shadow: 8px 8px 0 var(--ink);
}
.form-card h3 { font-size: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 400 16px/1.6 var(--rastra-font-ui); color: var(--ink);
  background: var(--white); border: 1px solid var(--rastra-neutral-500); border-radius: var(--rastra-radius-sm);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input[type="email"] { direction: ltr; text-align: right; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 960px) {
  .cta { grid-template-columns: 1fr; gap: 32px; }
  .cta-sec .giant-r { height: 420px; left: -60px; top: auto; bottom: -40px; }
}
@media (max-width: 560px) {
  .form-card { padding: 22px; box-shadow: 5px 5px 0 var(--ink); margin-inline-end: 5px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--rastra-neutral-300); padding-block: 64px 32px; font-size: 15px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand svg { width: 160px; height: auto; display: block; margin-bottom: 16px; }
.footer-brand p { margin: 0 0 4px; }
.footer-brand .tagline { color: var(--paper); font-weight: 600; font-family: var(--rastra-font-fa); }
.site-footer h2 { font: 600 14px/1.6 var(--rastra-font-fa); color: var(--rastra-neutral-400); margin-bottom: 12px; }
.site-footer li { padding: 4px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink-2); }
.footer-bottom .pxrow { display: flex; gap: 4px; }
.footer-bottom .pxrow i { width: 8px; height: 8px; background: var(--verm); display: block; }
.footer-bottom .pxrow i:nth-child(2) { background: var(--rastra-neutral-700); }
.footer-bottom .pxrow i:nth-child(3) { background: var(--paper); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-block: 72px 56px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .giant-r { color: var(--verm); height: 150%; width: auto; left: -40px; top: -10%; }
.page-hero__copy { position: relative; max-width: 720px; }
.page-hero p { font-size: 19px; color: var(--muted); }
@media (max-width: 860px) { .page-hero .giant-r { display: none; } }

/* ---------- comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; background: var(--white); font-size: 15px; }
.compare caption { text-align: start; font-size: 14px; color: var(--muted); padding-bottom: 12px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; line-height: 1.6; }
.compare thead th {
  position: sticky; top: var(--header-h); z-index: 2; background: var(--ink); color: var(--paper);
  font: 800 16px/1.4 var(--rastra-font-fa); border-bottom: 0;
}
.compare thead th small { display: block; font: 400 13px/1.4 var(--rastra-font-ui); color: var(--rastra-neutral-300); }
.compare thead th:not(:first-child), .compare td { text-align: center; width: 19%; }
.compare thead th.is-pro { box-shadow: inset 0 -6px 0 var(--verm); }
.compare tbody th { font-weight: 400; }
.compare tr.group th {
  background: var(--paper); font: 800 15px/1.5 var(--rastra-font-fa); padding-top: 22px; color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.compare td.pro { background: var(--rastra-vermilion-50); }
.yes { display: inline-block; width: 22px; height: 22px; vertical-align: middle; }
.yes rect { fill: var(--ink); }
.no { color: var(--rastra-neutral-500); }
.soon { display: inline-block; font-size: 13px; font-weight: 600; padding: 1px 8px; border: 1px solid var(--ink); border-radius: var(--rastra-radius-xs); }
.compare .val { font-size: 14px; }
.table-scroll { width: 100%; }
.footnotes { margin-top: 24px; font-size: 14px; color: var(--muted); }
.footnotes li { padding: 4px 0; }
@media (max-width: 640px) {
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 10px 6px; }
  .compare thead th { font-size: 14px; }
  .compare thead th small { display: none; }
  .compare thead th:not(:first-child), .compare td { width: 20%; }
  .compare .val, .soon { font-size: 12px; }
  .soon { padding: 0 4px; }
}

/* ---------- brand kit page ---------- */
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kit-card { border: 1px solid var(--line); border-radius: var(--rastra-radius-md); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.kit-card__view { display: grid; place-items: center; height: 220px; padding: 28px; }
.kit-card__view svg, .kit-card__view img { width: auto; height: auto; max-width: 80%; max-height: 150px; display: block; }
.kit-card__view.on-paper { background: var(--paper); }
.kit-card__view.on-white { background: var(--white); border-bottom: 1px solid var(--line); }
.kit-card__view.on-ink { background: var(--ink); }
.kit-card__view.on-verm { background: var(--verm); }
.kit-card__body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kit-card__body h3 { font-size: 18px; margin: 0; }
.kit-card__body p { font-size: 14px; color: var(--muted); margin: 0; }
.dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.dl a {
  font: 500 13px/1.2 var(--rastra-font-ui); padding: 8px 10px; border: 1px solid var(--ink);
  border-radius: var(--rastra-radius-sm); color: var(--ink); text-decoration: none;
}
.dl a:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 960px) { .kit-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .kit-grid { grid-template-columns: 1fr; } }

.rules-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.clear-demo { background: var(--white); border: 1px solid var(--line); border-radius: var(--rastra-radius-md); padding: 32px; display: grid; place-items: center; }
.clear-demo__box { position: relative; padding: 28px; border: 1px dashed var(--select); }
.clear-demo__box svg { display: block; width: 260px; height: auto; }
.clear-demo__x { position: absolute; font: 500 12px/1 var(--rastra-font-mono); color: var(--rastra-info-text); }
.clear-demo__x.t { top: 8px; left: 50%; transform: translateX(-50%); }
.clear-demo__x.r { right: 8px; top: 50%; transform: translateY(-50%); }
.mini-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); }
.mini-table th, .mini-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; }
.mini-table thead th { border-bottom: 2px solid var(--ink); font-weight: 600; }
@media (max-width: 860px) { .rules-2 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .clear-demo { padding: 16px; } .clear-demo__box svg { width: 200px; } }

.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.swatch-card { border: 1px solid var(--line); border-radius: var(--rastra-radius-md); overflow: hidden; background: var(--white); }
.swatch-card__chip { height: 140px; display: flex; align-items: flex-end; padding: 14px; font-weight: 600; font-size: 14px; }
.swatch-card__body { padding: 14px 16px 18px; font-size: 14px; }
.swatch-card__body h3 { font-size: 18px; margin-bottom: 6px; }
.swatch-card__body .codes { font-family: var(--rastra-font-mono); font-size: 13px; direction: ltr; text-align: right; color: var(--ink); margin-bottom: 8px; }
.swatch-card__body p { color: var(--muted); margin: 0; }
.scale { display: grid; grid-template-columns: repeat(11, 1fr); border: 1px solid var(--line); border-radius: var(--rastra-radius-md); overflow: hidden; margin-bottom: 16px; direction: ltr; }
.scale--12 { grid-template-columns: repeat(12, 1fr); }
.scale div { background: var(--white); display: flex; flex-direction: column; font: 500 11px/1.4 var(--rastra-font-mono); color: var(--ink); padding-bottom: 8px; }
.scale .chip { display: block; height: 56px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.scale div b, .scale div code { padding-inline: 6px; }
.scale div b { font-weight: 600; font-size: 12px; }
.scale div code { font-size: 11px; color: var(--muted); }
.scale-label { font-weight: 600; margin: 24px 0 10px; }
@media (max-width: 960px) { .swatches { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .scale, .scale--12 { grid-template-columns: repeat(4, 1fr); }
  .scale .chip { height: 44px; }
}
@media (max-width: 420px) { .swatches { grid-template-columns: 1fr; } }

.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.type-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--rastra-radius-md); padding: 24px; }
.type-card__sample { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.5; margin: 8px 0 16px; color: var(--ink); overflow-wrap: anywhere; }
.type-card__meta { font-size: 14px; color: var(--muted); margin: 0; }
.type-card h3 { font-size: 18px; margin: 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.type-card h3 a { font: 500 13px/1.8 var(--rastra-font-ui); }
@media (max-width: 760px) { .type-grid { grid-template-columns: 1fr; } }

.dodont { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dd { border: 1px solid var(--line); border-radius: var(--rastra-radius-md); overflow: hidden; background: var(--white); }
.dd__view { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--paper); overflow: hidden; padding: 16px; }
.dd__view svg { width: 72%; height: auto; display: block; }
.dd__view { aspect-ratio: auto; height: 170px; }
.dd__body { padding: 12px 16px 16px; font-size: 14px; }
.dd__verdict { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.dd__verdict svg { width: 14px; height: 14px; }
.dd--ok .dd__verdict { color: var(--rastra-success-text); }
.dd--ok .dd__verdict rect { fill: var(--rastra-success-text); }
.dd--no .dd__verdict { color: var(--rastra-error-text); }
.dd--no .dd__verdict rect { fill: var(--rastra-error-text); }
.dd p { margin: 0; color: var(--ink); }
@media (max-width: 960px) { .dodont { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .dodont { grid-template-columns: 1fr; } }

.writing { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.writing li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.writing li::before { content: ""; width: 8px; height: 8px; background: var(--verm); flex: none; margin-top: .75em; }
@media (max-width: 760px) { .writing { grid-template-columns: 1fr; } }

.press { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.boiler { background: var(--white); border: 1px solid var(--line); border-inline-start: 6px solid var(--verm); border-radius: var(--rastra-radius-sm); padding: 24px; }
.boiler p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .press { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Giyan infrastructure badge (footer) ----------
   Horizontal Persian badge, 177x40, hosted locally. Rules from Giyan's badge README:
   keep proportions/colours, >= 8px clear space, once per page, link with rel="noopener". */
.footer-bottom { align-items: center; }
.footer-copy { display: inline-flex; align-items: center; gap: 12px; }
.giyan-badge { display: inline-block; padding: 8px; margin: -8px; line-height: 0; border-radius: var(--rastra-radius-sm); }
.giyan-badge img { display: block; width: 177px; height: 40px; max-width: none; }
.site-footer .giyan-badge:hover { text-decoration: none; }

/* slim accent CTA (pricing page) */
.cta-slim .giant-r { color: var(--verm-deep); height: 150%; width: auto; left: -6%; top: -20%; }
@media (max-width: 960px) { .cta-slim .giant-r { display: none; } }

.writing .en { white-space: nowrap; }
