/* dijitalapp.com v2 — editorial, flat, one accent. Self-contained: no external fonts or scripts. */
:root {
  --paper: #fbfbf9;
  --paper-2: #f3f2ee;
  --card: #ffffff;
  --ink: #111418;
  --ink-2: #2b3036;
  --muted: #5d6570;
  --faint: #8b929b;
  --rule: #e4e2dc;
  --rule-2: #d6d3cb;
  --accent: #1f6feb;
  --accent-ink: #1a5fd0;
  --ok: #0e8a5f;
  --dark: #0e1116;
  --dark-2: #161a21;
  --dark-rule: #262b33;
  --dark-text: #e8eaed;
  --dark-muted: #9aa1ab;
  --radius: 10px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
/* Light is the default; dark only when chosen with the toggle (stored in the browser). */
:root[data-theme='dark'] {
  --paper: #0e1116;
  --paper-2: #13171d;
  --card: #161a21;
  --ink: #eceef1;
  --ink-2: #d2d6db;
  --muted: #9aa1ab;
  --faint: #737a85;
  --rule: #252a32;
  --rule-2: #313741;
  --accent: #4c8dff;
  --accent-ink: #79a9ff;
  --ok: #3fbf8a;
  --dark: #07090c;
  --dark-2: #0e1116;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.g { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 50; padding: 8px 12px; background: var(--ink); color: var(--paper); border-radius: 6px; }
.skip:focus { left: 12px; }
.wrap { width: min(clamp(1180px, 76vw, 1520px), 100% - 48px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 8px; font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); }
.btn-line { border-color: var(--rule-2); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-paper { background: #fff; color: #111418; }
.btn-paper:hover { background: #eceef1; }
.btn-line-paper { border-color: rgb(255 255 255 / 30%); color: #fff; }
.btn-line-paper:hover { border-color: #fff; }
.g-arrow { width: 16px; height: 16px; transition: transform .15s ease; }
.btn:hover .g-arrow { transform: translateX(2px); }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.top.is-stuck { border-bottom-color: var(--rule); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.brand img { border-radius: 7px; }
.top-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.top-nav a:not(.btn) { color: var(--muted); text-decoration: none; transition: color .15s ease; }
.top-nav a:not(.btn):hover { color: var(--ink); }
.top-sep { width: 1px; height: 20px; background: var(--rule-2); }
.top-menu { display: none; height: 38px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: 8px; background: transparent; color: var(--ink); font: 600 14px var(--font); cursor: pointer; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 0; border-bottom: 1px solid var(--rule); }
.eyebrow { color: var(--muted); font-size: 15px; }
.hero h1 { max-width: 15ch; margin-top: 18px; font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; }
.hero-sub { display: grid; grid-template-columns: minmax(0, 560px) auto; align-items: end; justify-content: space-between; gap: 32px; margin-top: 28px; }
.lead { color: var(--muted); font-size: 19px; line-height: 1.55; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.notes { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 26px; color: var(--faint); font-size: 14px; }
.notes li + li::before { content: '·'; margin-right: 22px; color: var(--rule-2); }

/* ---------- product frame (flat app screenshot) ---------- */
.frame { margin-top: 56px; border: 1px solid var(--rule-2); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--card); overflow: hidden; }
.frame-top { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.frame-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-2); }
.frame-top span { margin: 0 auto; color: var(--faint); font: 12px var(--mono); }
.app { display: grid; grid-template-columns: 76px 300px minmax(0, 1fr); height: 470px; font-size: 13.5px; }
.app-rail { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 0; border-right: 1px solid var(--rule); background: var(--paper-2); }
.app-rail img { border-radius: 7px; margin-bottom: 6px; }
.app-rail span { display: grid; justify-items: center; gap: 4px; color: var(--faint); font-size: 10.5px; }
.app-rail span b { width: 34px; height: 26px; border-radius: 8px; border: 1.5px solid var(--rule-2); }
.app-rail span.on { color: var(--accent-ink); }
.app-rail span.on b { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.app-list { border-right: 1px solid var(--rule); overflow: hidden; }
.app-list-head { padding: 16px 16px 10px; font-size: 18px; letter-spacing: -0.01em; }
.app-search { margin: 0 12px 8px; padding: 8px 12px; border-radius: 8px; background: var(--paper-2); color: var(--faint); }
.app-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; border-left: 2px solid transparent; }
.app-item.on { background: var(--paper-2); border-left-color: var(--accent); }
.app-item b, .ui-row b, .ui-bar b, .app-conv-head b, .ui-ev b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-item small, .ui-row small, .ui-bar small, .app-conv-head small, .ui-ev small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-item time { align-self: start; color: var(--faint); font-size: 11.5px; }
.av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #dbe7fb; color: #1a4fa8; font-weight: 700; font-size: 14px; }
.av-1 { background: #dcefe6; color: #0d6b48; }
.av-2 { background: #f6e5d3; color: #8a4b12; }
.av-3 { background: #ece1f6; color: #6a3a99; }
.av-4 { background: #e6e8eb; color: #3d4450; }
.av-sq { border-radius: 9px; }
.av-s { width: 30px; height: 30px; font-size: 12px; background: var(--paper-2); color: var(--ink-2); }
:root[data-theme='dark'] .av { background: #1d2c45; color: #a9c7ff; }
:root[data-theme='dark'] .av-1 { background: #173327; color: #8fdcb9; }
:root[data-theme='dark'] .av-2 { background: #3a2a19; color: #f0c49a; }
:root[data-theme='dark'] .av-3 { background: #2c2140; color: #cdb0f0; }
:root[data-theme='dark'] .av-4 { background: #262b33; color: #c3c8cf; }
.app-conv { display: flex; flex-direction: column; min-width: 0; background: var(--paper); }
.app-conv-head { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--rule); background: var(--card); }
.app-conv-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px; flex: 1; overflow: hidden; }
.ui-note { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--muted); font-size: 11.5px; }
.ui-note .g { width: 13px; height: 13px; }
.msg { max-width: 72%; padding: 8px 12px; border-radius: 10px; line-height: 1.4; }
.msg small { display: block; margin-bottom: 2px; color: var(--accent-ink); font-size: 11.5px; font-weight: 600; }
.msg.in { align-self: flex-start; background: var(--card); border: 1px solid var(--rule); }
.msg.out { align-self: flex-end; background: var(--ink); color: var(--paper); }
.msg.event { display: flex; align-items: center; gap: 12px; }
.ev-day { display: grid; place-items: center; width: 42px; padding: 4px 0; border: 1px solid var(--rule-2); border-radius: 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; line-height: 1.1; }
.ev-day b { color: var(--ink); font-size: 18px; }
.msg.event b { display: block; }
.msg.event small { margin: 0; color: var(--muted); font-weight: 400; }
.ui-compose { display: flex; align-items: center; justify-content: space-between; margin: 0 18px 16px; padding: 9px 9px 9px 14px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--card); color: var(--faint); }
.ui-compose .g { width: 30px; height: 30px; padding: 7px; border-radius: 8px; background: var(--ink); color: var(--paper); }

/* ---------- sections ---------- */
.section { padding: 112px 0; border-bottom: 1px solid var(--rule); }
.section-soft { background: var(--paper-2); }
.head { max-width: 760px; margin-bottom: 56px; }
.kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.kicker::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.kicker-plain::before { display: none; }
.head h2 { margin-top: 16px; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; }
.head .lead { margin-top: 18px; max-width: 640px; }
.tag { display: inline-block; padding: 3px 9px; border: 1px solid currentColor; border-radius: 999px; color: var(--accent-ink); font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1.4; }
.ticks { display: grid; gap: 10px; margin-top: 22px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 16px; }
.ticks .g { margin-top: 4px; width: 16px; height: 16px; color: var(--ok); stroke-width: 2.2; }

/* product rows */
.rows { display: grid; gap: 96px; }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.row-flip .row-text { order: 2; }
.row h3 { font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; }
.row-text > p { margin-top: 14px; color: var(--muted); font-size: 17.5px; }
.ui { border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--card); overflow: hidden; font-size: 13.5px; }
.ui-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.ui-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--paper); }
.ui-chat .ui-compose { margin: 0; border-radius: 0; border: 0; border-top: 1px solid var(--rule); }
.ui-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--rule); }
.ui-row:first-of-type { border-top: 0; }
.ui-row-strong { background: var(--paper-2); }
.ui-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--paper); }
.ui-ico .g { width: 15px; height: 15px; }
.ui-kind { display: grid; place-items: center; width: auto; min-width: 34px; height: 24px; padding: 0 6px; border: 1px solid var(--rule-2); border-radius: 6px; color: var(--muted); font-size: 10.5px; font-weight: 600; }
.ui-row:has(.ui-kind) { grid-template-columns: 74px minmax(0, 1fr); }
.ui-progress { height: 4px; margin: 0 16px 6px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.ui-progress span { display: block; width: 60%; height: 100%; background: var(--ok); }
.ui-cal { padding-bottom: 6px; }
.ui-week { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--rule); }
.ui-week span { display: grid; justify-items: center; gap: 2px; padding: 10px 0; font-weight: 600; }
.ui-week small { color: var(--faint); font-size: 11px; font-weight: 400; }
.ui-week span.on { color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--accent); }
.ui-ev { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; margin: 10px 16px 0; padding: 10px 12px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--paper-2); }
.ui-ev:nth-child(3) { border-left-color: var(--ok); }
.ui-ev:nth-child(4) { border-left-color: #c47a1c; }
.ui-ev time { color: var(--muted); font: 12.5px var(--mono); }

/* security (dark band) */
.section-ink { background: var(--dark); color: var(--dark-text); border-bottom: 0; }
.section-ink .kicker, .section-ink .lead { color: var(--dark-muted); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.split-center { align-items: center; }
.head-left { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--dark-rule); }
.facts li { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--dark-rule); }
.facts li:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--dark-rule); }
.facts li:nth-child(even) { padding-left: 32px; }
.facts .g { width: 22px; height: 22px; color: var(--dark-muted); }
.facts h3 { margin-top: 16px; font-size: 18px; }
.facts p { margin-top: 8px; color: var(--dark-muted); font-size: 15.5px; }

/* business */
.assistant { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; padding: 48px; border: 1px solid var(--rule-2); border-radius: 14px; background: var(--card); }
.assistant h3 { margin-top: 14px; font-size: 24px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; }
.frame-site { margin: 0; border-bottom: 1px solid var(--rule-2); border-radius: 12px; }
.site-mock { position: relative; height: 380px; background: var(--paper); }
.site-mock-page { display: grid; gap: 12px; padding: 26px 28px; max-width: 58%; }
.site-mock-page b { font-size: 15px; }
.site-mock-page span { height: 9px; border-radius: 3px; background: var(--rule); }
.site-mock-page span.short { width: 60%; }
.widget { position: absolute; right: 18px; bottom: 18px; width: min(320px, 78%); display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--rule-2); border-radius: 12px; background: var(--card); box-shadow: 0 18px 40px -18px rgb(17 20 24 / 35%); font-size: 13px; }
.widget-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.widget-head img { border-radius: 6px; }
.widget .msg { max-width: 92%; }
.widget .msg.in p { line-height: 1.45; }
.src { display: flex !important; align-items: center; gap: 5px; margin: 8px 0 0 !important; padding-top: 8px; border-top: 1px dashed var(--rule-2); color: var(--muted) !important; font-weight: 500 !important; }
.src .g { width: 13px; height: 13px; color: var(--ok); }
.widget-handoff { align-self: flex-start; padding: 5px 10px; border: 1px solid var(--rule-2); border-radius: 999px; color: var(--muted); font-size: 12px; }
.grid-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--rule-2); }
.grid-rules li { padding: 28px 32px 32px 0; border-bottom: 1px solid var(--rule); }
.grid-rules li:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--rule); }
.grid-rules h3 { font-size: 18px; }
.grid-rules p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.section-soft .grid-rules { margin-top: 0; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--rule-2); border-radius: 12px; background: var(--card); }
.plan-main { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.plan header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 20px; }
.plan-price { margin-top: 18px; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.plan-note { color: var(--muted); font-size: 15px; }
.plan .ticks { flex: 1; margin: 22px 0 28px; padding-top: 22px; border-top: 1px solid var(--rule); }
.plan .ticks li { font-size: 15px; }

/* apps */
.stores { display: grid; gap: 10px; }
.store { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--card); text-decoration: none; transition: border-color .15s ease; }
a.store:hover { border-color: var(--ink); }
.store-off { opacity: .92; }
.store-g { width: 26px; height: 26px; margin-left: 9px; color: var(--ink-2); }
.store b { display: block; font-size: 16px; }
.store small { display: block; color: var(--muted); font-size: 13.5px; }
.store em { font-style: normal; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.st-ok { color: var(--ok); }
.st-soon { color: var(--faint); }

/* faq */
.faq { border-top: 1px solid var(--rule-2); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--muted); font-size: 22px; font-weight: 300; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 640px; padding: 0 0 24px; color: var(--muted); }

