/* Daftar landing page (V3) — needs tokens.css + base.css. Logical properties only (RTL-first).
   Colors come only from tokens: logo teal, amber ribbon, neutrals; debt/payment colors only on amounts. */

/* Landing roles derived from tokens (the dark values reuse the same tokens). */
:root {
  --l-deep: var(--brand);
  --l-on-deep: var(--brand-ink);
  --l-bezel: var(--text);
  --l-line: var(--line-color, color-mix(in srgb, var(--brand) 8%, transparent));
  --l-glow: var(--glow, color-mix(in srgb, var(--brand) 14%, transparent));
  --l-ribbon: var(--gold, var(--accent));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) { --l-deep: color-mix(in srgb, var(--brand) 36%, var(--bg)); --l-on-deep: var(--text); --l-bezel: var(--surface-3); }
  :root:not([data-theme='light']) .theme-btn .sun { display: block; }
  :root:not([data-theme='light']) .theme-btn .moon { display: none; }
}
:root[data-theme='dark'] { --l-deep: color-mix(in srgb, var(--brand) 36%, var(--bg)); --l-on-deep: var(--text); --l-bezel: var(--surface-3); }
:root[data-theme='dark'] .theme-btn .sun { display: block; }
:root[data-theme='dark'] .theme-btn .moon { display: none; }

html { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Calm brand background: one soft teal glow at the top of the page. */
body.landing { overflow-x: hidden; background: radial-gradient(64% 540px at 50% -110px, var(--l-glow), transparent) no-repeat, var(--bg); }
[hidden] { display: none !important; }
[dir='rtl'] .landing h1, [dir='rtl'] .landing h2, [dir='rtl'] .landing h3 { letter-spacing: 0; }
.ico { width: 1.25em; height: 1.25em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

/* While a non-Arabic dictionary loads, keep the Arabic copy out of sight (JS clears this; 1.5 s safety net). */
.i18n-pending body { visibility: hidden; }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--r-md); background: var(--text); color: var(--bg); font-weight: 700; }
.skip:focus { top: 12px; text-decoration: none; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-md); font-weight: 700; font-size: var(--fs-md); line-height: 1.2; white-space: nowrap; border: 1px solid transparent; text-decoration: none; user-select: none; transition: background var(--dur) var(--ease), border-color var(--dur), color var(--dur), transform 80ms var(--ease); }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.985); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: var(--fs-sm); border-radius: 11px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: var(--fs-lg); border-radius: 15px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-hover, var(--brand-strong)); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-text { background: transparent; color: var(--text-2); padding-inline: 12px; }
.btn-text:hover { background: var(--surface-2); color: var(--text); }
.btn-inverse { background: var(--surface); color: var(--brand-strong); box-shadow: var(--shadow-md); }
.btn-inverse:hover { background: var(--surface-2); }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; transition: background var(--dur), color var(--dur); }
.iconbtn:hover { background: var(--surface-2); color: var(--text); }
.iconbtn .ico { width: 20px; height: 20px; }

/* ===== Header (transparent over the glow until the page scrolls) ===== */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transition: background-color var(--dur), border-color var(--dur); }
.js .site-head:not(.scrolled) { background-color: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.head-row { display: flex; align-items: center; gap: 6px; height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); font-weight: 800; font-size: 21px; text-decoration: none; }
.wordmark:hover { text-decoration: none; }
.mark { width: 36px; height: 36px; flex: 0 0 auto; color: var(--brand); }
.head-links { display: none; margin-inline-start: 28px; gap: 4px; }
.head-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; }
.head-links a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.head-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.head-nav .login, .only-wide, .lang-cur { display: none; }
@media (min-width: 480px) {
  .head-nav { gap: 6px; }
  .head-nav .login { display: inline-flex; }
  .only-wide, .lang-cur { display: inline; }
  .only-narrow { display: none; }
}
@media (min-width: 900px) { .head-links { display: flex; } }

.lang { position: relative; }
.lang > summary { list-style: none; }
.lang > summary::-webkit-details-marker { display: none; }
.lang[open] > summary { background: var(--surface-2); color: var(--text); }
.lang-menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 60; display: flex; flex-direction: column; gap: 2px; min-width: 168px; padding: 6px; border-radius: 14px; background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.lang-menu button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 42px; padding: 0 12px; border-radius: 10px; text-align: start; font-weight: 600; color: var(--text); }
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu button[aria-checked='true'] { color: var(--brand); }
.lang-menu button[aria-checked='true']::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.theme-btn .sun { display: none; }

