/* hiClient — light product site and customer portal. System fonts, no external assets. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --surface: #ffffff;
  --surface-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-muted: #646469;
  --border: #dedee3;
  --accent: #0066cc;
  --accent-strong: #0055ad;
  --accent-text: #ffffff;
  --accent-soft: #edf4fc;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --ok: #166534;
  --ok-soft: #ecfdf3;
  --warn: #92400e;
  --warn-soft: #fffbeb;
  --focus: #1d4ed8;
  --radius: 22px;
  --shadow: 0 8px 32px rgb(0 0 0 / 3%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  color-scheme: light;
}


*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; outline: none; }

img { max-width: 100%; height: auto; }

/* Follow the applied palette, including custom account backgrounds. */
img[src="/static/img/logo-name.svg"], img[src="/static/img/logo-name.png"] {
  content: var(--hc-brand-image, normal);
}

h1, h2, h3, .h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: var(--type-title); letter-spacing: -.025em; }
h2 { font-size: var(--type-section); margin-top: 1.4em; }
h3, .h3 { font-size: var(--type-subtitle); margin-top: 0; }
p { margin: 0 0 1em; }

a { color: var(--accent-strong); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

code, pre { font-family: var(--mono); font-size: .92em; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 46rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--accent); color: var(--accent-text);
  padding: .5rem 1rem; border-radius: var(--radius); z-index: 10;
}
.skip-link:focus { top: 1rem; }

