/* fortikds.com: one stylesheet for every page. Light theme only (no dark mode).
   Colors are fortipos.com's (D:\APP_Project\FortiPOS-Website\site.css): paper, surface, ink, ink-soft, line,
   blue, blue-soft, the dark footer and its text colors, and the amber focus ring. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f2f5f9;
  --bg-tint: #e3ecf8;
  --text: #0d1b2e;
  --muted: #46556b;
  --border: #d9e0ea;
  --border-strong: #aab4bd;
  --brand: #0a4da2;
  --brand-ink: #ffffff;
  --link: #0a4da2;
  --footer-bg: #0d1b2e;
  --footer-text: #b9c6d8;
  --footer-link: #e3eaf3;
  --footer-title: #8193ab;
  --footer-line: rgba(255, 255, 255, 0.1);
  --ok-bg: #e7f6ec;
  --ok-ink: #135c2e;
  --warn-bg: #fff4e0;
  --warn-ink: #7a4a00;
  --bad-bg: #fdecec;
  --bad-ink: #a11b1b;
  --info-bg: #e8f1fb;
  --info-ink: #17426e;
  --muted-bg: #eef1f3;
  --muted-ink: #3d4752;
  --danger: #b42318;
  --danger-dark: #8f1c13;
  --focus: #f0a020;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 2px 6px rgba(16, 24, 40, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

:root:lang(zh-Hant) {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang TC",
    "Microsoft JhengHei", sans-serif;
}

/* Texts load from /i18n/*.json. Hide the page until they are in place; show it anyway after 3 seconds. */
html.i18n-loading body {
  visibility: hidden;
  animation: fk-reveal 0s linear 3s forwards;
}

