
/* hero: the text on the left, the live demo on the right */
.st-hero-in { display:grid; grid-template-columns:minmax(0, 1.05fr) minmax(0, .95fr); gap:clamp(32px, 5vw, 72px); align-items:center; }
.ds .st-hero .ds-h1 { font-size:clamp(2.4rem, 3.4vw + 1rem, 4rem); }
.ds .st-hero.long .ds-h1 { font-size:clamp(2.1rem, 2.4vw + 1rem, 3.2rem); line-height:1.08; }
.st-hero .ds-crumbs { margin-bottom:0; }
/* a chip with a bold word reads as one line of text, not as three boxes */
.st-hero .ds-chip { gap:.3em; }
@media (max-width:959px) { .st-hero-in { grid-template-columns:minmax(0, 1fr); } }

/* the live demo: a phone with the card, the controls below it */
.st-demo { display:grid; gap:16px; justify-items:center; width:100%; max-width:460px; margin-inline:auto; }
.st-demo-top { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 12px; width:100%; }
.st-demo-title { font:700 1.08rem/1.2 var(--display); letter-spacing:-.01em; color:var(--ink); }
.st-views { display:inline-flex; gap:4px; padding:4px; border-radius:999px; background:rgba(255,255,255,.72); border:1px solid var(--line); }
.st-view { min-height:44px; padding:0 18px; border:0; border-radius:999px; background:transparent; font:600 .92rem/1 var(--body); color:var(--text); cursor:pointer; transition:background-color .2s, color .2s; }
.st-view:hover { color:var(--accent-strong); }
.st-view[aria-pressed="true"] { background:var(--ink); color:#ffffff; }
.st-stage { position:relative; width:100%; max-width:380px; }
.st-panel { position:relative; display:grid; gap:16px; justify-items:center; width:100%; }
.st-device { max-width:280px; }
.st-screen { display:grid; grid-template-columns:minmax(0, 1fr); gap:14px; align-content:start; min-height:360px; padding:46px 14px 18px; background:linear-gradient(180deg, #f3f6fa, #e7edf4); }
.st-pass { --tone:#8f2550; display:grid; grid-template-columns:minmax(0, 1fr); gap:12px; padding:18px 16px; border-radius:18px; color:#ffffff; background:linear-gradient(150deg, #8f2550, #b93a68); box-shadow:0 12px 28px rgba(10,26,38,.22); }
.st-pass.copper { --tone:#7c3f12; background:linear-gradient(150deg, #7c3f12, #a85a1a); }
.st-pass.blue { --tone:#0b4f8a; background:linear-gradient(150deg, #0b4f8a, #1769b0); }
.st-pass-top { display:grid; gap:6px; font:700 1.02rem/1.2 var(--display); }
/* the small label stands above the name of the shop, so a long name never breaks inside a word */
.st-pass-top i { order:-1; font:600 .66rem/1 var(--body); font-style:normal; letter-spacing:.1em; text-transform:uppercase; }
.st-count { font:800 2.6rem/1 var(--display); letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.st-count small { font:600 1rem/1 var(--body); letter-spacing:0; }
.ds .st-dots { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:8px; }
.st-dots li { display:grid; place-items:center; aspect-ratio:1; border-radius:50%; border:2px dashed rgba(255,255,255,.7); }
.st-dots li.on { border:0; background:#ffffff; }
.st-dots li.on::after { content:""; width:44%; height:24%; margin-top:-8%; border-left:3px solid var(--tone); border-bottom:3px solid var(--tone); transform:rotate(-45deg); }
.st-line { font-size:.86rem; font-weight:500; line-height:1.4; }
.st-toast { justify-self:center; padding:8px 14px; border-radius:999px; background:var(--ink); color:#ffffff; font:600 .84rem/1.2 var(--body); text-align:center; }
.st-demo.is-full .st-toast { background:var(--ok); }
.st-press { animation:st-press .5s var(--ease); }
.st-pop { animation:st-pop .45s var(--ease); }
@keyframes st-press { from { transform:scale(1.9); opacity:.2; } 60% { transform:scale(.92); opacity:1; } to { transform:none; } }
@keyframes st-pop { from { transform:translateY(8px) scale(.94); opacity:0; } to { transform:none; opacity:1; } }
.st-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px; width:100%; }
.st-controls .ds-btn { white-space:normal; text-align:center; }
.st-controls .ds-btn.primary { flex:1 1 100%; flex-wrap:wrap; gap:0 6px; }
.st-sub { font-weight:500; }
.st-hint { flex-basis:100%; text-align:center; font-size:.84rem; line-height:1.45; color:var(--text); }
/* two notes float beside the phone where there is room for them (decoration) */
.st-float { position:absolute; z-index:2; white-space:nowrap; pointer-events:none; }
.st-float.one { right:calc(100% - 78px); top:118px; }
.st-float.two { left:calc(100% - 78px); bottom:96px; }
@media (prefers-reduced-motion: no-preference) { .st-float { animation:st-float 6s ease-in-out infinite; } .st-float.two { animation-delay:-3s; } }
@keyframes st-float { 0%, 100% { transform:translateY(0); } 50% { transform:translateY(-6px); } }
@media (max-width:1279px) { .st-float { display:none; } }

/* the merchant preview of the demo: a small browser window */
.ds-device.browser.st-merchant { display:grid; gap:10px; align-content:start; width:100%; max-width:360px; min-height:474px; padding:50px 14px 16px; font-size:.86rem; line-height:1.4; text-align:left; }
.st-m-head { font:700 .98rem/1.2 var(--display); color:var(--ink); }
.st-m-stats { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin:0; }
.st-m-stats div { display:grid; gap:4px; align-content:space-between; padding:10px; border-radius:12px; background:var(--bg); border:1px solid var(--line); }
.st-m-stats dt { font-size:.72rem; line-height:1.2; color:var(--muted); }
.st-m-stats dd { margin:0; font:800 1.35rem/1 var(--display); letter-spacing:-.03em; font-variant-numeric:tabular-nums; color:var(--ink); }
.ds .st-m-label { margin-top:4px; font:600 .7rem/1.2 var(--body); letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.ds .st-m-list { display:grid; gap:6px; }
.st-m-list li { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; padding:8px 10px; border-radius:10px; border:1px solid var(--line); background:var(--surface); }
.st-m-list li.me { border-color:var(--accent); background:var(--accent-soft); }
.st-m-list span { flex:1 1 auto; color:var(--text); }
.st-m-list b { color:var(--ink); font-variant-numeric:tabular-nums; }
.st-m-list em { padding:3px 8px; border-radius:999px; background:#e3f4ec; color:var(--ok); font-style:normal; font-weight:600; font-size:.72rem; }
.st-m-list em.vip { background:#fbf0dc; color:var(--warn); }
.ds .st-m-more { display:flex; flex-wrap:wrap; gap:6px; }
.st-m-more li { padding:4px 10px; border-radius:999px; background:var(--bg); border:1px solid var(--line); font-size:.76rem; color:var(--text); }

/* steps with the screens of the real app in phone frames */
.st-step-media { margin-top:14px; }
.ds-device.st-phone { max-width:210px; margin-inline:0; border-width:7px; border-radius:30px; }
.ds-device.st-phone::before { display:none; }
.ds-device .shot, .st-lead-shot .shot { max-width:none; border:0; border-radius:0; box-shadow:none; }
@media (min-width:900px) { .st-steps > li { grid-template-rows:auto auto 1fr auto; } }
.st-steps + .ds-note { margin-top:clamp(28px, 4vw, 48px); }

/* functions: sixteen compact cards */
.ds .st-features { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:20px; }
.st-feature { display:grid; gap:8px; align-content:start; padding:22px; }
.st-feature-top { display:flex; align-items:center; gap:12px; }
.st-feature .ds-icon { flex:none; width:42px; height:42px; margin:0; border-radius:12px; }
.ds .st-feature .ds-h3 { font-size:1.05rem; }
.st-feature p { font-size:.95rem; line-height:1.55; }
@media (max-width:1099px) { .ds .st-features { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:599px) { .ds .st-features { grid-template-columns:minmax(0, 1fr); gap:14px; } }
.ds .st-tiles { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:24px; }
.st-tiles .ds-card { display:grid; gap:8px; align-content:start; height:100%; }
@media (max-width:1099px) { .ds .st-tiles { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:599px) { .ds .st-tiles { grid-template-columns:minmax(0, 1fr); gap:16px; } }

/* merchant area: the large picture, then the screens in small browser windows */
.st-lead-shot { max-width:980px; margin:0 auto clamp(32px, 5vw, 64px); border-radius:var(--r-l); overflow:hidden; border:1px solid var(--line); box-shadow:var(--shadow-2); background:var(--surface); }
.st-shots { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:28px 20px; }
.st-shots figure { display:grid; gap:10px; align-content:start; margin:0; }
.st-shots .ds-device.browser { padding-top:22px; border-radius:12px; box-shadow:var(--shadow-1); transition:box-shadow .3s var(--ease), transform .3s var(--ease); }
.st-shots .ds-device.browser:hover { box-shadow:var(--shadow-2); transform:translateY(-3px); }
.st-shots .ds-device.browser::after { height:22px; }
.st-shots .ds-device.browser::before { top:8px; left:10px; width:6px; height:6px; box-shadow:11px 0 0 #f2d59b, 22px 0 0 #a9dcb5; }
.st-shots figcaption { font-size:.92rem; line-height:1.45; color:var(--text); }
@media (max-width:1023px) { .st-shots { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:600px) {
  /* the portrait crop still shows a strip of the laptop beside the phone: cut in to the phone itself */
  .st-lead-shot { max-width:260px; border:8px solid var(--ink); border-radius:34px; }
  .ds .st-lead-shot img { width:118%; max-width:none; margin:-8% 0 -2% -9.5%; aspect-ratio:10 / 21; object-fit:cover; object-position:center; }
  .st-shots { display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x mandatory; margin-inline:calc(-1 * var(--gutter)); padding:4px var(--gutter) 14px; }
  .st-shots figure { flex:0 0 84%; scroll-snap-align:center; }
}

/* paper or digital: two cards side by side */
.st-versus { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:24px; max-width:920px; margin-inline:auto; }
.st-versus .ds-card { display:grid; gap:16px; align-content:start; }
.ds .st-versus ul { display:grid; gap:12px; }
.st-versus li { position:relative; padding-left:32px; }
.st-versus li::before { content:""; position:absolute; left:0; top:.2em; width:20px; height:20px; border-radius:50%; }
.st-versus .bad { background:transparent; border-style:dashed; border-color:var(--line-strong); box-shadow:none; }
.st-versus .bad li::before { background:linear-gradient(45deg, transparent 44%, #ffffff 44% 56%, transparent 56%) center / 10px 10px no-repeat, linear-gradient(-45deg, transparent 44%, #ffffff 44% 56%, transparent 56%) center / 10px 10px no-repeat, var(--bad); }
.st-versus .good { border:2px solid var(--accent); box-shadow:var(--shadow-glow); }
.st-versus .good li::before { background:var(--ok); }
.st-versus .good li::after { content:""; position:absolute; left:5px; top:calc(.2em + 5px); width:10px; height:6px; border-left:2px solid #ffffff; border-bottom:2px solid #ffffff; transform:rotate(-45deg); }
@media (max-width:700px) { .st-versus { grid-template-columns:minmax(0, 1fr); } }

/* industries: three cards that lead on */
.st-branches { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:24px; }
.ds a.st-branch { display:grid; gap:10px; align-content:start; }
.st-branch .ds-more { margin-top:6px; }
@media (max-width:859px) { .st-branches { grid-template-columns:minmax(0, 1fr); } }
.ds .st-after { margin-top:clamp(28px, 4vw, 48px); }
.st-after a { font-weight:600; }

/* prices: three plans, then the single building blocks */
.st-plans { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:24px; align-items:stretch; }
.st-plans .ds-price { display:flex; flex-direction:column; }
.st-plans .ds-price .ds-btn { margin-top:auto; align-self:flex-start; }
.st-plans .ds-badge { position:absolute; top:-14px; left:24px; background:var(--accent); color:var(--on-accent); }
.st-plans .ds-price-amount small { display:block; margin-top:8px; }
.st-nowrap { white-space:nowrap; }
.st-line2 { display:block; }
.ds-price-amount .st-from { font:600 1.05rem/1 var(--body); letter-spacing:0; color:var(--ink); }
@media (max-width:1023px) { .st-plans { grid-template-columns:minmax(0, 1fr); max-width:560px; margin-inline:auto; } }
.st-addons { max-width:920px; margin:clamp(32px, 5vw, 56px) auto 0; }
.st-addons .ds-h3 { margin-bottom:12px; }
.st-addon { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; border-top:1px solid var(--line); }
.st-addon b { display:block; color:var(--ink); }
.st-addon b a { display:inline-flex; align-items:center; min-height:44px; }
@media (hover: hover) and (pointer: fine) { .st-addon b a { min-height:28px; } }
.st-amount { flex:none; font:800 1.2rem/1 var(--display); letter-spacing:-.03em; font-variant-numeric:tabular-nums; white-space:nowrap; color:var(--ink); }
.st-addons + .ds-note { margin:24px auto 0; text-align:center; }

/* comparison: one table in a card, our column set apart */
.st-cmp-wrap { overflow-x:auto; border-radius:var(--r-l); border:1px solid var(--line); background:var(--surface); box-shadow:var(--shadow-1); }
.st-cmp { width:100%; min-width:780px; border-collapse:separate; border-spacing:0; font-size:.95rem; line-height:1.5; }
.st-cmp th, .st-cmp td { padding:16px 18px; text-align:left; vertical-align:top; border-bottom:1px solid var(--line); }
.st-cmp tbody tr:last-child > * { border-bottom:0; }
.st-cmp thead th { font:700 1rem/1.3 var(--display); color:var(--ink); background:var(--bg); }
.st-cmp tbody th { position:sticky; left:0; z-index:1; width:21%; font-weight:600; color:var(--ink); background:var(--surface); }
.st-cmp td { position:relative; padding-left:46px; }
.st-cmp td::before { content:""; position:absolute; left:18px; top:18px; width:18px; height:18px; border-radius:50%; }
.st-cmp td.yes::before { background:var(--ok); }
.st-cmp td.yes::after { content:""; position:absolute; left:22px; top:23px; width:9px; height:5px; border-left:2px solid #ffffff; border-bottom:2px solid #ffffff; transform:rotate(-45deg); }
.st-cmp td.no::before { background:linear-gradient(45deg, transparent 44%, #ffffff 44% 56%, transparent 56%) center / 9px 9px no-repeat, linear-gradient(-45deg, transparent 44%, #ffffff 44% 56%, transparent 56%) center / 9px 9px no-repeat, var(--bad); }
.st-cmp td.mid::before { background:linear-gradient(#ffffff, #ffffff) center / 8px 2px no-repeat, #6b7c8d; }
.st-cmp td.us { background:var(--accent-soft); color:var(--ink); }
.st-cmp thead th.us { background:var(--accent); color:var(--on-accent); }
.st-cmp-wrap + .ds-note { margin:24px auto; text-align:center; }
@media (max-width:760px) {
  .st-cmp-wrap { overflow:visible; border:0; border-radius:0; background:transparent; box-shadow:none; }
  .st-cmp, .st-cmp tbody th, .st-cmp td { display:block; }
  .st-cmp { min-width:0; }
  .st-cmp thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .st-cmp tbody { display:grid; gap:16px; }
  .st-cmp tr { display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--line); border-radius:var(--r-m); background:var(--surface); box-shadow:var(--shadow-1); }
  .st-cmp tbody th { order:-2; position:static; width:auto; padding:14px 16px; background:var(--bg); font:700 1.02rem/1.3 var(--display); }
  .st-cmp td { padding:12px 16px 12px 14px; border-left:4px solid #6b7c8d; }
  .st-cmp td.yes { border-left-color:var(--ok); }
  .st-cmp td.no { border-left-color:var(--bad); }
  .st-cmp td.us { order:-1; }
  .st-cmp tbody tr > * { border-bottom:1px solid var(--line); }
  .st-cmp tbody tr > td:nth-of-type(2) { border-bottom:0; }
  .st-cmp td[data-label]::before { content:attr(data-label); position:static; display:block; width:auto; height:auto; margin-bottom:2px; border-radius:0; background:none; font:600 .72rem/1.3 var(--body); letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
  .st-cmp td.us[data-label]::before { color:var(--accent-strong); }
  .st-cmp td.yes::after { display:none; }
}

/* try it: the text beside the small demo */
.st-try { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:clamp(32px, 5vw, 72px); align-items:center; }
.st-try-text { display:grid; gap:16px; justify-items:start; }
@media (max-width:899px) { .st-try { grid-template-columns:minmax(0, 1fr); } }
