/* Public website pages (home, terms, privacy, refunds, pricing, checkout).
   Separate from styles.css, which centres the small account forms. Light theme only, as designed. */
[hidden] {
  display: none !important;
}
:root {
  color-scheme: light;
  --bg: #fbf9f6;
  --band: #f6f3ee;
  --card: #ffffff;
  --ink: #0e1a3a;
  --text: #1d2433;
  --muted: #566074;
  --border: #e6e2db;
  --accent: #3d5afe;
  --accent-hover: #2f48d9;
  --accent-text: #ffffff;
  --soft: #e6ebff;
  --band: #f1f4fc;
  --todo: #fff3bf;
  --serif:
    'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman',
    serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body.site {
  display: block;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}
.site a {
  color: var(--accent);
}
.site-header,
.site-footer,
.wrap {
  width: min(1128px, 100% - 40px);
  margin-inline: auto;
}
.topbar {
  background: #fffefd;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink) !important;
  text-decoration: none;
}
.wordmark img {
  width: 56px;
  height: 56px;
}
.site-header nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.site-header nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-header nav a:hover {
  color: var(--accent);
}

/* hero */
.hero-band {
  background:
    radial-gradient(ellipse 60% 90% at 88% 40%, #e6ecff 0%, rgba(230, 236, 255, 0) 70%),
    linear-gradient(180deg, #f4f1ec 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 40px 0 36px;
  width: min(1128px, 100% - 40px);
  margin-inline: auto;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 22px;
}
.hero h1 .hl {
  position: relative;
  color: var(--accent);
  white-space: nowrap;
}
.hero h1 .hl svg {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 16px;
}
.hero p.lead-text {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 34em;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink) !important;
  background: var(--card);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text) !important;
  box-shadow: 0 6px 16px rgba(61, 90, 254, 0.28);
}
.btn.primary:hover {
  background: var(--accent-hover);
}
.btn svg {
  width: 20px;
  height: 20px;
}
.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.fine {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 20px;
  max-width: 34em;
}
.fine svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.hero-art {
  width: 100%;
  height: auto;
}

/* sections */
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  color: var(--ink);
  margin: 52px 0 2px;
  line-height: 1.15;
}
.lead {
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 1.05rem;
}
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  position: relative;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px 24px;
  min-height: 210px;
}
.step .num {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.step:nth-child(1) .num {
  background: #e3e9ff;
  color: #1f3fc8;
}
.step:nth-child(2) .num {
  background: #def3e8;
  color: #1c7a4a;
}
.step:nth-child(3) .num {
  background: #ece3fb;
  color: #5a2bb8;
}
.step h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.step p {
  margin: 0;
  color: var(--muted);
  max-width: 17em;
}
.step .pic {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 96px;
  height: 80px;
}
.step .arrow {
  position: absolute;
  right: -22px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  z-index: 1;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 28px 12px 18px;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(14, 26, 58, 0.04);
}
.chips svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.privacy {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 48px;
}
.privacy .left {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.privacy .shield {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
}
.privacy .shield svg {
  width: 28px;
  height: 28px;
}
.privacy h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.privacy p {
  margin: 0;
  color: var(--muted);
}
.control {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #eef0f8;
  border-radius: 12px;
  padding: 22px 24px;
}
.control svg {
  flex: none;
  width: 30px;
  height: 30px;
}
.control strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}
.control span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 0 40px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.site-footer nav a {
  font-size: 0.85rem;
  text-decoration: none;
}

/* Language links in the footer, the "available in your language" bar and right-to-left pages */
.site-footer .lang-switch {
  flex-basis: 100%;
  gap: 8px 18px;
}
.lang-switch summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink);
}
.lang-switch summary::-webkit-details-marker {
  display: none;
}
.lang-switch summary::before {
  content: '\1F310';
}
.lang-switch summary::after {
  content: '\25BE';
  font-size: 0.8em;
}
.lang-switch ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  columns: 5 9rem;
  column-gap: 16px;
}
.lang-switch li {
  margin: 0 0 6px;
  break-inside: avoid;
}
.lang-switch a[aria-current] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.lang-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 40px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.92rem;
  position: relative;
}
.lang-hint button {
  position: absolute;
  inset-inline-end: 12px;
  background: none;
  border: 0;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.translation-notice {
  background: var(--soft);
  border-radius: 10px;
  padding: 10px 14px;
}
html[dir='rtl'] svg {
  /* Drawings (the demo illustration) keep their own left-to-right geometry. */
  direction: ltr;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step .arrow {
    display: none;
  }
  .privacy {
    grid-template-columns: 1fr;
  }
}

/* long text documents */
.doc {
  max-width: 760px;
  margin: 24px auto 0;
  width: min(760px, 100% - 32px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px clamp(20px, 5vw, 44px);
}
.doc h1 {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 2rem;
  margin: 0 0 4px;
}
.doc h2 {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.2rem;
  margin: 32px 0 8px;
}
.doc p,
.doc li {
  color: var(--text);
}
.doc ul {
  padding-left: 22px;
}
.doc .updated {
  color: var(--muted);
  margin: 0 0 24px;
}
.todo {
  background: var(--todo);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
}

/* pricing + checkout */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.card h3 {
  font-family: var(--serif);
  color: var(--ink);
  margin: 8px 0;
  font-size: 1.2rem;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.plan .price {
  font-size: 2rem;
  font-weight: 700;
  margin: 8px 0;
}
.plan ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.notice {
  background: var(--soft);
  border-radius: 10px;
  padding: 14px 18px;
}
.plain-hero {
  padding: 40px 0 8px;
  max-width: 720px;
}
.plain-hero h1 {
  font-family: var(--serif);
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0 0 12px;
}
.plain-hero p {
  color: var(--muted);
  font-size: 1.1rem;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40em;
  margin: 8px 0 24px;
}

/* top bar Account pill, as in the mockup */
.site-header nav {
  align-items: center;
}
.site-header nav a.nav-pill {
  padding: 9px 26px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
}
.site-header nav a.nav-pill:hover {
  background: var(--soft);
  color: var(--accent);
}

/* forms and account pages */
.acct {
  width: min(760px, 100% - 32px);
  margin: 24px auto 0;
}
.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted) !important;
  text-decoration: none;
  font-weight: 600;
}
.back-link:hover {
  color: var(--accent) !important;
}
.acct h1 {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 2rem;
  margin: 0 0 4px;
}
.acct h2 {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.25rem;
  margin: 0 0 6px;
}
.acct-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
}
.acct form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}
.acct label {
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}
.acct input[type='email'],
.acct input[type='password'],
.acct input[type='text'],
.acct select,
.acct textarea {
  font: inherit;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}