/* final */
.final { background: var(--dark); color: #fff; }
.final-in { padding: 104px 0; }
.final h2 { max-width: 18ch; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.04em; }
.final p { margin-top: 18px; color: var(--dark-muted); font-size: 19px; }
.final .ctas { margin-top: 32px; }

/* footer */
.foot { background: var(--paper); }
.foot-in { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 40px; padding: 64px 0 40px; }
.foot-brand p { max-width: 320px; margin-top: 14px; color: var(--muted); font-size: 15px; }
.foot-mail { display: inline-block; margin-top: 12px; color: var(--ink); font-size: 15px; }
.foot-col h4 { margin-bottom: 12px; color: var(--faint); font-size: 13px; font-weight: 600; }
.foot-col a { display: block; padding: 4px 0; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.foot-col a:hover { color: var(--accent-ink); }
.foot-base { display: flex; justify-content: space-between; padding: 20px 0 32px; border-top: 1px solid var(--rule); color: var(--faint); font-size: 14px; }
.foot-base a { text-decoration: none; }

.notfound { display: grid; justify-items: start; gap: 18px; width: min(640px, 100% - 48px); margin: 12vh auto; }
.notfound h1 { font-size: 96px; letter-spacing: -0.05em; line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .app { grid-template-columns: 64px 250px minmax(0, 1fr); }
  .row, .assistant, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .row-flip .row-text { order: 0; }
  .assistant { padding: 32px; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .head-left { margin-bottom: 8px; }
}
@media (max-width: 860px) {
  .top-menu { display: inline-flex; align-items: center; }
  .top-nav { position: absolute; top: 68px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .top-nav.is-open { display: flex; }
  .top-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink); font-size: 17px; }
  .top-nav .btn { margin-top: 16px; min-height: 46px; }
  .top-sep { display: none; }
  .hero-sub { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .grid-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-rules li, .grid-rules li:not(:nth-child(3n + 1)) { padding: 24px 24px 26px 0; border-left: 0; }
  .grid-rules li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--rule); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 44px; }
  .section { padding: 76px 0; }
  .head { margin-bottom: 40px; }
  .lead { font-size: 17.5px; }
  .ctas .btn { flex: 1 1 100%; }
  .notes li + li::before { display: none; }
  .frame { margin-top: 40px; }
  .app { grid-template-columns: minmax(0, 1fr); height: 420px; }
  .app-rail, .app-list { display: none; }
  .rows { gap: 64px; }
  .row h3 { font-size: 24px; }
  .facts, .grid-rules { grid-template-columns: minmax(0, 1fr); }
  .facts li, .facts li:nth-child(odd), .facts li:nth-child(even) { padding: 24px 0; border-right: 0; }
  .grid-rules li, .grid-rules li:nth-child(even), .grid-rules li:not(:nth-child(3n + 1)) { padding: 22px 0; border-left: 0; }
  .assistant { padding: 22px; }
  .site-mock { height: 400px; }
  .site-mock-page { max-width: 100%; }
  .widget { left: 12px; right: 12px; width: auto; }
  .store { grid-template-columns: 36px minmax(0, 1fr); }
  .store em { grid-column: 2; }
  .store-g { margin-left: 4px; }
  .final-in { padding: 76px 0; }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

/* ---------- theme toggle, back to top, mobile tab bar ---------- */
.top-tools { display: flex; align-items: center; gap: 8px; }
.icon-toggle { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--rule-2); border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.icon-toggle:hover { border-color: var(--ink); }
.icon-toggle .g { width: 18px; height: 18px; }
.icon-toggle .g-moon { display: block; }
.icon-toggle .g-sun { display: none; }
:root[data-theme='dark'] .icon-toggle .g-moon { display: none; }
:root[data-theme='dark'] .icon-toggle .g-sun { display: block; }
.top-login { display: none; }

.to-top { position: fixed; right: 20px; bottom: 24px; z-index: 30; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule-2); border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: 0 8px 24px -10px rgb(17 20 24 / 35%); cursor: pointer; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--ink); }
.to-top .g { width: 20px; height: 20px; }