/* ===== Hero: faint notebook lines (like the logo) behind the hero only ===== */
.hero { position: relative; isolation: isolate; padding-block: 28px 56px; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(transparent 0 37px, var(--l-line) 37px 38px); -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 58%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 58%, transparent); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-text { max-width: 600px; }
.hero-title { font-size: clamp(34px, 6vw, 58px); font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; }
[dir='rtl'] .hero-title { line-height: 1.32; }
.promise { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; color: var(--text-2); max-width: 36em; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-notes { display: grid; gap: 8px; margin-top: 20px; font-size: var(--fs-sm); color: var(--text-2); }
.hero-notes li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.55; }
.hero-notes .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--brand); }
.hero-notes .ribbon-ico { fill: var(--l-ribbon); stroke: none; }
@media (min-width: 900px) {
  .hero { padding-block: 52px 84px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; }
}

/* Phone mockup (pure CSS, decorative) — mirrors the V3 home screen */
.phone-wrap { display: flex; justify-content: center; padding-block: 8px 16px; }
.phone { position: relative; width: 300px; padding: 10px; border-radius: 48px; background: var(--l-bezel); box-shadow: var(--shadow-lg), inset 0 0 0 1px color-mix(in srgb, var(--text-inverse) 10%, transparent); }
.screen { position: relative; display: flex; flex-direction: column; height: 660px; overflow: hidden; border-radius: 39px; background: var(--bg); color: var(--text); font-size: 12px; line-height: 1.4; }
.notch { position: absolute; top: 10px; left: 50%; z-index: 3; width: 86px; height: 24px; transform: translateX(-50%); border-radius: 999px; background: var(--l-bezel); }
.statusbar { display: flex; justify-content: space-between; align-items: center; direction: ltr; padding: 14px 26px 0; font-weight: 700; font-size: 12.5px; }
.status-icons { display: inline-flex; align-items: center; gap: 5px; }
.status-icons svg { height: 11px; width: auto; fill: currentColor; }
.m-toast { display: flex; align-items: center; gap: 10px; margin: 10px 10px 0; padding: 9px 12px; border-radius: 16px; background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.m-toast i { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); }
.m-toast i .ico { width: 16px; height: 16px; }
.m-toast span, .m-who { display: flex; flex-direction: column; min-width: 0; }
.m-toast b { font-size: 11.5px; font-weight: 700; line-height: 1.3; }
.m-toast small, .m-shop, .m-today small, .m-who small { font-size: 10px; font-weight: 600; color: var(--text-2); }
.apphead { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 8px; }
.m-greet { font-weight: 800; font-size: 14.5px; }
.m-shop { font-size: 11px; }
.m-tools { display: flex; gap: 6px; }
.m-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.m-bell .ico { width: 16px; height: 16px; }
.m-bell i { position: absolute; top: 6px; inset-inline-end: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); border: 1.5px solid var(--surface); }
.m-body { display: flex; flex-direction: column; gap: 9px; padding: 0 14px; }
.m-hero { position: relative; overflow: hidden; padding: 12px 14px; border-radius: 18px; background: var(--l-deep); color: var(--l-on-deep); box-shadow: var(--shadow-md); }
.m-hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 21px, color-mix(in srgb, var(--l-on-deep) 7%, transparent) 21px 22px); }
.m-hero > * { position: relative; }
.m-hero .m-ribbon { position: absolute; top: 0; inset-inline-end: 14px; width: 12px; height: 20px; background: var(--l-ribbon); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%); }
.m-top { display: flex; align-items: center; gap: 6px; padding-inline-end: 22px; }
.m-label { font-size: 10.5px; font-weight: 600; opacity: .88; }
.m-hero .tag { min-height: 16px; padding: 0 6px; font-size: 9px; background: color-mix(in srgb, var(--l-ribbon) 26%, transparent); color: inherit; }
.m-amount { margin-top: 2px; font-size: 24px; font-weight: 800; line-height: 1.2; }
.m-amount span:last-child { font-size: 13px; font-weight: 700; opacity: .9; }
.m-chips, .m-actions, .m-today { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-chips { margin-top: 10px; }
.m-chip { display: flex; flex-direction: column; gap: 1px; padding: 7px 9px; border-radius: 11px; font-size: 10px; font-weight: 600; background: color-mix(in srgb, var(--l-on-deep) 13%, transparent); }
.m-chip > span { display: flex; align-items: center; gap: 4px; opacity: .9; }
.m-chip i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--l-on-deep) 50%, transparent); }
.m-chip i.dot { background: var(--l-ribbon); }
.m-chip b { font-size: 12.5px; font-weight: 800; }
.m-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 6px; border-radius: 12px; white-space: nowrap; font-size: 12.5px; font-weight: 700; background: var(--brand); color: var(--brand-ink); }
.m-btn.debt { background: var(--debt-solid, var(--debt)); color: #fff; } /* as in the app: brick-red "new debt", teal "payment" */
.m-btn .ico { width: 15px; height: 15px; stroke-width: 2.2; }
.m-today > span { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.m-today b, .m-bal { font-size: 13px; font-weight: 800; color: var(--debt); }
.m-today b.pay, .m-bal.pay { color: var(--payment); }
.m-sec { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 0; font-weight: 700; font-size: 12.5px; }
.m-link { display: inline-flex; align-items: center; gap: 2px; color: var(--brand); font-size: 11px; font-weight: 600; }
.m-link .ico { width: 13px; height: 13px; }
.m-list { overflow: hidden; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.m-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; }
.m-row + .m-row { border-top: 1px solid var(--border); }
.m-who { flex: 1 1 auto; }
.m-who b { overflow: hidden; font-size: 12px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.m-bal { font-size: 12.5px; }
.m-wa { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-softer); color: var(--brand); }
.m-wa .ico { width: 14px; height: 14px; }
.m-wa.off { background: none; }
/* Customer initials: teal shades only */
.av { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-style: normal; font-weight: 700; font-size: 11.5px; }
.av.a2 { background: var(--brand-soft); color: var(--brand-strong); }
.av.a3 { background: color-mix(in srgb, var(--brand) 50%, var(--surface)); color: var(--text); }
.m-nav { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto repeat(2, minmax(0, 1fr)); align-items: end; height: 60px; padding: 0 10px 6px; background: color-mix(in srgb, var(--bg-elevated) 94%, transparent); border-top: 1px solid var(--border); }
.m-ni { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; height: 54px; font-size: 9.5px; font-weight: 600; color: var(--text-2); }
.m-ni em { max-width: 100%; overflow: hidden; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.m-ni .ico { width: 17px; height: 17px; }
.m-ni.on { color: var(--brand); }
.fab { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 6px 2px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-md); }
.fab .ico { width: 18px; height: 18px; stroke-width: 2.4; }
@media (max-width: 420px) { .phone { width: 280px; } .screen { height: 640px; font-size: 11.5px; } .notch { width: 72px; } .statusbar { padding-inline: 22px; } .m-btn { gap: 4px; font-size: 11px; } }

/* The one load moment: the phone rises, then the "statement opened" toast slides in. */
.js .phone { animation: rise .8s var(--ease) both; }
.js .m-toast { animation: slide-in .5s var(--ease) 1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* Amber pill = the Pro plan (the ribbon's color) */
.tag { display: inline-flex; align-items: center; vertical-align: middle; min-height: 22px; padding: 0 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink, var(--text)); font-size: var(--fs-xs); font-weight: 700; font-style: normal; line-height: 1.2; white-space: nowrap; }

/* ===== Trust strip ===== */
.trust { padding-block: 8px 24px; }
.trust-grid { display: grid; gap: 14px; padding: 6px 0; border-block: 1px solid var(--border); }
.trust-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 4px; }
.trust-item > .ico { width: 26px; height: 26px; margin-top: 2px; color: var(--brand); }
.trust-t { font-weight: 700; }
.trust-item p + p { margin-top: 3px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.6; }
.trust-item + .trust-item { border-top: 1px solid var(--border); }
@media (min-width: 720px) {
  .trust { padding-block: 16px 32px; }
  .trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .trust-item { padding: 18px 20px; }
  .trust-item + .trust-item { border-top: 0; border-inline-start: 1px solid var(--border); }
  .trust-item:first-child { padding-inline-start: 4px; }
}

/* ===== Sections (clean canvas, no texture) ===== */
.sec { padding-block: clamp(56px, 8vw, 96px); }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
[dir='rtl'] .sec h2 { line-height: 1.4; }
.lead { margin-top: 12px; font-size: var(--fs-lg); line-height: 1.65; color: var(--text-2); max-width: 46em; }

/* Features */
.cards { display: grid; gap: 14px; }
.card { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.card > .ico, .card > div > .ico { width: 44px; height: 44px; padding: 10px; border-radius: 13px; background: var(--brand-softer); color: var(--brand); }
.card h3 { margin-top: 16px; font-size: var(--fs-lg); font-weight: 700; line-height: 1.35; }
.card p { margin-top: 6px; font-size: 14.5px; line-height: 1.65; color: var(--text-2); max-width: 36em; }
.card.wide, .card.insight { display: grid; gap: 22px; }
.chat { display: flex; padding: 20px 18px; border-radius: 16px; background: var(--surface-2); }
.bubble { position: relative; align-self: center; max-width: 330px; margin-inline-start: auto; padding: 10px 12px 7px; border-radius: 14px; border-start-end-radius: 4px; background: var(--brand-soft); color: var(--text); font-size: 13.5px; line-height: 1.55; }
.bubble::before { content: ''; position: absolute; top: 0; inset-inline-end: -7px; border-style: solid; border-width: 0 0 10px 8px; border-color: transparent transparent transparent var(--brand-soft); }
[dir='ltr'] .bubble::before { border-width: 0 8px 10px 0; border-color: transparent var(--brand-soft) transparent transparent; }
.card .bubble p { margin: 0; font-size: inherit; color: inherit; line-height: inherit; }
.bubble-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 4px; font-size: 10.5px; color: var(--text-2); }
.bubble-meta .ico { width: 16px; height: 16px; color: var(--brand); stroke-width: 2; }
@media (max-width: 599px) { /* phones: icon beside the heading, so eight features stay a short scroll */
  .card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 18px; }
  .card > .ico { grid-row: span 2; width: 40px; height: 40px; padding: 9px; }
  .card > h3, .card > p { margin-top: 0; }
  .card.wide, .card.insight { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .card.wide { grid-column: span 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
}
@media (min-width: 600px) and (max-width: 899px) { .iv { display: none; } }
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { padding: 24px; }
  .card.insight { grid-column: span 3; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 28px; }
  .iv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Insights card: a three-tile dashboard sketch in teal shades */
.iv { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.iv-tile { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 12px 14px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); }
.iv-t { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--text-2); }
.iv-t .ico { width: 15px; height: 15px; color: var(--brand); }
.iv-v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.iv-v b { font-size: 24px; font-weight: 800; line-height: 1; }
.iv-v b.up { color: var(--brand); }
.iv-v small, .iv-legend { font-size: 12px; font-weight: 600; color: var(--text-2); }
.iv-avs { display: flex; }
.iv-avs .av { width: 24px; height: 24px; font-size: 10px; border: 2px solid var(--surface); }
.iv-avs .av + .av { margin-inline-start: -7px; }
.iv-avs .more { background: var(--surface-2); color: var(--text-2); }
.iv-bar { display: flex; gap: 2px; height: 10px; margin-top: 4px; border-radius: 999px; overflow: hidden; }
.iv-bar i { flex: 11 1 0; border-radius: 2px; }
.iv-bar i:nth-child(2) { flex-grow: 6; }
.iv-bar i:nth-child(3) { flex-grow: 3; }
.iv-bar i, .iv-legend i { background: color-mix(in srgb, var(--brand) 30%, var(--surface)); }
.iv-bar i:nth-child(2), .iv-legend span:nth-child(2) i { background: color-mix(in srgb, var(--brand) 62%, var(--surface)); }
.iv-bar i:nth-child(3), .iv-legend span:nth-child(3) i { background: var(--brand); }
.iv-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; font-size: 11px; }
.iv-legend > span { display: inline-flex; align-items: center; gap: 4px; }
.iv-legend b { font-weight: 600; }
.iv-legend i { width: 8px; height: 8px; border-radius: 50%; }
.iv-spark { width: 100%; height: 36px; overflow: visible; }
.iv-area { fill: color-mix(in srgb, var(--brand) 14%, transparent); }
.iv-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* How it works (a real sequence, so it is numbered) */
.steps { max-width: 860px; padding: 6px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; align-items: start; padding: 22px 0; }
.steps li + li { border-top: 1px solid var(--border); }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: var(--fs-lg); }
.steps h3 { padding-top: 6px; font-size: var(--fs-xl); font-weight: 700; line-height: 1.3; }
.steps p { margin-top: 6px; line-height: 1.65; color: var(--text-2); max-width: 40em; }
@media (min-width: 720px) {
  .steps { padding: 10px 34px; }
  .steps li { grid-template-columns: 44px minmax(0, 1fr); gap: 28px; padding: 28px 0; }
  .step-n { width: 44px; height: 44px; font-size: var(--fs-xl); }
}