/* ---- Header ---- */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-row { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand-footer { font-size: 1rem; margin-bottom: .5rem; }
.main-nav { flex: 1; }
.main-nav ul, .lang ul, .footer-links, .portal-nav ul, .plain-list { list-style: none; margin: 0; padding: 0; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.main-nav a { color: var(--text); text-decoration: none; padding: .35rem .15rem; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.language-selector { position: relative; }
.language-selector summary { cursor: pointer; display: flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .65rem; border: 0; border-radius: 8px; list-style: none; font-size: .85rem; }
.language-selector summary::-webkit-details-marker { display: none; }
.language-selector form { position: absolute; right: 0; top: calc(100% + 4px); z-index: 100; min-width: 150px; padding: .35rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); box-shadow: 0 8px 24px #0002; }
.language-selector form button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: .5rem .7rem; border: 0; border-radius: 6px; background: transparent; font: inherit; text-align: left; color: var(--text); cursor: pointer; }
.language-selector form button[aria-current="true"] { font-weight: 700; background: var(--bg-soft); }
.lang ul { display: flex; gap: .15rem; }
.lang a { display: inline-block; padding: .2rem .45rem; font-size: .85rem; font-weight: 600; color: var(--text-muted); text-decoration: none; border-radius: 6px; }
.lang a[aria-current="true"] { color: var(--accent-text); background: var(--accent); }
.inline-form { display: inline; margin: 0; }
.account-menu { position:relative; }
.account-menu > summary { list-style:none; cursor:pointer; }
.account-menu > summary::-webkit-details-marker { display:none; }
.account-avatar { width:40px; height:40px; border-radius:50%; overflow:hidden; display:grid; place-items:center; background:var(--accent); color:var(--accent-text); font-weight:700; border:1px solid var(--border); }
.account-avatar img { width:100%; height:100%; object-fit:cover; }
.account-menu nav { position:absolute; right:0; top:calc(100% + .45rem); z-index:20; width:15rem; display:grid; padding:.45rem; background:var(--surface); border:1px solid var(--border); border-radius:.65rem; box-shadow:0 .5rem 1.5rem rgb(0 0 0 / .16); }
.account-menu nav a, .account-menu nav button { display:flex; align-items:center; gap:.6rem; width:100%; padding:.6rem .7rem; color:var(--text); text-align:left; text-decoration:none; background:transparent; border:0; font:inherit; cursor:pointer; border-radius:.35rem; transition:background-color .15s ease; }
.account-menu nav a:hover, .account-menu nav button:hover { background:var(--surface-alt); }
.account-menu nav hr { width:auto; margin:.3rem .7rem; border:0; border-top:1px solid var(--border); }
.account-menu-icon { flex:0 0 20px; }
.account-menu nav .account-logout { color:var(--danger); }

/* ---- Buttons ---- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 600; line-height: 1.2;
  padding: .7rem 1.2rem; min-height: 44px;
  border: 2px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--accent-text);
  text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.button:disabled { opacity: .6; cursor: progress; }
.button-ghost { background: transparent; color: var(--accent-strong); }
.button-ghost:hover { background: var(--accent-soft); color: var(--accent-strong); }
.button-small { padding: .35rem .8rem; min-height: 36px; font-size: .92rem; }
.button-block { width: 100%; }
.button-danger { background: var(--danger); border-color: var(--danger); color: var(--bg); }
.button-danger:hover { background: var(--danger); filter: brightness(.9); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---- Messages ---- */
.notice, .error, .banner {
  padding: .75rem 1rem; border-radius: var(--radius); border: 1px solid; margin: 1rem 0;
}
.notice { background: var(--ok-soft); border-color: var(--ok); color: var(--text); }
.error { background: var(--danger-soft); border-color: var(--danger); color: var(--text); }
.banner { background: var(--warn-soft); border-color: var(--warn); color: var(--text); display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.banner p { margin: 0; }
.error[hidden], .notice[hidden] { display: none; }
/* Site-wide banners (Shared/_SiteBanners.cshtml): warning by default. */
.site-banners { padding-top: 1rem; }
.site-banners .banner { margin: 0 0 .75rem; border-radius: 16px; }
.site-banner p { white-space: pre-line; }
.site-banner-info { background: var(--accent-soft); border-color: var(--accent); }
.site-banner-critical { background: var(--danger-soft); border-color: var(--danger); }
.draft { background: var(--warn-soft); border: 1px solid var(--warn); border-radius: var(--radius); padding: .75rem 1rem; max-width: 46rem; }

/* ---- Sections ---- */
section { padding-block: 2.5rem; }
.page-head { padding-block: 2.5rem 1rem; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.band { background: var(--bg-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 700; color: var(--accent-strong); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.split h2 { margin-top: 0; }
.cta { text-align: center; }
.cta .actions { justify-content: center; }
.cta p { margin-inline: auto; max-width: 40rem; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 700; margin-bottom: .6rem;
}

.cards { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card, .panel, .note, .plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.panel, .note { margin: 1.25rem 0; }
.note { background: var(--bg-soft); box-shadow: none; }
.card p:last-child, .panel > :last-child, .note > :last-child { margin-bottom: 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-start; margin-top: 1rem; }
.stat { font-size: 1.35rem; font-weight: 700; margin-bottom: .3rem; }

.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist li { position: relative; padding-left: 1.75rem; margin-bottom: .5rem; }
.checklist li::before {
  content: ""; position: absolute; left: .2rem; top: .45em;
  width: .9rem; height: .5rem; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}
.numbered { padding-left: 1.4rem; }
.numbered li { margin-bottom: .4rem; }

.prose { max-width: 46rem; }
.prose h2 { font-size: var(--type-section); }

/* ---- Pricing ---- */
.plans { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.plan { display: flex; flex-direction: column; }
.plan .button { margin-top: auto; }
.price { margin: .5rem 0 .25rem; }
.price .amount { font-size: 2rem; font-weight: 800; }
.price .per { color: var(--text-muted); }

/* ---- Facts / code ---- */
.facts { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: .35rem 1.25rem; margin: 0 0 1rem; }
.facts dt { font-weight: 600; color: var(--text-muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.hash { word-break: break-all; }
.code { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; overflow-x: auto; }

/* ---- Forms ---- */
.auth { padding-block: 3rem; }
.auth-box { width: min(440px, 100% - 2.5rem); }
.form { display: grid; gap: 1rem; max-width: 440px; margin: 1rem 0; }
.form-wide { max-width: 720px; }
.field { display: grid; gap: .3rem; }
.field label, legend { font-weight: 600; }
form label { display:block; }
form label > :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { display:block; margin-top:.35rem; max-width:100%; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: .6rem; }
.field-check input { margin-top: .35rem; width: 1.15rem; height: 1.15rem; }
.field-check label { font-weight: 400; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input:not([type]), select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--text-muted); border-radius: 8px;
  padding: .6rem .75rem; min-height: 44px; width: 100%;
}
textarea { resize: vertical; min-height: 8rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--focus); }
.short-input { max-width: 6rem; }
.code-input { font-family: var(--mono); letter-spacing: .15em; text-transform: uppercase; max-width: 14rem; }
.help { font-size: .875rem; color: var(--text-muted); margin: 0; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin: 0; }
legend { padding: 0 .35rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.choice { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; cursor: pointer; }
.choice span { display: grid; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice-inline { display: inline-flex; gap: .4rem; align-items: center; margin-right: 1.25rem; }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--text-muted); margin: 1.25rem 0 1rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.spaced { display: block; margin-top: 1rem; }
.rename-form { display: inline-flex; gap: .5rem; align-items: center; }
.rename-form input { width: 14rem; min-height: 36px; padding: .35rem .6rem; }

details.confirm { display: inline-block; }
details.confirm summary { list-style: none; }
details.confirm summary::-webkit-details-marker { display: none; }
.confirm-box { margin-top: .5rem; padding: .75rem; border: 1px solid var(--danger); background: var(--danger-soft); border-radius: var(--radius); max-width: 22rem; }
.confirm-box p { margin-bottom: .6rem; }
details.history { margin-top: 1.5rem; }
details.history summary { cursor: pointer; color: var(--text-muted); }

/* ---- Portal ---- */
.portal { display:grid; grid-template-columns:220px minmax(0,1fr); gap:2.5rem; align-items:start; width:min(1320px,100% - 3rem); padding-block:2rem 3rem; }
.portal-nav { position:sticky; top:6rem; min-width:0; }
.portal-nav ul { display:grid; gap:.2rem; list-style:none; margin:0; padding:0; }
.portal-nav a { display:block; min-height:44px; padding:.65rem .8rem; border-radius:10px; color:var(--text); text-decoration:none; }
.portal-nav a:hover { background:var(--bg-soft); }
.portal-nav a[aria-current="page"] { background:var(--accent-soft); color:var(--accent-strong); font-weight:650; }
.portal-nav .portal-status-item { margin-top:.75rem; padding-top:.75rem; border-top:1px solid var(--border); }
.portal-nav .portal-status-link { display:flex; align-items:center; justify-content:space-between; gap:.75rem; color:var(--accent-strong); }
.portal-shell-header .wrap { width:min(1320px,100% - 3rem); }
.portal-shell-header .header-actions { margin-left:auto; }
.portal-body { min-width: 0; }
.portal-body h1 { font-size: var(--type-title); }
.title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.title-row h1 { margin-bottom: .3rem; }
.device-list { list-style: none; padding: 0; display: grid; gap: 1rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
.actions-cell { white-space: nowrap; }
.actions-cell form, .actions-cell details { margin-right: .4rem; }

.pill { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .82rem; font-weight: 600; border: 1px solid var(--border); background: var(--bg-soft); }
.pill-open, .pill-awaitingsupport { border-color: var(--warn); background: var(--warn-soft); }
.pill-awaitingcustomer { border-color: var(--focus); }
.pill-closed { color: var(--text-muted); }

.messages { list-style: none; padding: 0; display: grid; gap: 1rem; margin: 1.5rem 0; }
.message { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; background: var(--surface); }
.message-staff { border-left: 4px solid var(--accent); background: var(--accent-soft); }
.message-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; margin-bottom: .5rem; }
/* Plain text with its line breaks; never rendered as markup. */
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-block: 2rem 1rem; margin-top: 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* ---- Small screens ---- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .portal { grid-template-columns:1fr; gap:1rem; }
  .portal-nav { position:static; overflow-x:auto; padding-bottom:.75rem; border-bottom:1px solid var(--border); scrollbar-width:thin; }
  .portal-nav ul { position:static; display:flex; flex-wrap:nowrap; gap:.25rem; width:max-content; min-width:100%; }
  .portal-nav a { white-space:nowrap; }
  .portal-nav .portal-status-item { margin-top:0; padding-top:0; padding-left:.25rem; border-top:0; border-left:1px solid var(--border); }
  .main-nav { order: 3; flex-basis: 100%; }
  .header-actions { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .portal-nav, .button, form { display: none !important; }
}

/* ---- Product design ---- */
html { scroll-padding-top: 7rem; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
h1 { line-height: 1.16; letter-spacing: -.025em; font-weight: 650; }
h2 { line-height: 1.25; letter-spacing: -.02em; font-weight: 650; }
h3, .h3 { letter-spacing: -.015em; }
.wrap { width: min(1120px, 100% - 3rem); }
.narrow { width: min(760px, 100% - 3rem); }
.lead { font-size: clamp(1.125rem, 2vw, 1.35rem); line-height: 1.5; }
.eyebrow { color: var(--text-muted); text-transform: none; letter-spacing: .015em; font-size: .85rem; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 5; background: rgb(255 255 255 / 92%); border-bottom-color: rgb(0 0 0 / 5%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header-row { min-height: 76px; padding-block: .65rem; gap: 1rem 2.5rem; }
.brand { letter-spacing: -.045em; font-size: 1.35rem; font-weight: 650; }
.brand img { height: auto; flex-shrink: 0; object-fit: contain; }
.brand-footer img { width: 120px; max-width: 100%; }
.main-nav ul { gap: 1.75rem; justify-content: center; }
.main-nav a { font-size: .85rem; border: 0; display: inline-block; padding-block: .7rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }
.lang a { font-size: .7rem; min-height: 36px; display: grid; place-items: center; }
.lang a[aria-current="true"] { color: var(--text); background: var(--bg-soft); }
.button { border-radius: 999px; font-size: 1rem; font-weight: 500; padding: .85rem 1.5rem; border-width: 1px; }
.button-small { font-size: .8rem; padding: .55rem 1rem; min-height: 36px; }
.site-header .button-small, .site-header .lang a { min-height: 44px; }
.button-ghost { background: var(--bg-soft); border-color: transparent; color: var(--text); }
.button-ghost:hover { background: #e9e9ed; color: var(--text); border-color: transparent; }
section { padding-block: 4rem; }
.pricing-head { padding-block: 2.5rem 1.75rem; }
.pricing-body { padding-block: 2rem; }
.page-head { padding-block: 5rem 3.5rem; background: var(--bg); border: 0; }
.page-head h1 { max-width: 950px; }
.page-head .lead { margin-bottom: 0; max-width: 760px; }
.page-head .lead + p { margin-top: 1.5rem; font-size: .875rem; }
.hero { padding: 5rem 0 2.5rem; overflow: hidden; }
.hero-copy { text-align: center; max-width: 900px; }
.hero-copy h1 { max-width: 860px; margin-inline: auto; }
.hero-copy .eyebrow { margin-bottom: 1.5rem; }
.hero-copy .lead { max-width: 590px; margin-inline: auto; }
.hero-copy .actions { justify-content: center; margin-block: 1.7rem 0; }
.product-stage { margin-top: 3.5rem; }
.product-media { margin: 0; }
.product-media figcaption { text-align: center; font-size: .75rem; color: var(--text-muted); margin-top: 1.5rem; }
.product-illustration { padding: 3.5rem 3rem 2.5rem; background: var(--bg-soft); border-radius: 32px; }
.device-display { max-width: 920px; margin: auto; border: 10px solid #303033; border-radius: 22px 22px 8px 8px; overflow: hidden; background: white; box-shadow: 0 24px 40px rgb(0 0 0 / 8%); }
.preview-toolbar { display: flex; align-items: center; gap: 2rem; padding: .85rem 1.2rem; font-size: .7rem; background: #fafafa; border-bottom: 1px solid #ebebed; }
.preview-brand { font-weight: 650; font-size: .9rem; letter-spacing: -.04em; }
.preview-mark { margin-left: auto; letter-spacing: .2em; color: #777; }
.preview-content { display: grid; grid-template-columns: minmax(0, 1fr) 230px; }
.preview-camera { position: relative; background: #e8e8e5; min-width: 0; }
.preview-camera img { display: block; width: 100%; height: 100%; object-fit: cover; }
.camera-label { position: absolute; top: 1rem; left: 1rem; padding: .3rem .65rem; border-radius: 6px; background: white; font-size: .7rem; }
.preview-sidebar { padding: 1.8rem 1.4rem; }
.preview-sidebar .eyebrow { display: block; font-size: .6rem; margin-bottom: .6rem; }
.preview-sidebar strong { display: block; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.035em; font-weight: 600; }
.preview-sidebar p { font-size: .7rem; line-height: 1.5; color: var(--text-muted); margin-block: .7rem 1.5rem; }
.preview-item { display: flex; align-items: center; gap: .7rem; font-size: .7rem; padding-block: .6rem; }
.preview-icon { color: var(--accent); font-size: 1.1rem; }
.device-base { height: 16px; background: #cfcfd3; width: 100%; border-radius: 2px 2px 45% 45%; box-shadow: 0 10px 15px rgb(0 0 0 / 5%); }
.campaign-media { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 32px; background: var(--bg-soft); }
.story { padding-block: 7rem; }
.section-heading { max-width: 750px; margin-bottom: 3.5rem; }
.section-heading h2, .privacy-story h2, .cta h2 { margin-top: 0; }
.steps { gap: 3rem; margin: 0 0 2.5rem; }
.steps li { padding: 0; border: 0; border-radius: 0; background: transparent; }
.steps li::before { background: none; color: var(--text-muted); width: auto; height: auto; content: "0" counter(step); font-size: .9rem; margin-bottom: 1.5rem; font-weight: 500; }
.steps p, .card p { color: var(--text-muted); }
.text-link { text-decoration: none; font-weight: 500; }
.text-link:hover { text-decoration: underline; }
.text-link span { margin-left: .35rem; }
.cards { gap: 1.5rem; margin: 0 0 2.5rem; }
.card, .plan { padding: 2rem; border: 1px solid #ebebed; background: var(--surface); box-shadow: none; }
.panel, .note { padding: 1.75rem; border-color: #ebebed; }
.card h2 { margin-top: 0; }
.use-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.use-cases .card { padding: 2.5rem; min-height: 190px; }
.privacy-story { display: grid; grid-template-columns: .7fr 1fr; gap: 6rem; align-items: center; }
.privacy-symbol { display: grid; place-items: center; color: var(--accent); }
.privacy-symbol svg { width: 130px; height: 150px; }
.privacy-story p:last-child { margin-bottom: 0; }
.cta h2 { max-width: 750px; margin-inline: auto; }
.cta .lead { max-width: 520px; }
.plans { gap: 1.5rem; margin-top: 0; }
.plan { padding: 2.25rem; }
.price .amount { font-size: 3rem; font-weight: 600; letter-spacing: -.055em; }
.plan .checklist { margin-block: 1.5rem 2rem; font-size: .95rem; }
/* Pricing: half the usual space between the heading and the plans (mobile value in the 600px block below). */
.page-head.pricing-head { padding-bottom: 1.75rem; }
.pricing-body { padding-top: 2rem; }
.prose { max-width: min(760px, 70ch); line-height: 1.8; }
.prose h2 { line-height: 1.3; margin-top: 2.5rem; letter-spacing: -.02em; scroll-margin-top: 1rem; }
.prose nav { padding: 1.5rem 2rem; border-radius: var(--radius); background: var(--bg-soft); margin-block: 2rem 3rem; }
.prose nav h2 { margin-top: 0; }
.prose nav ul, .prose nav ol { padding-left: 1.25rem; margin-bottom: 0; }
.prose nav li { margin-block: .35rem; }
.prose nav a { text-decoration: none; }
.prose nav a:hover { text-decoration: underline; }
/* Legal documents: the index starts right after the heading and every section links back to it. */
.page-head.legal-head { padding-block: 3rem 1.25rem; }
.legal-body { padding-top: .5rem; }
.legal-body .prose nav { margin-top: 0; }
.legal-body .prose nav ol { columns: 2 16rem; column-gap: 2rem; }
.legal-body .prose nav li { break-inside: avoid; }
.legal-top { margin-top: -.5rem; font-size: .8125rem; line-height: 1.5; }
.legal-top a { color: var(--text-muted); text-decoration: none; }
.legal-top a:hover { color: var(--accent-strong); text-decoration: underline; }
/* Contact: options right after the introduction. */
.page-head.contact-head { padding-bottom: 1.25rem; }
.contact-body { padding-top: 1rem; }
/* Pricing: same rhythm in every plan; the price and "per month" stay on one line; the action follows the price. */
.plan > h2 { margin-bottom: .25rem; }
.plan > h2 + .muted { min-height: 3.2em; margin-bottom: .5rem; }
.plan .price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .4rem; }
.plan .price .amount { font-size: clamp(2rem, 3vw, 2.6rem); white-space: nowrap; }
.plan .price .per { white-space: nowrap; }
.plan .price + .muted { margin-top: 0; font-size: .9rem; }
.plan > .button { margin-top: .75rem; align-self: flex-start; }
.plan .checklist { margin-block: 1.25rem 0; }
/* Pricing: plan comparison table. Groups stay visible as headings (no accordions); on narrow screens the plans scroll
   inside the table while the feature column stays in place. */
.plan-compare { margin-block: 3rem 2rem; }
.plan-compare > h2 { margin-bottom: 1rem; }
/* Positioned so the visually hidden labels inside the cells stay within the scrolling box on phones. */
.plan-compare-scroll { position: relative; }
.plan-compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.plan-compare-table th, .plan-compare-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.plan-compare-table thead th { background: var(--surface); font-size: 1.05rem; font-weight: 600; padding-block: 1rem; }
.plan-compare-table tbody tr:last-child > * { border-bottom: 1px solid var(--border); }
.plan-compare-table th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; }
.plan-compare-table tbody th[scope="row"] { font-weight: 400; min-width: 11rem; }
.plan-compare-table .plan-compare-group th { background: var(--bg-soft); color: var(--text-muted); font-size: .82rem; font-weight: 600; letter-spacing: .02em; padding-block: .5rem; }
.plan-compare-table tfoot th, .plan-compare-table tfoot td { border-bottom: 0; padding-block: 1rem; }
.plan-compare-note { display: block; color: var(--text-muted); font-size: .78rem; line-height: 1.3; }
.plan-compare-yes { color: var(--ok); vertical-align: middle; }
.plan-compare-no { color: var(--text-muted); }
@media (max-width: 600px) {
  .plan-compare-table { font-size: .875rem; }
  .plan-compare-table th, .plan-compare-table td { padding: .55rem .6rem; }
  .plan-compare-table tbody th[scope="row"] { min-width: 8.5rem; }
}
/* Product: grouped capabilities, start actions and a short index right under the introduction. */
.page-head.features-head { padding-bottom: 1.5rem; }
.features-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.features-index { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.25rem; font-size: .9rem; }
.features-index a { text-decoration: none; }
.features-body { padding-top: 1rem; }
.features-group { margin: 2.5rem 0 1rem; font-size: var(--type-title, 1.6rem); scroll-margin-top: 1rem; }
.features-group:first-child { margin-top: 0; }
.features-body .card h3 { margin-top: 0; }
.auth { padding-block: 5rem; }
.auth h1 { font-size: var(--type-title); }
.auth-box { width: min(460px, 100% - 3rem); }
.field label { font-size: .95rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input:not([type]), select, textarea { border-color: #85858c; border-radius: 12px; }
.portal { padding-block: 3rem 5rem; }
.portal-nav ul { top: 6rem; }
.portal-body h1 { overflow-wrap: anywhere; }
/* Compact footer: logo, links in one wrapping row and the copyright; links are configured in /admin/footer. */
.site-footer { border: 0; padding-block: 1.25rem; margin-top: 0; font-size: .85rem; }
.footer-grid { align-items: center; gap: .75rem 2rem; flex-wrap: wrap; }
.footer-grid nav { flex: 1 1 28rem; min-width: 0; }
.brand-footer { display: inline-flex; margin: 0; }
.site-footer .brand-footer img { width: 104px; max-width: none; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-copy { margin: 0; color: var(--text-muted); font-size: .75rem; white-space: nowrap; }
details.history summary { cursor: pointer; }
@media (max-width: 860px) {
  .header-row { gap: .4rem 1rem; }
  .main-nav ul { gap: 2rem; justify-content: flex-start; }
  .main-nav { order: 3; flex-basis: 100%; }
  .main-nav a { padding-block: .3rem; }
  .hero { padding-top: 3.5rem; }
  .product-illustration { padding: 2rem 1.25rem; }
  .preview-content { grid-template-columns: minmax(0, 1fr) 190px; }
  .preview-sidebar { padding: 1.25rem; }
  .preview-sidebar strong { font-size: 1.1rem; }
  .steps { gap: 2.5rem; }
  .story { padding-block: 4.5rem; }
  .privacy-story { gap: 3rem; grid-template-columns: .5fr 1fr; }
  .portal-nav { position:static; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 9rem; }
  .wrap, .narrow { width: calc(100% - 2.5rem); }
  .header-row { min-height: 64px; }
  .brand { font-size: 1.2rem; gap: .4rem; }
  .brand img { width: 30px; height: auto; }
  .header-actions { gap: .3rem; }
  .lang a { padding-inline: .3rem; }
  .button-small { padding-inline: .8rem; }
  .main-nav ul { justify-content: space-between; gap: .5rem; }
  .hero-copy .lead { font-size: 1.125rem; }
  .product-stage { margin-top: 2.5rem; }
  .product-illustration { padding: 1.5rem .75rem; border-radius: 20px; }
  .device-display { border-width: 5px; border-radius: 12px 12px 3px 3px; }
  .preview-content { grid-template-columns: 1fr; }
  .preview-sidebar { display: none; }
  .preview-toolbar { padding: .55rem .7rem; gap: 1.5rem; }
  .preview-camera { aspect-ratio: 3 / 2; }
  .device-base { height: 8px; }
  .product-media figcaption { font-size: .65rem; }
  .campaign-media { aspect-ratio: 4 / 5; border-radius: 20px; }
  .section-heading { margin-bottom: 2.5rem; }
  .use-cases { grid-template-columns: 1fr; }
  .use-cases .card { padding: 2rem; min-height: 0; }
  .privacy-story { grid-template-columns: 1fr; gap: 2.5rem; }
  .privacy-symbol { justify-items: start; }
  .privacy-symbol svg { width: 70px; height: 82px; }
  .page-head { padding-block: 3rem 1.5rem; }
  .page-head.pricing-head { padding-bottom: .75rem; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer-grid nav { flex: none; width: 100%; }
  .rename-form { flex-wrap: wrap; }
  .rename-form input { width: min(14rem, 100%); }
  .prose nav { padding: 1.25rem; }
  .page-head.legal-head { padding-block: 2rem 1rem; }
}
@media (forced-colors: active) {
  .button, .card, .plan, .device-display { border: 1px solid CanvasText; }
  .site-header { background: Canvas; }
}

/* Portal notification panel and bell counter (web alerts). */
.bell-link { display: flex !important; align-items: center; gap: .4rem; }
.bell { flex: none; }
.badge { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 999px; background: var(--accent-strong); color: var(--accent-text); font-size: .8rem; font-weight: 700; line-height: 1.5; text-align: center; }
.badge[hidden] { display: none; }
.notifications-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.notification-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .5rem; }
.notification { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; padding: .75rem 1rem; border-radius: 8px; background: var(--bg-soft); }
.notification.unread { border-left: 4px solid var(--accent-strong); }
.notification-type { font-weight: 600; }
.notification-state { color: var(--text-muted); font-size: .9rem; }
.notification .inline-form { margin-left: auto; }
.pager { display: flex; gap: 1rem; }
/* One accessible input: supports paste, SMS autofill and screen readers. */
input[autocomplete="one-time-code"], input[inputmode="numeric"][maxlength="6"] {
    box-sizing: border-box; display: block; width: min(100%, 18rem); max-width: none;
    min-height: 3.6rem; padding: .65rem 1rem; font-size: 1.65rem;
    font-variant-numeric: tabular-nums; letter-spacing: .45em; text-align: center;
    border-radius: .85rem; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: inherit;
}
.organization-logo { object-fit: contain; margin-block: 1rem; }
.organization-avatar { display: grid; place-content: center; width: 96px; height: 96px; border-radius: 22px; background: var(--bg-soft); color: var(--accent, #2671ce); text-align: center; margin-block: 1rem; }
.organization-avatar span { font-size: 1.8rem; line-height: 1; }
.organization-avatar strong { font-size: 1.2rem; }
.organization-avatar-hotel { color: #835630; }
.organization-avatar-healthcare { color: #278060; }
.organization-avatar-education { color: #6264bc; }
.join-business { text-align: center; padding-block: 4rem; max-width: 40rem; }

/* Keep the password-manager username offscreen without widening narrow forms. */
input.visually-hidden { width: 1px; max-width: 1px; min-width: 0; padding: 0; }

.inline-info { display: inline-block; position: relative; margin: .3rem 0; color: var(--muted, #646469); }
.inline-info > summary { cursor: pointer; list-style: none; width: 1.6rem; height: 1.6rem; text-align: center; border-radius: 50%; }
.inline-info > summary::-webkit-details-marker { display: none; }
.inline-info > summary:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }
.inline-info > p { position:absolute; z-index:30; inset-block-start:100%; inset-inline-end:0; width:min(22rem,calc(100vw - 6rem)); margin:.4rem 0 0; font-size:.85rem; line-height:1.5; padding:1rem; color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:14px; box-shadow:0 8px 28px rgb(0 0 0 / 15%); }
/* Expanded information groups remain in document flow after disclosure removal. */
section.inline-info{display:block;position:static;margin:.75rem 0}
section.inline-info>p{position:static;width:auto;max-width:100%;margin:.4rem 0;padding:0;border:0;box-shadow:none;background:transparent;font-size:1rem}
.has-info, .info-anchor { position:relative; }
.has-info > .inline-info { position:absolute; inset-block-start:0; inset-inline-end:0; margin:0; height:100%; pointer-events:none; }
.has-info > .inline-info > summary, .has-info > .inline-info > p { pointer-events:auto; }
.card.has-info > .inline-info, .panel.has-info > .inline-info { inset-block-start:1rem; inset-inline-end:1rem; height:1.6rem; }
.has-info > label, .info-anchor > .check { display:block; padding-inline-end:2rem; }
.profile-settings .info-anchor:has(> .check) { grid-column:1/-1; }
.public-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.public-media { max-width: 100%; max-height: 34rem; border-radius: 16px; object-fit: contain; }

/* Portal controls share the site's semantic colors in both appearances. */
.otp-digits { display:flex; justify-content:center; gap:clamp(.3rem,2vw,.7rem); margin:1.25rem auto; width:100%; }
.otp-digits input { width:clamp(2.3rem,9vw,3.5rem); height:3.8rem; padding:.2rem; text-align:center; font:500 1.8rem ui-monospace,SFMono-Regular,Consolas,monospace; border-radius:12px; }
.recipient-row { position:relative; padding-right:4.5rem; }
.recipient-remove { position:absolute; right:.75rem; top:.35rem; margin:0; }
.recipient-remove button { font-size:1.6rem; min-width:2.7rem; }
.notification { gap:.75rem 1.25rem; }
.notification-type { flex-basis:100%; font-weight:600; }
.notification-device, .notification time { display:block; }
.profile-settings { max-width:960px; margin-inline:auto; }
.profile-settings .panel { border-radius:20px; padding:clamp(1.2rem,3vw,2rem); }
.profile-settings .form { max-width:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem 1.5rem; }
.profile-settings .form > .check, .profile-settings .form > .inline-info, .profile-settings .form > button, .profile-settings .form > .error { grid-column:1/-1; }
.profile-settings textarea { min-height:7rem; }
.business-profile { text-align:center; max-width:760px; margin-inline:auto; }
.business-profile nav { display:flex; flex-wrap:wrap; justify-content:center; gap:.6rem; }
.business-feed { max-width:760px; margin-inline:auto; }
.business-feed .panel { border-radius:20px; overflow:hidden; }
.business-feed .public-media { width:100%; max-height:560px; object-fit:contain; }
.business-feed audio { width:100%; }
@media(max-width:640px) { .profile-settings .form { grid-template-columns:1fr; } .notification { align-items:flex-start; } }
.profile-settings .field { align-content:start; }
.profile-settings input[type="file"]::file-selector-button { border:0; border-radius:12px; padding:.7rem 1rem; background:var(--bg-soft); color:var(--text); font:inherit; cursor:pointer; }

/* One bordered surface for portal forms, cards and tables in either appearance. */
.portal .card, .portal .panel { background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:clamp(1.2rem,3vw,2rem); box-shadow:none; }
.portal .recipient-row { padding-right:4.5rem; }
.profile-settings .field { margin:0; }
.profile-settings .form { gap:1.4rem; }
.profile-settings .field > label { font-size:.9rem; font-weight:600; margin-bottom:.5rem; }
.profile-settings .form > button { justify-self:start; }
.profile-settings .panel + .panel { margin-top:1.5rem; }
.settings-nav { display:flex; flex-wrap:wrap; gap:.5rem; margin:0 0 1.5rem; padding-bottom:1rem; border-bottom:1px solid var(--border); }
.settings-nav a { display:inline-flex; align-items:center; min-height:40px; padding:.45rem .75rem; border-radius:999px; background:var(--bg-soft); color:var(--text); text-decoration:none; font-size:.9rem; }
.settings-nav a:hover { background:var(--accent-soft); color:var(--accent-strong); }
.profile-settings section[id], .profile-settings h2[id] { scroll-margin-top:7rem; }
.portal table { border:1px solid var(--border); border-radius:14px; border-collapse:separate; border-spacing:0; overflow:hidden; }

/* ---- Sign-in, registration and acceptance ---- */
.auth { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.auth-card { width: min(400px, 100% - 2rem); margin-inline: auto; padding: clamp(1.5rem, 5vw, 2.25rem); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 12px 32px rgb(0 0 0 / 4%); }
.auth-card h1 { font-size: var(--type-title); line-height: 1.2; letter-spacing: -.02em; font-weight: 600; margin-bottom: .35rem; }
.auth-card .form { max-width: none; gap: .9rem; margin: 0; }
.auth-card .field { gap: .35rem; }
.auth-card .field label { font-size: .875rem; font-weight: 500; }
.auth-card input[type="text"], .auth-card input[type="email"], .auth-card input[type="password"] { min-height: 42px; padding: .5rem .75rem; font-size: 1rem; border-color: var(--border); border-radius: 10px; }
.auth-card input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.auth-card .button { font-size: .95rem; padding: .7rem 1.2rem; min-height: 44px; }
.auth-card .error, .auth-card .notice { font-size: .9rem; margin: 0 0 1rem; border-radius: 12px; }
.auth-card .form .error { margin: 0; }
.auth-card .help { font-size: .8rem; }
.auth-card .divider { font-size: .8rem; margin: 1.1rem 0; }
.auth-lead { color: var(--text-muted); font-size: .95rem; margin-bottom: 1.5rem; }
.auth-note { margin-top: .25rem; }
.auth-back { font-size: .85rem; margin-bottom: 1rem; }
.auth-back a, .auth-switch a { text-decoration: none; font-weight: 500; }
.auth-back a:hover, .auth-switch a:hover { text-decoration: underline; }
.auth-switch { text-align: center; font-size: .9rem; color: var(--text-muted); margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.req { color: var(--danger); margin-left: .15rem; }
.optional { color: var(--text-muted); font-weight: 400; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.label-row a { text-decoration: none; }
.label-row a:hover { text-decoration: underline; }
.field-link { margin: .1rem 0 0; text-align: right; font-size: .85rem; }
.field-link a { text-decoration: none; font-weight: 500; }
.field-link a:hover { text-decoration: underline; }
.password-field { position: relative; }
.auth-card .password-field input { padding-right: 2.75rem; }
.password-toggle { position: absolute; inset-block: 0; right: .2rem; display: grid; place-items: center; width: 2.5rem; padding: 0; border: 0; background: none; color: var(--text-muted); cursor: pointer; border-radius: 8px; }
.password-toggle:hover, .password-toggle[aria-pressed="true"] { color: var(--text); }
.password-toggle svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle[aria-pressed="true"] svg { stroke: var(--accent); }
.password-toggle[hidden] { display: none; }
.password-rules { list-style: none; margin: .15rem 0 0; padding: 0; display: grid; gap: .1rem; font-size: .8rem; color: var(--text-muted); }
.password-rules li { position: relative; padding-left: 1.2rem; }
.password-rules li::before { content: ""; position: absolute; left: .2rem; top: .5em; width: .45rem; height: .45rem; border-radius: 50%; border: 1.5px solid currentColor; }
.password-rules li.ok { color: var(--ok); }
.password-rules li.ok::before { border: 0; width: .55rem; height: .3rem; top: .45em; border-radius: 0; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.password-rules li.bad { color: var(--danger); }
.help-warn { color: var(--warn); }
.help-warn[hidden] { display: none; }
.link-button { font: inherit; color: var(--accent-strong); background: none; border: 0; padding: 0; cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.legal-docs { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .5rem; }
.legal-docs a { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 500; }
.legal-docs a:hover { border-color: var(--accent); color: var(--accent-strong); }
.auth-card .field-check label { font-size: .9rem; line-height: 1.5; }

/* External providers: logo-only buttons on sign-in, logo + label when linking from Security. */
.provider-row { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.provider-button { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; padding: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.provider-button:hover { background: var(--bg-soft); border-color: #c5c5cc; box-shadow: 0 1px 3px rgb(0 0 0 / 6%); }
.provider-button:disabled { opacity: .55; cursor: progress; }
.provider-button[hidden], .provider-wide[hidden] { display: none; }
.provider-logo { width: 1.4rem; height: 1.4rem; display: block; }
.provider-list { display: grid; gap: .6rem; max-width: 360px; }
.provider-wide { gap: .6rem; }
.provider-wide .provider-logo { width: 1.15rem; height: 1.15rem; }
.provider-signin .error { margin-top: 1rem; }

/* ---- Download ---- */
.download-page { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.download-layout { max-width: 1040px; display: grid; gap: clamp(1.5rem, 4vw, 2.25rem); }
.download-head { text-align: center; }
.download-head h1 { font-size: var(--type-title); margin-bottom: .5rem; }
.download-head .lead { margin: 0 auto; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 1.5rem); align-items: stretch; }
.download-card { margin: 0; padding: clamp(1.35rem, 4vw, 2.25rem); background: var(--bg-soft); border-radius: 24px; scroll-margin-top: 1rem; }
.download-card > p { margin: 0; }
.platform-card { display: flex; flex-direction: column; gap: 1rem; }
.platform-top { display: flex; align-items: center; gap: 1rem; }
.platform-icon { flex-shrink: 0; width: 56px; height: 56px; padding: .55rem; border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / 6%); object-fit: contain; }
.platform-kicker { margin: 0 0 .15rem; font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--text-muted); }
.platform-title { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.5rem); letter-spacing: -.015em; }
.platform-text { color: var(--text); }
.platform-req { font-size: .9rem; color: var(--text-muted); }
.platform-alt { font-size: .95rem; }
.mobile-get { display: grid; gap: .85rem; }
.mobile-qr { display: flex; align-items: center; gap: 1rem; margin: .25rem 0 0; }
.mobile-qr img { flex-shrink: 0; width: 132px; height: 132px; padding: .5rem; border-radius: 16px; background: #fff; image-rendering: pixelated; }
.mobile-qr figcaption { font-size: .9rem; color: var(--text-muted); max-width: 18rem; }
.platform-ratings { display: flex; flex-wrap: wrap; gap: .5rem; margin: auto 0 0; padding: 1rem 0 0; list-style: none; border-top: 1px solid var(--border); }
.platform-ratings li { margin: 0; }
.platform-ratings a { display: block; line-height: 0; border-radius: 8px; }
.platform-ratings img { display: block; width: 48px; height: 48px; padding: 3px; border-radius: 8px; background: #fff; object-fit: contain; }
/* Store offer (D097), styled like the "Get" button of the Microsoft Store web page. */
.store-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.store-button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; min-width: 11.5rem; padding: .6rem 1.5rem; border: 1px solid #0067c0; border-radius: 10px; background: #0067c0; color: #fff; font-size: 1rem; font-weight: 600; text-decoration: none; }
.store-button:hover { background: #00539c; border-color: #00539c; color: #fff; }
.store-button-dark { background: #1f1f1f; border-color: #1f1f1f; }
.store-button-dark:hover { background: #3b3b3b; border-color: #3b3b3b; }
.store-button-quiet { background: var(--surface); border-color: var(--border); color: var(--text); }
.store-button-quiet:hover { background: var(--surface); border-color: #b8b8c0; color: var(--text); }
.store-button svg, .store-button img { flex-shrink: 0; }
.download-suspended { display: block; margin: 0; }
.download-suspended p + p { margin-top: .35rem; }
.pre-line { white-space: pre-line; }
@media (max-width: 820px) {
  .download-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .download-head { text-align: left; }
  .store-actions { flex-direction: column; }
  .store-button { width: 100%; }
  .mobile-qr { display: none; }
  .platform-ratings { gap: .35rem; }
  .platform-ratings img { width: 42px; height: 42px; }
}

/* ---- Error pages (Hosting/ErrorPages.cs, pre-rendered) ---- */
.error-page section { padding-block: clamp(3rem, 10vw, 7rem); }
.error-code { margin: 0 0 1rem; font-size: .9rem; font-weight: 600; letter-spacing: .08em; color: var(--text-muted); }
.error-page h1 { max-width: 760px; }
.error-page .lead { max-width: 620px; color: var(--text-muted); }

.mobile-story { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.mobile-story figure { margin: 0; text-align: center; }
.mobile-story img { width: min(100%, 300px); height: auto; border-radius: 28px; box-shadow: 0 20px 70px #0002; }
.mobile-story figcaption { margin-top: 1rem; font-size: .85rem; color: var(--text-muted); }
@media (max-width: 700px) { .mobile-story { grid-template-columns: 1fr; gap: 2rem; } }

/* Keep intrinsic content inside the viewport, including account forms and long public text. */
main, section, .card, .panel, .plan, .field, fieldset, .header-actions, .footer-grid > * { min-width: 0; }
input, select, textarea, video, iframe { max-width: 100%; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
p, h1, h2, h3, label, legend, .button, td, th { overflow-wrap: anywhere; }
.cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.choice-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.table-wrap, .privacy-table-wrap { max-width: 100%; }
.table-wrap:focus-visible, .privacy-table-wrap:focus-visible { outline-offset: -3px; }
@media (max-width: 700px) {
  .responsive-table { overflow: visible; }
  .responsive-table table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display:block; width:100%; min-width:0; box-sizing:border-box; }
  .responsive-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .responsive-table tr { padding:.55rem 0; border-bottom:1px solid var(--border); }
  .responsive-table tr:last-child { border-bottom:0; }
  .responsive-table td { padding:.5rem 1rem; border:0; white-space:normal; text-align:left; }
  .responsive-table td::before { content:attr(data-label); display:block; margin-bottom:.2rem; color:var(--text-muted); font-size:.78rem; font-weight:600; }
  .responsive-table .num { text-align:left; }
}
@media (max-width: 600px) {
  .site-header .brand img { width: 110px; }
  .header-row { justify-content: space-between; gap: .5rem; }
  .portal-shell-header .header-actions { flex:1 1 100%; justify-content:space-between; }
  .portal-shell-header .lang { margin-right:auto; }
  .header-actions { gap: .25rem; }
  .main-nav ul { justify-content: flex-start; gap: .25rem 1rem; }
  .main-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .site-header { position: relative; }
  .facts { grid-template-columns: 1fr; gap: .15rem; }
  .facts dd { margin-bottom: .75rem; }
  .card, .panel, .plan { padding: 1rem; }
  .account-menu nav { max-width: calc(100vw - 2.5rem); }
  .pager, .actions { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Shared typography components: every page, including isolated privacy forms, uses this scale. */
:root { --type-title:clamp(1.75rem,3.5vw,2.5rem);--type-section:clamp(1.25rem,2.4vw,1.6rem);--type-subtitle:1.15rem;--type-body:1rem;--type-caption:.875rem; }
h4,h5,h6 { font-size:var(--type-body);line-height:1.4;font-weight:650;margin:0 0 .6em; }
p,li,dd,dt { font-size:inherit; }
input,select,textarea,button { font-family:inherit; }
.page-title { font-size:var(--type-title);line-height:1.16;font-weight:650; }
.section-title { font-size:var(--type-section);line-height:1.25;font-weight:650; }
.body-text { font-size:var(--type-body);line-height:1.55; }
.caption-text { font-size:var(--type-caption);line-height:1.4; }

/* Navigation uses normal document loading. A global transition opt-in is not
   valid across the independently styled portal, public site and editor layouts. */
@media (prefers-reduced-motion: no-preference) {
  .site-header { view-transition-name:site-header; }
  ::view-transition-old(root) { animation:page-leave 180ms ease-out both; }
  ::view-transition-new(root) { animation:page-enter 300ms cubic-bezier(.22,1,.36,1) both; }
  ::view-transition-old(site-header),::view-transition-new(site-header) { animation:none; }
  @supports not (view-transition-name: none) { main { animation:page-enter 300ms cubic-bezier(.22,1,.36,1) both; } }
}
@keyframes page-enter { from { opacity:0;transform:translateX(18px); } to { opacity:1;transform:translateX(0); } }
@keyframes page-leave { from { opacity:1;transform:translateX(0); } to { opacity:0;transform:translateX(-8px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*) { animation:none!important; }
}

/* Portal module groups, visible at large widths and in the horizontally scrolling small-screen menu. */
.portal-nav-heading{padding:1rem .8rem .3rem;color:var(--text-muted);font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;list-style:none}
.portal-shortcuts{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0 1.5rem}
.portal-shortcuts .button{margin:0}
@media(max-width:860px){.portal-nav-heading{padding:.6rem .4rem;white-space:nowrap;border-left:1px solid var(--border);font-size:.7rem}}
html[data-reduced-motion="true"] *,html[data-reduced-motion="true"] *::before,html[data-reduced-motion="true"] *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
/* Embudo: pricing (12/11/2026). One column per plan on wide screens (plans-nN = visible cards, Free included) and a
   single column on phones; inside each card the type scales with the card width (container query units). The
   comparison table starts closed only when pricing.js runs (the "+" of each card and #comparar open it). */
.pricing-body [hidden] { display: none !important; }
.pricing-plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; align-items: stretch; }
@media (min-width: 64rem) {
  .pricing-plans.plans-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-plans.plans-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pricing-plans.plans-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pricing-plans.plans-n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
  .pricing-plans.plans-n6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
  .pricing-plans.plans-n5 > .plan, .pricing-plans.plans-n6 > .plan { padding: 1.25rem; }
  .pricing-plans.plans-n4 > .plan { padding: 1.75rem; }
}
.pricing-plans > .plan { container-type: inline-size; min-width: 0; }
.pricing-plans .plan > h2 { margin: 0 0 .25rem; font-size: clamp(1.1rem, 8cqi, 1.5rem); overflow-wrap: anywhere; }
.pricing-plans .plan-description { min-height: 3.2em; margin-bottom: .5rem; font-size: clamp(.85rem, 5.5cqi, 1rem); }
.pricing-plans .plan .price .amount { font-size: clamp(1.3rem, 12cqi, 2.8rem); } /* "199.000 ARS por mes" stays on one line in four columns from 1024 px */
.pricing-plans .plan .price .per { font-size: clamp(.8rem, 5.5cqi, 1rem); }
.pricing-plans .plan .checklist { font-size: clamp(.82rem, 5.5cqi, .95rem); }
.pricing-plans .plan-billing { margin: 0; color: var(--text-muted); font-size: clamp(.78rem, 5cqi, .9rem); }
.pricing-plans .plan > .button, .pricing-plans .plan > .plan-current { margin-top: auto; align-self: stretch; text-align: center; }
.pricing-plans .plan > .checklist { margin-block: 1rem; }
.pricing-plans .plan > :nth-last-child(2) { margin-bottom: 1.25rem; }
.plan-current { margin: 0; padding: .55rem 1rem; border-radius: 999px; background: var(--bg-soft); color: var(--text-muted); font-weight: 600; font-size: .9rem; text-align: center; }
.plan-compare-table .plan-current { padding: .4rem .8rem; font-size: .8rem; }
/* The last item of every plan list opens the comparison table: a "+" in place of the check mark. */
.checklist li.plan-more-item::before { content: "+"; left: .15rem; top: -.2em; width: auto; height: auto; border: 0; transform: none; color: var(--accent); font-size: 1.6em; font-weight: 700; line-height: 1; }
.plan-more-item a { font-weight: 600; text-decoration: none; }
.plan-more-item a:hover { text-decoration: underline; }
.billing-interval { display: flex; width: fit-content; max-width: 100%; margin: 0 auto 1.75rem; padding: .25rem; gap: .25rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-soft); }
.billing-interval label { position: relative; display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .5rem 1.1rem; border-radius: 999px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.billing-interval input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.billing-interval label:has(input:checked) { background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / .14); }
.billing-interval label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.billing-saving { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.plan-compare { scroll-margin-top: 1rem; }
@media (max-width: 600px) {
  .billing-interval label { padding: .45rem .8rem; font-size: .92rem; }
  .pricing-plans .plan-description { min-height: 0; }
}

/* Embudo: signup */
.signup-intent { margin: -.25rem 0 1rem; color: var(--text-muted); font-size: .9rem; }
/* Embudo: checkout (resumen primero, cambio de plan y puesta en marcha; docs/PLAN-EMBUDO-SUSCRIPCION.md fases 4 y 5) */
.checkout-flow { display:grid; gap:16px; margin-top:8px; }
.checkout-flow .subscription-heading { margin:24px 0 0; }
.checkout-form .subscription-fields { gap:20px; }
.checkout-choices { display:grid; gap:16px; }
.checkout-choice { border:0; padding:0; margin:0; min-width:0; }
.checkout-choice legend { font-weight:600; margin-bottom:8px; }
.checkout-pills { display:flex; flex-wrap:wrap; gap:8px; }
.checkout-pill { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 16px; border:1px solid var(--border); border-radius:999px; background:var(--bg); cursor:pointer; font-weight:500; }
.checkout-pill input { margin:0; accent-color:var(--accent); }
.checkout-pill:has(input:checked) { border-color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent); background:var(--surface); }
.checkout-pill:has(input:disabled) { opacity:.5; cursor:not-allowed; }
.checkout-pill:focus-within { outline:2px solid var(--focus); outline-offset:2px; }
.checkout-saving { font-size:.8rem; font-weight:600; color:var(--ok); }
.checkout-summary { display:grid; gap:12px; padding:24px; max-width:40rem; }
.checkout-summary p { margin:0; }
.checkout-summary-item { display:grid; gap:10px; }
.checkout-summary-plan { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:1.15rem; }
.checkout-summary-price strong { font-size:1.9rem; letter-spacing:-.03em; }
.checkout-summary-facts { display:flex; flex-wrap:wrap; gap:4px 16px; margin:0; padding:0; list-style:none; color:var(--text-muted); font-size:.9rem; }
.checkout-country { display:grid; gap:6px; padding-top:12px; border-top:1px solid var(--border); }
.checkout-country label { font-weight:600; }
.checkout-country-row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.checkout-country-row select { flex:1 1 12rem; min-width:0; max-width:22rem; }
.checkout-summary [data-checkout-submit] { justify-self:start; }
.setup-card { margin:0 0 24px; padding:24px; background:var(--surface); border:1px solid var(--border); border-radius:16px; }
.setup-head { margin-bottom:16px; }
.setup-head h2 { margin:0 0 4px; font-size:1.3rem; }
.setup-head p { margin:0; }
.setup-kicker { font-size:.8rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); }
.setup-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:0; padding:0; list-style:none; }
.setup-step { display:flex; gap:12px; align-items:flex-start; min-width:0; padding:16px; border:1px solid var(--border); border-radius:12px; background:var(--bg); }
.setup-step[data-done="true"] { background:var(--ok-soft); border-color:var(--ok); }
.setup-mark { flex:0 0 auto; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; border:1px solid var(--border); font-weight:700; font-size:.9rem; }
.setup-step[data-done="true"] .setup-mark { border-color:var(--ok); color:var(--ok); }
.setup-body { display:grid; gap:8px; min-width:0; overflow-wrap:anywhere; }
.setup-body h3 { margin:0; font-size:1rem; }
.setup-body p, .setup-body .inline-form { margin:0; }
.setup-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.setup-qr { display:flex; align-items:center; gap:12px; margin:0; }
.setup-qr img { width:112px; height:112px; border-radius:8px; }
.download-linked { margin:12px 0 0; font-size:.9rem; }
@media (max-width:900px) { .setup-steps { grid-template-columns:1fr; } }
@media (max-width:480px) { .checkout-summary, .setup-card { padding:16px; } .checkout-pill { flex:1 1 auto; justify-content:center; } }