.tabbar { display: none; }
@media (max-width: 860px) {
  .top-menu, .top-nav { display: none !important; }
  .top-login { display: inline-flex; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 96%, transparent);
    border-top: 1px solid var(--rule);
    -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border-radius: 10px; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .tabbar a .g { width: 22px; height: 22px; }
  .tabbar a.is-on { color: var(--accent-ink); }
  .tabbar a.is-on .g { stroke-width: 2.1; }
  .tabbar a.tab-cta { color: var(--paper); }
  .tabbar a.tab-cta .tab-cta-dot { display: grid; place-items: center; width: 40px; height: 28px; border-radius: 10px; background: var(--ink); }
  .tabbar a.tab-cta .tab-cta-dot .g { color: var(--paper); width: 18px; height: 18px; }
  .tabbar a.tab-cta span:last-child { color: var(--ink); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); right: 14px; }
}
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* ---------- hero layouts (chosen in the admin panel: side by side or centred) ---------- */
body.hero-center .hero { text-align: center; }
body.hero-center .hero h1 { max-width: 18ch; margin-inline: auto; }
body.hero-center .hero-sub { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 28px; }
body.hero-center .hero .lead { max-width: 640px; margin-inline: auto; }
body.hero-center .ctas, body.hero-center .notes { justify-content: center; }
body.hero-center .phone-stage { margin: 48px auto 0; }
@media (min-width: 1081px) {
  body.hero-split .hero > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'eyebrow visual' 'title visual' 'sub visual' 'notes visual'; column-gap: 56px; align-content: center; }
  body.hero-split .eyebrow { grid-area: eyebrow; justify-self: start; align-self: end; }
  body.hero-split .hero h1 { grid-area: title; max-width: 14ch; font-size: clamp(40px, 4.6vw, 68px); }
  body.hero-split .hero-sub { grid-area: sub; grid-template-columns: minmax(0, 1fr); gap: 26px; }
  body.hero-split .hero .notes { grid-area: notes; align-self: start; }
  body.hero-split .hero .frame { grid-area: visual; align-self: center; margin-top: 0; border-bottom: 1px solid var(--rule-2); border-radius: 14px; }
  body.hero-split .hero .app { grid-template-columns: 60px 210px minmax(0, 1fr); height: 440px; }
  body.hero-split .phone-stage { grid-area: visual; align-self: end; margin: 0; }
  body.hero-split .phone-chip { right: auto; left: -40px; top: auto; bottom: 96px; }
  body.hero-split .hero { padding-bottom: 0; }
  body.hero-split.hero-desktop .hero { padding-bottom: 72px; }
}