/* ===== Pricing: plan type first, then its prices as simple rows (one above the other) ===== */
.plans { display: grid; gap: 16px; max-width: 920px; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.plan.pro { padding: 25px 21px; border: 2px solid var(--brand); }
.plan h3 { padding-inline-end: 44px; font-size: var(--fs-2xl); font-weight: 800; }
.plan-desc { margin-top: -8px; color: var(--text-2); }
/* The Pro card wears the logo's amber ribbon, peeking over its top edge */
.ribbon { position: absolute; top: -8px; inset-inline-end: 24px; width: 24px; height: 46px; border-radius: 4px 4px 0 0; background: var(--l-ribbon); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%); }
.rates { margin: 0; border-block: 1px solid var(--border); }
.rate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-block: 14px; }
.rate + .rate { border-top: 1px solid var(--border); }
.rate dt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-lg); font-weight: 700; }
.rate dd { display: flex; align-items: baseline; gap: 6px; margin: 0; margin-inline-start: auto; } /* stays in the price column even when it wraps */
.rate dd b { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.rate dd span { color: var(--text-2); font-weight: 600; white-space: nowrap; }
.plan-list { display: flex; flex-direction: column; gap: 10px; }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.plan-list .ico { width: 20px; height: 20px; margin-top: 2px; color: var(--brand); stroke-width: 2.2; }
.plan-note { margin-top: auto; font-size: var(--fs-sm); color: var(--text-2); }
.plan .btn { margin-top: auto; }
.plan .plan-note + .btn { margin-top: 0; }
@media (min-width: 760px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .plan { padding: 30px 28px; }
  .plan.pro { padding: 29px 27px; }
}
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; max-width: 920px; margin-top: 22px; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
/* Payment badge: the official logo when /img/pay/<id>.png (or the configured logo) exists, always the name */
.pay-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.pay-badge img { height: 22px; width: auto; max-width: 88px; object-fit: contain; }
.pay-note { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-2); }
.pay-note .ico { width: 20px; height: 20px; color: var(--brand); }