.acct input:focus-visible,
.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.acct label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.acct label.check input {
  margin-top: 4px;
}
.btn {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn.small {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
}
.btn.danger {
  border-color: #d9534f;
  color: #b3261e !important;
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
button.link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}
.switches {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 16px 0 0;
}
.msg {
  min-height: 1.4em;
  font-size: 0.92rem;
  margin: 10px 0 0;
}
.msg.error {
  color: #b3261e;
}
.msg.ok {
  color: #1b7a43;
}
.dash-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.rows {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.rows li {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.rows li span {
  overflow-wrap: anywhere;
}
.inline-form {
  display: flex !important;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.inline-form .grow {
  flex: 1;
  min-width: 200px;
}
.data-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.data-row:first-of-type {
  border-top: 0;
}
.data-row .lead {
  margin: 2px 0 0;
  font-size: 0.95rem;
}
.plan-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
/* The portable-version notes sit below the download buttons with some air. */
#download-portable,
#download-portable-mac {
  margin-top: 20px;
}

/* ---------- home page: eyebrow, sections, scroll reveal ---------- */
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.btn .arr {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}
.btn-row.center {
  justify-content: center;
}
.hero-art {
  filter: drop-shadow(0 18px 30px rgba(27, 42, 99, 0.08));
}
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}
html.js .reveal.d1 {
  transition-delay: 0.1s;
}
html.js .reveal.d2 {
  transition-delay: 0.2s;
}
html.js .reveal.d3 {
  transition-delay: 0.3s;
}
.band {
  background: var(--band);
  margin: 56px 0 0;
  padding: 8px 0 60px;
}
.band + section,
section + .band {
  margin-top: 0;
}
.band .section-title {
  margin-top: 48px;
}

/* the problem: old way versus Yotei */
.versus {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  margin-top: 8px;
}
.vs-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 28px;
}
.vs-card.new {
  background: linear-gradient(180deg, #f1f4ff, #fff);
  border-color: #cdd6ff;
  box-shadow: 0 10px 30px rgba(61, 90, 254, 0.1);
}
.vs-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}
.vs-tag.old {
  background: #efece6;
  color: #6b655a;
}
.vs-card ol {
  margin: 16px 0 14px;
  padding-left: 22px;
  color: var(--text);
  display: grid;
  gap: 6px;
}
.vs-time {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
}

/* how it works */
.steps .step {
  min-height: 210px;
}
.steps .step:last-child .arrow {
  display: none;
}

/* a closer look */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.flow-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px 18px;
}
.flow-card svg {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}
.flow-card figcaption strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
}
.flow-card figcaption span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* tile grids */
.tiles {
  display: grid;
  gap: 18px;
  margin: 28px 0 8px;
}
.tiles.three {
  grid-template-columns: repeat(3, 1fr);
}
.tiles.four {
  grid-template-columns: repeat(4, 1fr);
}
.tiles.six {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
}
.tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 24px;
}
.tile h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}
.tile .ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft);
  margin-bottom: 14px;
}
.tile .ico svg {
  width: 24px;
  height: 24px;
}