@keyframes fk-reveal {
  to {
    visibility: visible;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Keeps focused fields and #anchors clear of the sticky header. The only offset: a heading's own scroll-margin adds
     to it (they used to land 168px down, review 9). */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Titles and messages the page moves focus to (so screen readers read them out) are not controls: no orange frame. */
[tabindex="-1"]:focus-visible {
  outline: none;
}

[hidden] {
  display: none !important;
}

.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;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 8px;
  color: #fff;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 520px;
}

.medium {
  max-width: 760px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.center {
  text-align: center;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.stack > * + * {
  margin-top: 16px;
}

/* ---------- Header ----------
   Redesigned 2026-11-17 (user: "resigen the ui for header", the menu row): 72 px tall; the logo left, the menu centered,
   Log in as a plain link and Start free trial as the one button on the right, then the language after a thin line.
   The current page has a soft blue background; a list shows each page with an icon, its name and one short line. */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: box-shadow 0.2s ease;
}

/* A light shadow once the page is scrolled (site.js). */
.site-header.is-scrolled {
  box-shadow: 0 8px 20px -14px rgb(13 27 46 / 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  max-width: 1320px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
  flex: none;
}

.site-footer .brand-logo {
  height: 30px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

/* The menu, centered between the logo and the buttons. */
.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  background: var(--bg-soft);
  color: var(--text);
}

/* The current page: blue words on a soft blue background. */
.nav-link[aria-current="page"] {
  background: var(--bg-tint);
  color: var(--brand);
}

/* An item with a list (Setup, Help): its link and its arrow are one rounded block. */
.nav-group {
  position: relative;
}

.nav-top {
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.nav-top > .nav-link,
.nav-top > .nav-link:hover {
  padding-right: 2px;
  background: transparent;
}

.nav-top:hover,
.nav-group.is-open > .nav-top {
  background: var(--bg-soft);
}

.site-nav .nav-top:has(> .nav-link[aria-current="page"]) {
  background: var(--bg-tint);
}

.nav-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 38px;
  margin-right: 4px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.nav-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.nav-more:hover,
.nav-top:has(> .nav-link[aria-current="page"]) .nav-more {
  color: var(--brand);
}

.nav-group.is-open .nav-more svg {
  transform: rotate(180deg);
}

/* The list: a white panel under the item; each page with an icon, its name and one short line. */
.nav-list {
  display: none;
  position: absolute;
  left: -8px;
  top: calc(100% + 12px);
  z-index: 30;
  width: 360px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgb(13 27 46 / 0.35), 0 2px 6px rgb(13 27 46 / 0.06);
}

/* The pointer can move from the item down into the list without the list closing. */
.nav-list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-group.is-open > .nav-list {
  display: block;
}

.nav-sub {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.nav-sub:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.nav-sub-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--bg-tint);
  color: var(--brand);
}

.nav-sub-icon svg {
  width: 20px;
  height: 20px;
}

.nav-sub-words {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nav-sub-name {
  font-weight: 600;
  line-height: 1.3;
}

.nav-sub-desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.35;
}

.nav-sub:hover .nav-sub-name,
.nav-sub[aria-current="page"] .nav-sub-name {
  color: var(--brand);
}

.nav-sub[aria-current="page"] {
  background: var(--bg-tint);
}

.nav-sub[aria-current="page"] .nav-sub-icon {
  background: #fff;
}

@media (hover: hover) and (min-width: 1201px) {
  .nav-group:hover > .nav-list {
    display: block;
  }

  .nav-group:hover > .nav-top {
    background: var(--bg-soft);
  }

  .nav-group:hover .nav-more svg {
    transform: rotate(180deg);
  }

  /* Escape hid it (site.js escapeList): hidden until the pointer leaves the item. */
  .nav-group.is-dismissed > .nav-list {
    display: none;
  }

  .nav-group.is-dismissed .nav-more svg {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .nav-link,
  .nav-top,
  .nav-more svg {
    transition: none;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta .btn,
.bar-cta .btn {
  white-space: nowrap;
  font-weight: 600;
}

/* On a computer, Log in is a plain link next to the one button, and a thin line comes before the language button. */
@media (min-width: 1201px) {
  .nav-cta .nav-login {
    padding-left: 14px;
    padding-right: 14px;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--text);
  }

  .nav-cta .nav-login:hover {
    background: var(--bg-soft);
    color: var(--brand);
    transform: none;
    box-shadow: none;
  }

  .lang-drop {
    margin-left: 6px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
  }
}

/* The bar copy of the main button shows only while the menu is folded into the menu button. */
.bar-cta {
  display: none;
}

/* Language: a small "EN" button after the main buttons, with a short list. */
.lang-drop {
  position: relative;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-button:hover,
.lang-button[aria-expanded="true"] {
  background: var(--bg-soft);
  color: var(--text);
}

.lang-button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.lang-button svg:last-child {
  width: 14px;
  height: 14px;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* The menu's own list rules must not turn this list into a row. */
.site-nav .lang-menu {
  display: block;
  flex: none;
}

.site-nav .lang-menu[hidden],
.lang-menu[hidden] {
  display: none;
}

.lang-menu button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lang-menu button:hover {
  background: var(--bg-soft);
}

.lang-menu button[aria-pressed="true"] {
  background: var(--bg-tint);
  color: var(--brand);
  font-weight: 600;
}

.lang-row {
  display: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Below this width the menu opens from a button (the full row needs 1170 px in Spanish, the longest; measured 2026-11-17). */
@media (max-width: 1200px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* The open menu: under the bar, scrolling on its own when it is taller than the window. */
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    padding: 12px 10px;
    font-size: 1.02rem;
  }

  .nav-top > .nav-link {
    flex: 1;
  }

  .nav-more {
    width: 44px;
    height: 44px;
    margin-right: 0;
  }

  .nav-more svg {
    width: 20px;
    height: 20px;
  }

  /* In the phone menu an item's list opens in place, under it, from the arrow at the right: icon and name only. */
  .nav-list {
    position: static;
    width: auto;
    padding: 4px 0 8px 8px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-list::before {
    display: none;
  }

  .nav-sub {
    align-items: center;
    padding: 8px 10px;
  }

  .nav-sub-icon {
    width: 32px;
    height: 32px;
  }

  .nav-sub-icon svg {
    width: 18px;
    height: 18px;
  }

  .nav-sub-desc {
    display: none;
  }

  /* The main button stays in the bar, next to the menu button. */
  .bar-cta {
    display: flex;
    margin-left: auto;
  }

  .bar-cta + .nav-toggle {
    margin-left: 8px;
  }

  /* In the open menu: the big Log in and Start free trial buttons, then a small row of languages. */
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }

  .nav-cta {
    flex-wrap: wrap;
  }

  /* Side by side and the same width when both fit, else one under the other (Spanish at 360 px: Codex review
     2026-11-17). */
  .nav-cta .btn {
    flex: 1 1 0;
    min-width: max-content;
    min-height: 48px;
    font-size: 1.05rem;
  }

  .lang-drop {
    display: none;
  }

  .lang-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .lang-row button {
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
  }

  .lang-row button:hover {
    background: var(--bg-soft);
    color: var(--text);
  }

  .lang-row button[aria-pressed="true"] {
    border-color: var(--brand);
    background: var(--bg-tint);
    color: var(--brand);
    font-weight: 600;
  }
}

/* On a phone the bar has room only for the logo and the menu button. */
@media (max-width: 520px) {
  .bar-cta {
    display: none;
  }

  .bar-cta + .nav-toggle {
    margin-left: auto;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 56px;
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  color: var(--footer-text);
  font-size: 0.95rem;
}

.site-footer .brand,
.site-footer .brand:hover {
  color: #fff;
}

.site-footer .muted {
  color: var(--footer-text);
}

/* The brand, then the same groups as the header: Setup, Product, Help, Legal. */
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 24px;
}

.footer-inner h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--footer-title);
  margin-bottom: 8px;
}

.footer-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-inner li {
  margin: 6px 0;
}

/* Footer links without an underline (2026-11-17, user: "remove the underline in footer for each link"); white when
   pointed at. */
.footer-inner a {
  color: var(--footer-link);
  text-decoration: none;
}

.footer-inner a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--footer-line);
  padding-top: 16px;
  padding-bottom: 24px;
  color: var(--footer-title);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  /* A raised button, not a flat box. */
  box-shadow: 0 1px 2px rgb(13 27 46 / 0.14), 0 6px 14px -6px rgb(10 77 162 / 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
}

/* fortipos.com's button hover: the same blue, a little brighter, lifted a little. */
.btn:hover {
  filter: brightness(1.08);
  color: var(--brand-ink);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgb(13 27 46 / 0.16), 0 10px 20px -8px rgb(10 77 162 / 0.6);
}

.btn:active {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn:hover {
    transition: none;
    transform: none;
  }
}

.btn:disabled,
.btn[aria-disabled="true"],
.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
  filter: none;
  transform: none;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 1px 2px rgb(13 27 46 / 0.08), 0 4px 12px -6px rgb(13 27 46 / 0.22);
}

.btn-secondary:hover {
  filter: none;
  background: var(--bg-tint);
  color: var(--brand);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: none;
}

.btn-ghost:hover {
  filter: none;
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  filter: none;
  background: var(--danger-dark);
  border-color: var(--danger-dark);
  color: #fff;
}

.btn-danger-outline {
  background: #fff;
  color: var(--danger);
  border-color: var(--danger);
}

.btn-danger-outline:hover {
  filter: none;
  background: var(--bad-bg);
  color: var(--danger-dark);
}

.btn-sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.92rem;
}

.btn-lg {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn.is-busy::after {
  content: "";
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: fk-spin 0.8s linear infinite;
}

@keyframes fk-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn.is-busy::after {
    animation: none;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 48px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.page-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 32px;
}

/* The line under a page title uses the page's full width, so the title block doesn't hang on the left (2026-11-17). */
.page-head .lead {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-weight: 600;
  color: var(--brand);
  background: var(--bg-tint);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

/* ---------- Home ---------- */

.hero {
  background: linear-gradient(180deg, var(--bg-tint) 0%, #fff 100%);
  padding: 56px 0 48px;
}

/* fortipos.com's hero: the text centered, then the big screenshot below it. */
.container-wide {
  max-width: 1240px;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}

.hero-copy .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero-copy .cta-row {
  justify-content: center;
}

.hero-shot {
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 12px;
}

/* A real screenshot from the app, in the white card the home page figure always used. */
.shot {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.shot figcaption {
  margin: 10px 4px 2px;
  color: var(--muted);
  font-size: 0.95rem;
}

.shot figcaption a {
  font-weight: 600;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.feature svg {
  width: 32px;
  height: 32px;
  color: var(--brand);
  margin-bottom: 8px;
}

.feature h3 {
  margin-bottom: 6px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.band {
  background: var(--brand);
  color: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
}

.band h2 {
  color: #fff;
}

.band p {
  color: var(--bg-tint);
}

.band .btn {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
}

.band .btn:hover {
  filter: none;
  background: var(--bg-tint);
  color: var(--brand);
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .features,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }
}

.band .cta-row {
  justify-content: center;
  margin-bottom: 0;
}

/* Home, last section: the price and the free trial side by side, in plain text. */
.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Each column is a column of its own: the button and its small line sit at the bottom, so both buttons line up. */
.offer-col {
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.offer-col h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.offer-trial {
  background: var(--bg-soft);
  border-left: 1px solid var(--border);
}

.offer-price {
  margin: 0;
}

.offer-amount {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
}

.offer-line {
  margin: 0 0 4px;
}

.offer-line strong {
  font-weight: 600;
}

.offer-action {
  margin-top: auto;
  padding-top: 24px;
}

.offer-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .offer {
    grid-template-columns: 1fr;
  }

  .offer-col {
    padding: 24px 20px;
  }

  .offer-trial {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

/* ---------- Features, settings guide and POS setup pages ---------- */

.after-shot {
  margin-top: 24px;
}

.story {
  list-style: none;
  counter-reset: story;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.story-step {
  counter-increment: story;
}

/* The numbered circle of the home page steps. */
.story-step::before {
  content: counter(story);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.story-step h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.story-step p {
  max-width: 760px;
}

.story-shots {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 12px;
  align-items: start;
}

.story-shots figure {
  margin: 0;
}

.story-shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.story-shots figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.story-note {
  margin-top: 20px;
  max-width: 760px;
}

@media (max-width: 760px) {
  .story-shots {
    grid-template-columns: 1fr 1fr;
  }

  .story-shots .story-customer {
    grid-column: 1 / -1;
  }
}

/* A section title and its line, centered over full-width cards (Setup, "Choose your POS"). */
.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Setup, "Choose your POS": three cards of one size in a row, Clover and Square in their own look and Local API in
   the site's colors; each a name, one or two lines and a button at the bottom. */
.pos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pos-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px;
  border-radius: 16px;
}

.pos-card p {
  margin: 0;
}

.pos-card > .btn,
.pos-actions {
  margin-top: auto;
}

/* Clover's colors and button shape, as on fortipos.com's Clover page. */
.pos-clover {
  background: #f4f8f1;
  border: 1px solid #d8e4d2;
  border-top: 4px solid #228800;
  color: #004400;
  box-shadow: var(--shadow);
}

.pos-logo {
  margin: 0 0 4px;
  line-height: 0;
}

.pos-logo img {
  width: 140px;
  height: auto;
}

.pos-clover .btn {
  background: #228800;
  border-color: #228800;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 1px 2px rgb(0 68 0 / 0.16), 0 6px 14px -6px rgb(34 136 0 / 0.55);
}

.pos-clover .btn:hover {
  color: #fff;
  box-shadow: 0 2px 4px rgb(0 68 0 / 0.18), 0 10px 20px -8px rgb(34 136 0 / 0.6);
}

/* Square: its name in plain text on a plain white card with a thin border. */
.pos-square {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.pos-name {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 40px;
}

/* Local API (any other POS, connected by its maker): not one POS brand, so a plain white card with a thin border and
   the site's blue, the same size as the other two (2026-11-17: was a dashed box with three steps and a bare web
   address as its link). Its name sits on the same 40 px line as the Clover logo and the Square name. */
.pos-api {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.pos-api-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pos-api-icon {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 8px;
  border-radius: 10px;
  background: var(--bg-tint);
  color: var(--brand);
  box-sizing: content-box;
}

/* The Local API docs button, and the Contact us link next to it. */
.pos-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.pos-contact {
  font-weight: 600;
}

@media (max-width: 900px) {
  .pos-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* Help, above the questions: two cards of Help's own pages, the FortiKDS settings guide and Contact us (2026-11-17:
   the POS guides are under Setup only). An icon in a tinted square, the name and one line; the whole card is the link. */
.help-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 44px;
}

.help-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.help-card:hover {
  border-color: var(--brand);
  box-shadow: 0 10px 24px -14px rgb(10 77 162 / 0.45), var(--shadow);
  color: var(--text);
}

.help-card-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-tint);
  color: var(--brand);
}

.help-card-icon svg {
  width: 26px;
  height: 26px;
}

.help-card-words {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-card-name {
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 600;
}

.help-card-name::after {
  content: "\2192";
  margin-left: 8px;
}

.help-card-text {
  color: var(--muted);
}

@media (max-width: 760px) {
  .help-cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .help-card {
    transition: none;
  }
}

/* Home, under the four steps: which POS systems work, in one white box with the Local API docs button. */
.pos-note {
  display: flex;
  align-items: center;
  gap: 14px 24px;
  margin: 0 0 24px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pos-note p {
  flex: 1;
  margin: 0;
}

.pos-note strong {
  font-weight: 600;
}

.pos-note .btn {
  flex: none;
}

@media (max-width: 640px) {
  .pos-note {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Features: a list under a picture (or a section of only text) as wide as the pictures, in two columns, so it
   doesn't hang on the left of the page (2026-11-17, user: "why the content of the page is shfit to the left"). */
/* (".prose" sets 760 px further down the file, so both class names here.) */
.prose.prose-wide {
  max-width: none;
}

.prose-wide ul {
  columns: 2;
  column-gap: 48px;
}

.prose-wide ul > li {
  break-inside: avoid;
}

/* The first item of a column starts at its top. */
.prose-wide ul > li:first-child {
  margin-top: 0;
}

@media (max-width: 760px) {
  .prose-wide ul {
    columns: 1;
  }
}

/* Downloads, "After you install": the three steps in numbered boxes across the page, under the three download
   cards. */
.prose.step-boxes {
  max-width: none;
}

.prose.step-boxes > ol {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 16px 0 20px;
  padding: 0;
}

.prose.step-boxes > ol > li {
  counter-increment: step;
  margin: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.prose.step-boxes > ol > li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

@media (max-width: 760px) {
  .prose.step-boxes > ol {
    grid-template-columns: 1fr;
  }
}

/* Settings guide: one setting after another, each under a thin line. */
.settings-list {
  margin-top: 24px;
}

.settings-list h3 {
  margin-top: 1.4em;
  padding-top: 1em;
  border-top: 1px solid var(--border);
}

.settings-list h3 + p,
.settings-list h3 + p + p {
  margin-bottom: 0.35em;
}

.to-top {
  margin: 24px 0 0;
}

/* FortiKDS settings guide (2026-11-17, user: "it should on the left side, so easier to navigation, make the content
   for each section in sections"): the side list on the left stays in view and marks the section being read; the title
   and the section boxes fill the column beside it. On a phone: the title, the list, then the boxes. */
.guide-page {
  background: var(--bg-soft);
  padding-top: 40px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  grid-template-areas:
    "toc head"
    "toc body";
  column-gap: 40px;
  align-items: start;
}

.guide-head {
  grid-area: head;
  margin-bottom: 24px;
}

.guide-head h1 {
  margin-bottom: 10px;
}

.guide-head .lead {
  margin: 0;
}

.guide-toc {
  grid-area: toc;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 16px 10px;
  background: #fff;
  border: 1px solid var(--border);
}

.guide-toc h2 {
  margin: 0 0 6px;
  padding: 0 10px;
}

.guide-toc li {
  margin: 0;
}

.guide-toc a {
  display: block;
  padding: 8px 10px 8px 12px;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  text-decoration: none;
}

.guide-toc a:hover {
  background: var(--bg-soft);
  color: var(--brand);
}

/* The section being read (site.js marks it while scrolling). */
.guide-toc a[aria-current] {
  border-left-color: var(--brand);
  background: var(--bg-tint);
  color: var(--brand);
  font-weight: 600;
}

.guide-body {
  grid-area: body;
}

.guide-card {
  margin-bottom: 24px;
  padding: 28px 32px 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.guide-card:last-child {
  margin-bottom: 0;
}

/* The text fills the box, as wide as the picture. */
.guide-card .prose {
  max-width: none;
}

.guide-card .shot {
  margin-top: 4px;
  box-shadow: none;
}

/* The side list is always in view on a computer, so "Back to top" shows only on a phone. */
.guide-card .to-top {
  display: none;
}

@media (max-width: 860px) {
  .guide-page {
    padding-top: 28px;
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "toc"
      "body";
  }

  .guide-toc {
    max-height: none;
    margin-bottom: 24px;
  }

  .guide-toc ul {
    columns: 2 150px;
    column-gap: 8px;
  }

  .guide-toc li {
    break-inside: avoid;
  }

  .guide-card {
    padding: 20px 16px 22px;
  }

  .guide-card .to-top {
    display: block;
  }
}

/* ---------- Pricing ---------- */

.page-head-center {
  text-align: center;
}

.page-head-center .lead {
  margin-left: auto;
  margin-right: auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
  max-width: 980px;
}

/* The plan: one card with the price, the trial button and everything included. */
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 5px solid var(--brand);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 1px 2px rgb(13 27 46 / 0.06), 0 18px 40px -18px rgb(13 27 46 / 0.3);
}

/* The price on the left, the trial badge on the right of the same row. */
.plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}

.plan-amount {
  font-size: clamp(2.1rem, 5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}

.plan-per {
  color: var(--muted);
  font-size: 1.05rem;
}

.plan-sub {
  margin: 6px 0 0;
  color: var(--muted);
}

.plan-extra {
  margin: 16px 0 22px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 1.02rem;
}

.plan-extra strong {
  color: var(--brand);
}

.plan-note {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.plan-included-title {
  margin: 26px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 1rem;
}

/* A blue check in a light circle before each line. */
.checklist ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 32px;
  margin: 0;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a4da2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

/* The calculator: a stepper, the monthly total and how it adds up. */
.calc-card {
  border-radius: 18px;
  padding: 28px;
}

.calc-card h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.calc-label {
  display: block;
  margin: 14px 0 8px;
  font-weight: 600;
}

.stepper {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  max-width: 260px;
}

.stepper-btn {
  flex: none;
  width: 52px;
  border: 0;
  background: var(--bg-soft);
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.stepper-btn:hover:not(:disabled) {
  background: var(--bg-tint);
}

.stepper-btn:disabled {
  color: var(--border-strong);
  cursor: not-allowed;
}

.stepper input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-total {
  margin: 20px 0 4px;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--brand);
  line-height: 1.15;
}

.calc-breakdown {
  margin: 0 0 14px;
  color: var(--text);
}

.examples-title {
  margin: 22px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 1rem;
}

.price-examples {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-examples li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.price-examples li:last-child {
  border-bottom: 0;
}

.price-examples strong {
  font-variant-numeric: tabular-nums;
}

/* Questions: one line each, opening on a click. */
.faq-title {
  margin-bottom: 20px;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.faq summary {
  position: relative;
  list-style: none;
  padding: 16px 48px 16px 18px;
  font-weight: 600;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .plan,
  .calc-card {
    padding: 24px;
  }
}

/* ---------- Cards, notices, chips ---------- */

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card > :last-child {
  margin-bottom: 0;
}

.card h2 {
  font-size: 1.3rem;
}

.card-soft {
  background: var(--bg-soft);
  box-shadow: none;
}

.notice {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 0 0 16px;
  border: 1px solid transparent;
}

.notice > :last-child {
  margin-bottom: 0;
}

.notice-title {
  font-weight: 600;
}

.notice-ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
  border-color: #b7e2c4;
}

.notice-warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-color: #f1d29c;
}

.notice-bad {
  background: var(--bad-bg);
  color: var(--bad-ink);
  border-color: #f3c0c0;
}

.notice-info {
  background: var(--info-bg);
  color: var(--info-ink);
  border-color: #c3d9f1;
}

.notice a {
  color: inherit;
  font-weight: 600;
}

/* A short label as plain text (plain design: no pill shapes). */
.chip {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-ink);
}

/* A status as plain text with a small coloured dot before it. */
.state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--text);
}

.state::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a949e;
}

.state-ok::before {
  background: #1f8a4c;
}

.state-warn::before {
  background: #c27c0e;
}

.state-bad::before {
  background: var(--danger);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a949e;
  margin-right: 6px;
  vertical-align: middle;
}

.dot-on {
  background: #1f8a4c;
}

/* ---------- Prose (long texts from the language files) ---------- */

.prose {
  max-width: 760px;
}

/* Text pages (terms, privacy, deleting an account): one centered column for the title and the text. */
.container-text {
  max-width: 820px;
}

.container-text .prose {
  max-width: none;
}

.prose h2 {
  margin-top: 1.6em;
  padding-top: 0.2em;
}

.prose h3 {
  margin-top: 1.3em;
}

.prose > :first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}

.prose li {
  margin: 0.35em 0;
}

.prose .callout {
  background: var(--bg-soft);
  border-left: 4px solid var(--brand);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.with-aside {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 88px;
  font-size: 0.95rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.toc h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li {
  margin: 8px 0;
}

@media (max-width: 860px) {
  .with-aside {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .toc {
    position: static;
  }
}

/* A table of contents at the top of a page, above full-width pictures (settings guide). */
.toc.toc-inline {
  position: static;
}

.toc-inline ul {
  columns: 3 220px;
  column-gap: 24px;
}

.toc-inline li {
  break-inside: avoid;
  margin: 0 0 8px;
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table th,
.table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table thead th {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  background: var(--bg-soft);
}

.table tfoot td,
.table tfoot th {
  font-weight: 700;
  border-bottom: none;
}

.num {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .table-stack thead {
    display: none;
  }

  .table-stack,
  .table-stack tbody,
  .table-stack tr,
  .table-stack th,
  .table-stack td {
    display: block;
    width: 100%;
  }

  .table-stack tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 8px 12px;
  }

  .table-stack th,
  .table-stack td {
    border: none;
    padding: 6px 0;
    text-align: left !important;
  }

  .table-stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
  }
}

/* ---------- Developer pages (/developers/local-api, English only) ---------- */

/* Plain: thin borders, nothing heavier than 600. Fits a 390 px phone: a long code line scrolls sideways inside its own
   box, and each table row becomes a small box of its own (.table-stack). */
.dev h1,
.dev h2,
.dev h3,
.dev strong {
  font-weight: 600;
}

/* A grid column is at least as wide as its longest code line; this lets the text column shrink to the screen instead,
   so the page itself never scrolls sideways. */
.dev .with-aside > * {
  min-width: 0;
}

/* Code and tables may use the whole column; running text keeps a comfortable line length. */
.dev .prose {
  max-width: 920px;
}

.dev .prose > p,
.dev .prose > ul,
.dev .prose > ol {
  max-width: 760px;
}

.dev .prose h3 {
  margin-top: 1.6em;
}

.dev code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.875em;
}

.dev :not(pre) > code {
  padding: 0.1em 0.3em;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-soft);
  overflow-wrap: break-word;
}

.dev pre {
  margin: 0 0 1.25em;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  line-height: 1.5;
}

.dev pre code {
  font-size: 0.8125rem;
}

.dev .table-wrap {
  margin: 0 0 1.25em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.dev .table {
  font-size: 0.95rem;
}

.dev .table th,
.dev .table td {
  padding: 8px 12px;
}

.dev .table tbody th {
  font-weight: 400;
}

/* A field name or command stays on one line (the longest, a test tool command, still fits a 390 px phone). */
.dev .table tbody th code {
  white-space: nowrap;
}

.dev .table tbody tr:last-child > * {
  border-bottom: 0;
}

@media (max-width: 640px) {
  /* Each row is a box of its own here, so the table needs no frame. */
  .dev .table-wrap {
    border: 0;
    border-radius: 0;
  }

  .dev .table-stack tr {
    margin-bottom: 10px;
  }

  .dev .table-stack th,
  .dev .table-stack td {
    padding: 3px 0;
  }
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.label {
  font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
select {
  font: inherit;
  font-size: 1rem;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
}

/* Form fields take fortipos.com's blue focus; links and buttons its amber ring. */
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}

.hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--brand);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.turnstile {
  min-height: 65px;
}

.auth {
  padding: 40px 0 0;
}

.auth h1 {
  margin-bottom: 8px;
}

/* Sign up, log in, password and email pages: the title and its line sit centred above the card, like the links
   below it. */
.auth .container > h1,
.auth .container > .lead {
  text-align: center;
}

.auth .container > .lead {
  margin-left: auto;
  margin-right: auto;
}

.auth .card {
  margin: 24px 0 16px;
}

.result-icon {
  width: 48px;
  height: 48px;
  color: var(--brand);
  margin-bottom: 8px;
}

/* ---------- Downloads ---------- */

.downloads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.download {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download svg.platform-icon {
  width: 40px;
  height: 40px;
  color: var(--brand);
}

.download .download-action {
  margin-top: auto;
  padding-top: 8px;
}

.download details {
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-all;
}

@media (max-width: 860px) {
  .downloads {
    grid-template-columns: 1fr;
  }
}

/* ---------- Account page ---------- */

.acct {
  padding: 32px 0 0;
}

/* A message on its own (the account is being deleted, or it couldn't load): the title centred above a centred card,
   like the sign-up and log-in pages. */
.acct-message {
  max-width: 640px;
  margin: 8px auto 0;
}

.acct-message > h1 {
  text-align: center;
}

.acct-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.acct-head h1 {
  margin-bottom: 0;
}

.acct-head > div {
  min-width: 0;
}

.acct-head p {
  margin: 0;
  overflow-wrap: anywhere; /* "Logged in as <a long email>" */
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.tabs a {
  padding: 10px 16px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.tabs a:hover {
  color: var(--text);
}

.tabs a[aria-current="page"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.acct-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}

/* Only the Add location button (one location): it sits on the right, above the location. */
.acct-bar-end {
  justify-content: flex-end;
  margin-bottom: 4px;
}

.acct-bar .field {
  flex: 1 1 260px;
  max-width: 420px;
}

.loc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

/* A long name without spaces wraps instead of making the page wider than a phone (Codex and Claude review 9: an
   80-letter name made the page 1688 px wide at 390 px and pushed the dialogs off-screen). */
.loc-head h2 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Kitchen reports on a location's page: a button at the right end of the title line. */
.loc-reports {
  margin-left: auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 760px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.big-number {
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 4px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tablets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.tablet {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: start;
}

.tablet-name {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 8px 0 0;
  display: inline;
  overflow-wrap: anywhere;
}

.tablet-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* A long value (an email address on the profile card) shrinks with the card and wraps, even on a 390 px phone. */
.tablet-meta div {
  display: flex;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.tablet-meta dt {
  font-weight: 600;
  flex: none;
}

.tablet-meta dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tablet .actions {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.price-line {
  font-weight: 600;
}

/* Plan and billing: one row per fact (label, value, and its button on the right). On a phone the button goes under. */
.plan-rows {
  margin: 4px 0 16px;
  border-top: 1px solid var(--border);
}

.plan-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 4px 16px;
  padding: 12px 0;
  min-height: 56px;
  border-bottom: 1px solid var(--border);
}

.plan-row dt {
  color: var(--muted);
  font-weight: 600;
}

.plan-row dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-width: 0;
}

.plan-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.plan-value p {
  margin: 4px 0 0;
}

.plan-action {
  flex: none;
}

.plan-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

@media (max-width: 560px) {
  .plan-row {
    grid-template-columns: 1fr;
  }
}

/* The location's name with its two quiet links. */
.loc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.95rem;
}

/* A button that looks like a link (Rename location). */
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--link);
  text-decoration: underline;
  cursor: pointer;
}

.link-button:hover {
  color: var(--text);
}

/* A quiet destructive action (Remove, Cancel location): red text, no box until hovered. */
.btn-danger-text {
  background: transparent;
  color: var(--danger);
  border: 1px solid transparent;
  box-shadow: none;
}

.btn-danger-text:hover {
  background: var(--bad-bg);
  border-color: #f3c0c0;
  color: var(--danger-dark);
  box-shadow: none;
  filter: none;
}

.tablet-head {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}

.tablet-head .tablet-name {
  margin: 0;
}

/* What the KDS buttons do: a short list under the KDS. */
.pairing-code {
  margin: 4px 0 16px;
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
}

.help-list {
  margin: 16px 0 8px;
  padding: 12px 16px;
  list-style: none;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--muted);
}

.help-list li + li {
  margin-top: 4px;
}

.help-list strong {
  color: var(--text);
  font-weight: 600;
}

/* A checkbox with its explanation underneath (Change password: also sign out every KDS). */
.check-block .hint {
  margin: 2px 0 0 28px;
}

/* The ways to log in or sign up, one under the other on the page (no box around them): Google's own button, Apple and
   "Continue with email" (user 2026-11-16: like Google and Apple sign-in pages; the email boxes open only when chosen,
   in place of their button, with Google and Apple still above them). */
.auth-choices {
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 400px;
  margin: 0 auto 20px;
}

.auth-choices > .notice,
.auth-choices > .check,
.auth-choices > .oauth-button,
.auth-choices > .auth-or,
.auth-choices > .auth-email {
  width: 100%;
}

/* "or" between the other ways and the open email form: a thin line on each side. */
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}

/* The email form opens where its button was, in the same column and without a box of its own (user 2026-11-16: after
   the click it felt like a different page): a short fade from just above. */
.auth-email.is-opening {
  animation: auth-email-open 0.2s ease-out;
}

@keyframes auth-email-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-email.is-opening {
    animation: none;
  }
}

.oauth-button {
  display: flex;
  justify-content: center;
  min-height: 40px;
}

/* "Continue with Apple" and "Continue with email" look like Google's button above them (user 2026-11-16: the buttons
   looked different, then the light blue email button didn't look good): white, the same height, font size, corners and
   thin grey border, an icon then the words. The little color is the email icon's FortiKDS blue. */
.choice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  color: #1f1f1f;
  font: 500 14px/1 Roboto, Arial, sans-serif;
  letter-spacing: 0.25px;
  cursor: pointer;
}

.choice-button:hover {
  background: #f8f9fa;
}

.choice-email svg {
  color: var(--brand);
}

.choice-button:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.choice-button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- Kitchen reports (the Kitchen reports tab of My account, /account#reports) ---------- */

/* Plain: thin borders, no shadows, nothing heavier than 600. Fits a 390 px phone; a wide table scrolls in its own box. */
.kr h1,
.kr h2 {
  font-weight: 600;
}

.kr-head {
  margin-bottom: 16px;
}

.kr-head h1 {
  margin-bottom: 4px;
}

.kr-head p {
  margin: 0;
  overflow-wrap: anywhere;
}

.kr-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-bottom: 24px;
}

.kr-controls .field {
  flex: 1 1 220px;
  max-width: 320px;
}

.kr-busy {
  opacity: 0.55;
}

.kr-section {
  margin: 0 0 28px;
}

.kr-section h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.kr-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.kr-summary > div {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.kr-summary dt {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 4px;
}

.kr-summary dd {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.kr-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

@media (max-width: 760px) {
  .kr-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kr-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.kr-table th,
.kr-table td {
  padding: 10px 12px;
}

.kr-table tbody th {
  font-weight: 400;
}

.kr-table tbody tr:last-child th,
.kr-table tbody tr:last-child td {
  border-bottom: none;
}

.kr-table td.num {
  white-space: nowrap;
}

.kr-item {
  min-width: 9em;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .kr-table {
    font-size: 0.95rem;
  }

  .kr-table th,
  .kr-table td {
    padding: 8px;
  }

  /* A narrower item column on a phone, so the last column (Longest) stays in view at 360 px (review 12: it was cut
     off in Spanish and French). */
  .kr-item {
    min-width: 6em;
  }
}

/* Kitchen reports: the target, grade bars and item dots (2026-11-15, learned from Fresh KDS's charts, in this site's
   plain style: thin lines, flat colours, no labels inside the bars). */
.kr-target {
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.kr-target > p:first-child {
  display: inline;
  margin: 0 12px 0 0;
}

.kr-target .muted {
  margin: 6px 0 0;
}

.kr-target .notice {
  margin: 8px 0 0;
}

.kr-target-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.kr-target-form input {
  width: 5.5em;
}

.kr-bar {
  min-width: 120px;
}

.kr-stack {
  display: flex;
  height: 12px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-soft);
}

.kr-section > .kr-bar .kr-stack {
  height: 16px;
}

.kr-stack span {
  display: block;
  height: 100%;
  flex-basis: 0;
}

.kr-g-onTime {
  background: #2e7d4f;
}

.kr-g-close {
  background: #d39b1c;
}

.kr-g-late {
  background: #c0392b;
}

.kr-g-forgotten {
  background: #8f9aa6;
}

.kr-g-fast {
  background: #7ea6cf;
}

.kr-g-none {
  background: #cfd6de;
}

.kr-legend {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.kr-legend li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: baseline;
}

.kr-legend strong {
  font-weight: 600;
}

.kr-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  align-self: center;
}

.kr-legend-count {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* A row's bar or dot line sits on the row's line, level with its numbers (user 2026-11-16). The label has a fixed width,
   so every bar starts at the same place and the rows compare; a phone has no room for it, so the bar goes under the
   label there. The first column takes the room the numbers leave. */
.kr-table th,
.kr-table td {
  vertical-align: middle;
}

.kr-chart-cell {
  width: 60%;
}

.kr-line {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kr-label {
  flex: 0 0 8.5rem;
  min-width: 0;
}

.kr-item .kr-label {
  flex-basis: 11rem;
}

.kr-line .kr-bar,
.kr-line .kr-dots {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 640px) {
  .kr-line {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  /* (in a column the basis is the height: the item label's 11rem would leave a gap) */
  .kr-label,
  .kr-item .kr-label {
    flex-basis: auto;
  }
}

.kr-items-head p {
  margin: 0 0 8px;
}

.kr-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.kr-dots {
  position: relative;
  height: 16px;
}

.kr-dots::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--border);
}

.kr-dots-empty::before {
  border-top-style: dashed;
}

.kr-dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  box-sizing: border-box;
}

.kr-dot-typical {
  background: var(--text);
}

.kr-dot-longest {
  background: var(--bg);
  border: 2px solid var(--muted);
}

.kr-dot-inline {
  position: static;
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

.kr-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 12px;
}

.kr-pager p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.kr-pager-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.kr-rows {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.kr-rows select {
  width: auto;
  min-height: 36px;
  padding: 4px 8px;
}

.kr-page {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.kr-empty {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 20px;
  margin: 0 0 28px;
}

.kr-empty p {
  margin: 0;
}

.kr-empty .btn {
  margin-top: 12px;
}

/* The location's name above Time and KDS, as on My account. */
.kr .loc-head {
  margin-bottom: 16px;
}

.kr-about {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  color: var(--muted);
}

.kr-about h2 {
  font-size: 1.05rem;
  color: var(--text);
}

.kr-about ul {
  margin: 0;
  padding-left: 1.2em;
}

.kr-about li + li {
  margin-top: 6px;
}

.kr-about strong {
  font-weight: 600;
}

/* ---------- Dialog ---------- */

dialog {
  border: none;
  border-radius: 14px;
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.25);
  color: var(--text);
  background: #fff;
}

dialog::backdrop {
  background: rgba(16, 24, 40, 0.5);
}

.dialog-form {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.dialog-form h2 {
  font-size: 1.3rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.dialog-form p {
  margin: 0;
  overflow-wrap: anywhere;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.loading {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
}

/* ---------- Home: the first section, redesigned 2026-11-17 (user: "no professinal, does not catch eyes";
   then "i only said ... the every first section"). The words left, the real kitchen view in a dark frame
   right; no gradient or pill label, 600 weight at most. The sections below keep their earlier design. */

.hm-hero {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 77px 0 86px;
}

/* 20% bigger than at first (user, 2026-11-17: "make this section 20% bigger"): wider, and larger text,
   buttons and picture. On a phone (900 px and less) it keeps its earlier size. */
.hm-hero .container-wide {
  max-width: 1488px;
}

.hm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 67px;
  align-items: center;
}

.hm-hero .hm-kicker {
  margin: 0 0 14px;
  color: var(--brand);
  font-weight: 600;
  font-size: 1.14rem;
}

.hm-hero h1 {
  font-size: clamp(2.52rem, 5.04vw, 4.08rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.07;
  margin: 0 0 24px;
  color: var(--text);
  /* Even lines when the heading wraps to three (laptop widths), not one word alone. */
  text-wrap: balance;
}

/* "Clover" and "Square" in the headline in each brand's look (site.js brandWords; 2026-11-17).
   Clover: Clover's lettering without the leaf ("change the clover to last clover logo without the icon"), sized so its
   small letters match the headline's (its "l" then reaches the height of a capital), its baseline (31.79 of its 33.16
   units) on the line of the text.
   Square: a word ("just text") in black in DM Sans, a geometric type like Square's lettering (Square's own font is not
   public), from Google Fonts with only these letters (index.html). */
.brand-clover {
  display: inline-block;
  width: auto;
  /* A little bigger than the headline's own small letters, to match "Square" (user 2026-11-17: "make the clover text
     a little bigger match square"); its baseline stays on the line (1.37 of its 33.16 units below the baseline). */
  height: 0.83em;
  vertical-align: -0.034em;
}

/* A brand word and the comma right after it stay on one line. */
.brand-keep {
  white-space: nowrap;
}

.brand-square {
  color: #000;
  font-family: "DM Sans", var(--font);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hm-lead {
  font-size: 1.44rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 34px;
  max-width: 34em;
}

.hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 22px;
}

.hm-hero .btn-lg {
  min-height: 62px;
  padding: 17px 29px;
  font-size: 1.26rem;
}

.hm-facts {
  margin: 0;
  color: var(--muted);
  font-size: 1.14rem;
}

/* The real kitchen view in a plain dark frame, like the tablet it runs on. */
.hm-device {
  margin: 0;
  background: #0b1220;
  border: 1px solid #1f2a3c;
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 36px 72px -28px rgb(13 27 46 / 0.45), 0 10px 22px -10px rgb(13 27 46 / 0.25);
}

.hm-device a {
  display: block;
}

.hm-device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px;
}

@media (max-width: 900px) {
  .hm-hero {
    padding: 64px 0 72px;
  }

  .hm-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hm-hero .hm-kicker {
    margin-bottom: 12px;
    font-size: 0.95rem;
  }

  .hm-hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    margin-bottom: 20px;
  }

  .hm-lead {
    font-size: 1.2rem;
    margin-bottom: 28px;
  }

  .hm-actions {
    gap: 12px;
    margin-bottom: 18px;
  }

  .hm-hero .btn-lg {
    min-height: 52px;
    padding: 14px 24px;
    font-size: 1.05rem;
  }

  .hm-facts {
    font-size: 0.95rem;
  }

  .hm-device {
    border-radius: 20px;
    padding: 12px;
  }

  .hm-device img {
    border-radius: 9px;
  }
}

@media (max-width: 560px) {
  .hm-hero {
    padding: 40px 0 48px;
  }

  .hm-device {
    padding: 8px;
    border-radius: 14px;
  }
}