/* FAQ */
#faq h2 { margin-bottom: 12px; }
.faq-list { max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; border-radius: 8px; list-style: none; cursor: pointer; font-weight: 700; font-size: var(--fs-lg); line-height: 1.4; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ico { width: 22px; height: 22px; color: var(--text-2); transition: transform var(--dur) var(--ease); }
.faq-list details[open] summary .ico { transform: rotate(180deg); }
.faq-list details > p { max-width: 60em; padding: 0 2px 20px; line-height: 1.7; color: var(--text-2); }
.pay-list { display: grid; gap: 8px; max-width: 520px; margin: -6px 2px 22px; }
.pay-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.pay-list b { min-width: 5.5em; }
.pay-list small { font-size: var(--fs-sm); color: var(--text-2); }

/* Closing band: the notebook cover */
.sec.cta { padding-top: 0; }
.band { padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 64px); border-radius: 26px; background: var(--l-deep); color: var(--l-on-deep); box-shadow: var(--shadow-lg); }
.band h2 { max-width: 16em; }
.band p { max-width: 40em; margin-top: 12px; font-size: var(--fs-lg); opacity: .88; }
.band .btn { margin-top: 28px; }

/* Footer */
.site-foot { padding: 40px 0 28px; border-top: 1px solid var(--border); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 40px; }
.foot-brand p { margin-top: 12px; font-size: var(--fs-sm); color: var(--text-2); }
.foot-links { display: flex; flex-direction: column; gap: 6px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text); font-weight: 600; }
.foot-links a:hover { color: var(--brand); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-2); }
.foot-bottom a { color: inherit; font-weight: 600; }
.version { display: inline-flex; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  .js .phone, .js .m-toast { animation: none; }
  .faq-list summary .ico { transition: none; }
}
.landing :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn:focus-visible, .iconbtn:focus-visible { outline-offset: 2px; }

/* V4: "more features coming" note under the feature cards */
.soon { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 22px auto 0; max-width: 720px; padding: 12px 16px;
  border: 1px dashed var(--border-strong, var(--border)); border-radius: 14px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; justify-content: center; text-align: center; }
.soon b { color: var(--text); }
.soon-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent, var(--brand)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, var(--brand)) 22%, transparent); animation: soon-pulse 2.2s ease-in-out infinite; }
@keyframes soon-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent, var(--brand)) 6%, transparent); } }
@media (prefers-reduced-motion: reduce) { .soon-dot { animation: none; } }
.launch-note { color: var(--accent-strong, #B45309); font-weight: 700; }
[data-launch] b { color: var(--accent-strong, #B45309); }
.lock-note { font-weight: 700; color: var(--brand, #0F766E); }