/* privacy */
.checks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}
.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
}
.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #def3e8
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4.2 8.3l2.4 2.4 5-5.2' fill='none' stroke='%231c7a4a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    center/100% no-repeat;
}

/* pricing */
.plans3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.plan-card.featured {
  border-color: var(--accent);
  box-shadow: 0 14px 36px rgba(61, 90, 254, 0.16);
}
.plan-card .badge {
  position: absolute;
  top: -13px;
  left: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.plan-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0;
}
.plan-card .who {
  margin: 2px 0 10px;
  color: var(--muted);
}
.plan-card .price {
  margin: 0 0 14px;
  color: var(--ink);
}
.plan-card .price strong {
  font-family: var(--serif);
  font-size: 2.6rem;
}
.plan-card .price span {
  color: var(--muted);
}
.plan-card ul {
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  flex: 1;
}
.plan-card .btn {
  justify-content: center;
}
.fine-print {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 18px 0 0;
}

/* final call to action */
.cta {
  text-align: center;
  background: linear-gradient(135deg, #eef1ff, #f7f5ff);
  border: 1px solid #d9e0ff;
  border-radius: 22px;
  padding: 54px 24px;
  margin: 56px 0 0;
}
.cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--ink);
  margin: 0 0 8px;
}
.cta p {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 1.1rem;
}

@media (max-width: 960px) {
  .versus,
  .tiles.three,
  .tiles.six,
  .plans3,
  .checks {
    grid-template-columns: 1fr;
  }
  .flow,
  .tiles.four {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .flow,
  .tiles.four {
    grid-template-columns: 1fr;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 8px 0 40px;
}
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
.btn[aria-disabled='true'] {
  opacity: 0.6;
  pointer-events: none;
}

/* larger hero illustration, bleeding toward the right edge like the mockup */
.hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}
.hero-art {
  width: 106%;
  max-width: none;
  margin-right: -4%;
}
@media (max-width: 860px) {
  .hero-art {
    width: 100%;
    margin-right: 0;
  }
}

/* section labels sit with the heading they introduce, with the space above the label instead */
.reveal > .eyebrow {
  margin: 52px 0 10px;
}
.band .reveal > .eyebrow {
  margin-top: 48px;
}
.eyebrow + .section-title {
  margin-top: 0;
}

/* phones: one column, art below the text and inside the screen */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-top: 28px;
  }
  .hero-art {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }
  .hero h1 .hl {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 8px;
  }
  .wordmark {
    font-size: 1.15rem;
    gap: 8px;
  }
  .wordmark img {
    width: 42px;
    height: 42px;
  }
  .site-header nav {
    gap: 14px;
    flex-wrap: nowrap;
  }
  .site-header nav a {
    font-size: 0.88rem;
  }
  .site-header nav a.nav-pill {
    padding: 7px 14px;
  }
}