/* ---------- the app on a phone (hero visual) ---------- */
.phone-stage { position: relative; display: grid; place-items: center; margin: 48px 0 0; }
.phone { position: relative; width: min(340px, 86vw); height: 600px; display: flex; flex-direction: column; padding: 14px 12px 12px; border-radius: 44px 44px 0 0; border: 10px solid #15181d; border-bottom: 0; background: var(--paper); box-shadow: 0 30px 60px -28px rgb(17 20 24 / 45%); text-align: left; overflow: hidden; }
:root[data-theme='dark'] .phone { border-color: #2c3038; }
.phone-notch { position: absolute; top: 8px; left: 50%; width: 92px; height: 22px; border-radius: 12px; background: #15181d; transform: translateX(-50%); }
:root[data-theme='dark'] .phone-notch { background: #2c3038; }
.phone-head { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding: 8px 8px 12px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.phone-head b { display: block; }
.phone-head small { color: var(--muted); font-size: 12px; }
.phone-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 4px; font-size: 14px; }
.phone .msg.out { background: var(--accent); color: #fff; }
.phone .ui-compose { margin: 0 4px 6px; }
.phone .ui-compose .g { border-radius: 50%; background: var(--accent); }
.phone-chip { position: absolute; right: calc(50% - 300px); top: 140px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--rule); box-shadow: 0 16px 34px -18px rgb(17 20 24 / 40%); text-align: left; font-size: 14px; }
.phone-chip .g { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); stroke-width: 2.4; }
.phone-chip b { display: block; }
.phone-chip small { color: var(--muted); }
@media (max-width: 1080px) { .phone-chip { right: 4%; } }
@media (max-width: 720px) { .phone { height: 540px; } .phone-chip { display: none; } }

/* ---------- heading font and corners (chosen in the admin panel) ---------- */
body.hf-serif h1, body.hf-serif h2, body.hf-serif .row h3, body.hf-serif .assistant h3, body.hf-serif .plan-price { font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif; font-weight: 600; letter-spacing: -0.015em; }
body.hf-sans h1, body.hf-sans h2, body.hf-sans .row h3, body.hf-sans .assistant h3, body.hf-sans .plan-price { font-family: var(--font); font-weight: 700; letter-spacing: -0.03em; }
body.hf-heavy h1, body.hf-heavy h2, body.hf-heavy .row h3, body.hf-heavy .assistant h3, body.hf-heavy .plan-price { font-family: var(--font); font-weight: 800; letter-spacing: -0.045em; }
body.r-sharp { --r-card: 4px; --r-btn: 4px; --r-pill: 4px; }
body.r-soft { --r-card: 12px; --r-btn: 8px; --r-pill: 999px; }
body.r-round { --r-card: 26px; --r-btn: 999px; --r-pill: 999px; }
body[class*=' r-'] .btn, body[class*=' r-'] .icon-toggle, body[class*=' r-'] .top-menu { border-radius: var(--r-btn); }
body[class*=' r-'] .row, body[class*=' r-'] .assistant, body[class*=' r-'] .plan, body[class*=' r-'] .store, body[class*=' r-'] .ui,
body[class*=' r-'] .grid-rules li, body[class*=' r-'] .facts li, body[class*=' r-'] .faq details, body[class*=' r-'] .final-in,
body[class*=' r-'] .frame, body[class*=' r-'] .widget, body[class*=' r-'] .row-visual, body[class*=' r-'] .phone-chip { border-radius: var(--r-card) !important; }
body[class*=' r-'] .tag, body[class*=' r-'] .eyebrow, body[class*=' r-'] .notes li { border-radius: var(--r-pill); }