/* show / hide password eye */
.pw-wrap {
  position: relative;
  display: block;
}
.pw-wrap input {
  padding-right: 46px !important;
}
.pw-eye {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.pw-eye:hover,
.pw-eye:focus-visible {
  color: var(--accent);
  background: var(--soft);
}
.pw-eye svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pw-eye.blink svg {
  animation: pw-blink 0.35s ease;
}
@keyframes pw-blink {
  0% {
    transform: scaleY(1);
  }
  45% {
    transform: scaleY(0.1);
  }
  100% {
    transform: scaleY(1);
  }
}
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
}

.trial-form {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.acct textarea,
.acct select {
  font: inherit;
}

.plan-card .saves {
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.4;
}
.plan-card .saves strong {
  color: var(--accent);
}

.codes {
  margin: 8px 0 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.06em;
}
#tf-qr {
  display: block;
  margin: 8px 0;
  border-radius: 8px;
  background: #fff;
}

/* The hidden attribute must win over any display style a class sets. */
[hidden] {
  display: none !important;
}

/* monthly / yearly choice on the pricing page and the account page */
.period-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 26px;
}
.period-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
}
.period-toggle button {
  font: inherit;
  font-weight: 600;
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.period-toggle button[aria-pressed='true'] {
  background: var(--accent);
  color: #fff;
}
.period-toggle .save-tag {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: color-mix(in srgb, var(--ok, #1c7a4a) 16%, transparent);
  color: var(--ok, #1c7a4a);
}
.period-toggle button[aria-pressed='true'] .save-tag {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.plan-card .per-month {
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}
.plan-buttons .period-row {
  flex: 0 0 100%;
}

/* owner page */
.admin .acct-card {
  margin-bottom: 18px;
}
.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: end;
}
.admin-form label {
  display: grid;
  gap: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-form input {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
}
.admin-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.admin-totals div {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.admin-totals strong {
  font-size: 1.4rem;
  color: var(--ink);
}
.admin-totals span {
  color: var(--muted);
  font-size: 0.85rem;
}
.admin-scroll {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.admin-table th,
.admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.admin-table .num {
  text-align: right;
}
.admin-table .code {
  font-family: ui-monospace, Consolas, monospace;
}
.admin-table tr.off {
  opacity: 0.55;
}
.admin-table .actions {
  display: flex;
  gap: 6px;
}
.pay-row {
  display: block;
  padding: 4px 0;
}

/* ---------- trust strip (home and pricing) ---------- */
.trust {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.trust li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 17em;
}
.trust svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}
.trust strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.25;
}
.trust small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.trust-note {
  margin: 12px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 44em;
}
.plain-hero .trust {
  justify-content: center;
  text-align: left;
}
.plain-hero .trust-note {
  margin-inline: auto;
}
@media (max-width: 560px) {
  .trust {
    flex-direction: column;
    gap: 12px;
  }
  .trust li {
    max-width: none;
  }
}

/* ---------- plain tables on landing pages ---------- */
.plain-hero h2 {
  margin-top: 28px;
}
.plain-hero ol,
.plain-hero ul {
  max-width: 40em;
  margin-inline: auto;
  text-align: left;
}
.plain-table {
  border-collapse: collapse;
  margin: 14px auto;
  text-align: left;
}
.plain-table th,
.plain-table td {
  border-bottom: 1px solid var(--line, #e3e7ee);
  padding: 8px 14px;
}
