/* ===========================================================
   PWAfy — stylesheet
   Built by AYOCODES
   =========================================================== */

:root {
  --paper: #EDEFEA;
  --paper-raised: #F7F8F5;
  --ink: #141C18;
  --ink-soft: #4B564F;
  --ink-faint: #7C877F;
  --line: #C7D0C9;
  --line-soft: #DBE1D8;
  --accent: #FF4E1F;
  --accent-ink: #FFF3EC;
  --accent-dim: #FFDCCB;
  --success: #1E6E4C;
  --success-bg: #E4F0E9;
  --warn: #9A6B00;
  --warn-bg: #FBEFD2;
  --danger: #9A2E15;
  --danger-bg: #FBEAE6;
  --surface-dark: #101815;
  --surface-dark-2: #182420;
  --surface-dark-line: #2B3A33;
  --paper-text-on-dark: #EDEFEA;
  --radius-s: 3px;
  --radius-m: 6px;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --display: 'Fraunces', var(--sans);
  --shadow-panel: 0 1px 0 rgba(20, 28, 24, 0.04);
}

/* Dark mode — swaps the paper for the same ink tones used in code panels,
   so it doesn't feel like a bolted-on theme */
[data-theme="dark"] {
  --paper: #0F1613;
  --paper-raised: #151E1A;
  --ink: #EDEFEA;
  --ink-soft: #AAB6AE;
  --ink-faint: #6E7A72;
  --line: #2B3A33;
  --line-soft: #22302A;
  --accent: #FF6A3D;
  --accent-ink: #1A0D08;
  --accent-dim: #3A2015;
  --success: #5CC298;
  --success-bg: #12261D;
  --warn: #E0B24A;
  --warn-bg: #2A2211;
  --danger: #F0836C;
  --danger-bg: #2A1712;
  --surface-dark: #050A08;
  --surface-dark-2: #0C1310;
  --surface-dark-line: #1D2723;
  --paper-text-on-dark: #EDEFEA;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
  overflow-x: hidden;
  max-width: 100vw;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.crop {
  position: relative;
}

.crop::before,
.crop::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--ink);
  opacity: 0.55;
}

.crop::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.crop::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

/* ---------- Boot preloader ---------- */
#bootPreloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--surface-dark);
  color: var(--paper-text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  transition: opacity .5s ease, visibility .5s ease;
}

#bootPreloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-mark {
  font-family: var(--mono);
  font-size: 13px;
  color: #8B968F;
  display: flex;
  gap: 2px;
  align-items: center;
}

.boot-mark .dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 1px;
  animation: bootPulse 1.1s ease-in-out infinite;
}

.boot-mark .dot:nth-child(2) {
  animation-delay: .15s;
}

.boot-mark .dot:nth-child(3) {
  animation-delay: .3s;
}

@keyframes bootPulse {

  0%,
  60%,
  100% {
    opacity: .25;
  }

  30% {
    opacity: 1;
  }
}

.boot-line {
  font-family: var(--mono);
  font-size: 12px;
  color: #5A655F;
  letter-spacing: .02em;
  min-height: 16px;
}

.boot-track {
  width: 180px;
  height: 2px;
  background: var(--surface-dark-line);
  border-radius: 2px;
  overflow: hidden;
}

.boot-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .3s ease;
}

/* ---------- Inline / step preloader (build & scan) ---------- */
.pw-loader {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pw-loader .ring {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: pwspin .65s linear infinite;
  flex-shrink: 0;
}

@keyframes pwspin {
  to {
    transform: rotate(360deg);
  }
}

.pw-loader .msg {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ---------- Skeleton loaders (content-shaped placeholders, for the
   account/presets bar while the initial Supabase session resolves —
   distinct from .pw-loader, which is for short one-line async actions) ---------- */
.skeleton {
  display: inline-block;
  border-radius: var(--radius-s);
  background: linear-gradient(
    100deg,
    var(--line-soft) 30%,
    var(--paper-raised) 50%,
    var(--line-soft) 70%
  );
  background-size: 220% 100%;
  animation: pwshimmer 1.4s ease-in-out infinite;
}

@keyframes pwshimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -20% 0; }
}

.skeleton-chip {
  width: 132px;
  height: 34px;
  border-radius: 20px;
}

.skeleton-bar {
  width: 220px;
  height: 38px;
  margin-bottom: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.wordmark .dot {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}

.by-line {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  margin-left: 4px;
}

.nav-right {
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  max-width: 100%;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-s);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-cta {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 32px 72px;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: end;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-kicker .swatch {
  width: 20px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

h1.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  max-width: 14ch;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: var(--radius-s);
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(0.92);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: var(--radius-s);
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 2px;
}

.hero-panel {
  background: var(--surface-dark);
  border-radius: 8px;
  padding: 22px;
  color: var(--paper-text-on-dark);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  border: 1px solid var(--surface-dark-line);
}

.hero-panel .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--surface-dark);
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.hero-panel .k {
  color: #7FB69C;
}

.hero-panel .s {
  color: #E6A96B;
}

.hero-panel .c {
  color: #6C7A72;
}

.stat-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  background: var(--paper);
  padding: 20px 22px;
}

.stat .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
}

.stat .lbl {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- Section shell ---------- */
section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-head {
  margin: 0 0 34px;
  max-width: 60ch;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Tool shell ---------- */
#tool {
  padding-top: 76px;
  padding-bottom: 110px;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

.wizard {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}

.steps-nav {
  display: flex;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.step-tab {
  flex: 1;
  min-width: 118px;
  padding: 16px 14px;
  background: none;
  border: none;
  border-right: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  color: var(--ink-faint);
  position: relative;
}

.step-tab:last-child {
  border-right: none;
}

.step-tab .n {
  font-family: var(--mono);
  font-size: 12px;
  display: block;
  margin-bottom: 4px;
}

.step-tab .t {
  font-size: 13.5px;
  font-weight: 500;
}

.step-tab.active {
  color: var(--ink);
  background: var(--paper);
}

.step-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.step-tab.done .n::before {
  content: "\2713 ";
}

.step-tab.done {
  color: var(--ink-soft);
}

.step-tab:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.step-body {
  padding: 32px;
}

.step-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  margin: 0 0 6px;
}

.step-desc {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 26px;
  line-height: 1.55;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}

.field .hint {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 6px;
}

.field input[type=text],
.field input[type=url],
.field textarea,
.field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 14.5px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper-raised);
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 64px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ink);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.char-count {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  text-align: right;
  margin-top: 4px;
}

.char-count.over {
  color: var(--warn);
}

.color-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-field input[type=color] {
  width: 44px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 2px;
  background: var(--paper-raised);
  cursor: pointer;
}

.color-field input[type=text] {
  flex: 1;
}

.tabs-inline {
  display: flex;
  gap: 0;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  overflow: hidden;
  width: fit-content;
}

.tabs-inline button {
  padding: 9px 16px;
  background: var(--paper);
  border: none;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-soft);
  border-right: 1px solid var(--line);
}

.tabs-inline button:last-child {
  border-right: none;
}

.tabs-inline button.active {
  background: var(--ink);
  color: var(--paper);
}

.scan-row {
  display: flex;
  gap: 10px;
}

.scan-row input {
  flex: 1;
}

.btn-scan {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 0 20px;
  border-radius: var(--radius-s);
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-scan:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-scan:disabled {
  opacity: 0.5;
  cursor: wait;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: var(--radius-s);
}

#turnstileWidget:not(:empty) {
  margin-top: 14px;
}

.status-line.info {
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.status-line.warn {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid #EAD9A0;
}

.status-line.good {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #BFDDCB;
}

.status-line.bad {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #F0BCAF;
}

.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-m);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--paper-raised);
  transition: border-color .15s, transform .15s;
}

.dropzone:hover,
.dropzone.drag {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.005);
}

/* ---------- Screenshots (wizard Icon step add-on) ---------- */
.screenshot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.screenshot-thumb {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper-raised);
}

.screenshot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 28, 24, 0.7);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Verify-deploy panel (Generate step, post-download) ---------- */
.verify-deploy-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---------- Team roster rows (Team modal) ---------- */
.roster-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.roster-row .roster-role {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
}

.dropzone input {
  display: none;
}

.dropzone .icon-preview-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.dropzone-title {
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 4px;
}

.dropzone-sub {
  font-size: 12.5px;
  color: var(--ink-faint);
}

.icon-preview {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper-raised);
}

.mask-row {
  display: flex;
  gap: 22px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.mask-item {
  text-align: center;
}

.mask-item .label {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 8px;
}

.mask-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-raised);
}

.mask-circle img {
  width: 132%;
  height: 132%;
  object-fit: cover;
}

.mask-square {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-raised);
}

.mask-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.size-chip {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-radius: var(--radius-s);
  background: var(--paper-raised);
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.choice-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px;
  cursor: pointer;
  background: var(--paper-raised);
}

.choice-card:hover {
  border-color: var(--ink);
}

.choice-card.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.choice-card .ct {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
}

.choice-card .cd {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Marketing "what a build produces" list — deliberately not a 3-up card
   grid. Numbered rows with the number set large and off to the side, like
   an annotated spec sheet rather than three interchangeable feature tiles. */
.spec-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-bottom: 70px;
}

.spec-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.spec-row .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  padding-top: 4px;
}

.spec-row .st {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 6px;
}

.spec-row .sd {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 560px;
}

@media (max-width: 640px) {
  .spec-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.radio-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px;
  cursor: pointer;
  background: var(--paper-raised);
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.radio-card.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.radio-card input {
  margin-top: 3px;
}

.radio-card .rt {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.radio-card .rd {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.radio-card .rcode {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 6px;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.btn-back {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  padding: 10px 4px;
}

.btn-back:hover {
  color: var(--ink);
}

.btn-next {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 13px 24px;
  border-radius: var(--radius-s);
  font-family: var(--display);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
}

.btn-next:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.err-list {
  background: var(--danger-bg);
  border: 1px solid #F0BCAF;
  color: var(--danger);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 18px;
}

.err-list ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

/* ---------- Quality score ---------- */
.score-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px;
  background: var(--paper-raised);
  margin-bottom: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.score-ring {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}

.score-ring svg {
  transform: rotate(-90deg);
}

.score-ring .bg {
  fill: none;
  stroke: var(--line);
  stroke-width: 8;
}

.score-ring .fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset .6s ease;
}

.score-ring .num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
}

.score-checklist {
  flex: 1;
  min-width: 220px;
}

.score-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  padding: 5px 0;
  color: var(--ink-soft);
}

.score-row.pass::before {
  content: "\2713";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.score-row.fail::before {
  content: "\2717";
  color: var(--danger);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Preview device frames ---------- */
.preview-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.preview-tabs button {
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 11px;
  border: 1px solid var(--surface-dark-line);
  background: transparent;
  color: #9AA69E;
  border-radius: 20px;
  cursor: pointer;
}

.preview-tabs button.active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.phone-shell {
  background: var(--surface-dark);
  border-radius: 26px;
  padding: 14px;
  border: 1px solid var(--surface-dark-line);
}

.phone-statusbar {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 10px;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  z-index: 2;
  letter-spacing: 0.02em;
}

.phone-statusbar .ps-icons {
  font-size: 9px;
  letter-spacing: 1px;
}

.phone-screen {
  background: linear-gradient(160deg, var(--paper-raised), var(--paper));
  border-radius: 16px;
  aspect-ratio: 9/17.5;
  padding: 20px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 16px;
  background: var(--surface-dark);
  border-radius: 0 0 10px 10px;
}

.phone-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-top: 34px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  object-fit: cover;
  background: var(--line-soft);
}

.phone-app-name {
  font-size: 10.5px;
  margin-top: 6px;
  color: var(--ink);
  font-family: var(--sans);
  text-align: center;
  max-width: 70px;
}

.phone-splash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.phone-splash img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.phone-splash .sname {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
}

.phone-app-open {
  position: absolute;
  inset: 0;
  flex-direction: column;
}

.app-open-header {
  padding: 30px 14px 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
}

.app-open-body {
  flex: 1;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-line {
  height: 8px;
  border-radius: 4px;
}

.ios-share-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 250, 250, 0.98);
  border-radius: 16px 16px 0 0;
  padding: 8px 14px 14px;
  flex-direction: column;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
}

.share-sheet-handle {
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: #d8d8d8;
  margin: 4px auto 10px;
}

.share-sheet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 6px;
  font-size: 12px;
  color: #111;
  border-radius: 8px;
}

.share-sheet-row.highlight {
  background: #eaf2ff;
  font-weight: 600;
  color: #1a73e8;
}

.share-sheet-row .share-icon {
  font-size: 13px;
  width: 18px;
  text-align: center;
}

.install-banner {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.install-banner img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.install-banner .ib-name {
  font-size: 12px;
  font-weight: 600;
  color: #111;
}

.install-banner .ib-sub {
  font-size: 10.5px;
  color: #666;
}

.install-banner button {
  margin-left: auto;
  background: #1a73e8;
  color: #fff;
  border: none;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
}

.desktop-shell {
  background: var(--surface-dark);
  border-radius: 14px;
  padding: 10px;
  border: 1px solid var(--surface-dark-line);
}

.browser-chrome {
  background: #2b2b2d;
  border-radius: 8px 8px 0 0;
  padding: 9px 12px;
}

.browser-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #55555a;
}

.browser-address-bar {
  background: #3c3c3f;
  border-radius: 20px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.addr-lock {
  font-size: 10px;
  opacity: 0.7;
}

.addr-text {
  flex: 1;
  font-size: 11px;
  font-family: var(--mono);
  color: #ddd;
}

.install-icon-desktop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--accent);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.08);
}

/* Installed state: no tabs, no full URL bar — just a minimal title bar,
   matching how an installed PWA actually opens in its own window. */
.browser-chrome.installed .browser-dots {
  display: none;
}

.browser-chrome.installed .browser-address-bar {
  justify-content: center;
  background: transparent;
}

.browser-chrome.installed .addr-lock,
.browser-chrome.installed .addr-text {
  display: none;
}

.browser-content {
  aspect-ratio: 16/10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mock-topbar {
  padding: 14px 16px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
}

.mock-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.desktop-taskbar {
  background: #1c1c1e;
  border-radius: 0 0 10px 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.desktop-taskbar img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.desktop-taskbar span {
  font-size: 11px;
  color: #eee;
  font-family: var(--sans);
}

.phone-toggle {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.device-toggle {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.device-toggle button {
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 20px;
  cursor: pointer;
}

.device-toggle button.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.phone-toggle button {
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 11px;
  border: 1px solid var(--surface-dark-line);
  background: transparent;
  color: #9AA69E;
  border-radius: 20px;
  cursor: pointer;
}

.phone-toggle button.active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.filecard {
  background: var(--surface-dark);
  border: 1px solid var(--surface-dark-line);
  border-radius: 8px;
  padding: 18px;
  color: var(--paper-text-on-dark);
}

.filecard h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #9AA69E;
  margin: 0 0 12px;
  font-weight: 500;
}

.filecard .frow {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--surface-dark-line);
}

.filecard .frow:last-child {
  border-bottom: none;
}

.filecard .frow .fname {
  color: #DCE4DF;
}

.filecard .frow .fsize {
  color: #6C7A72;
}

.preview-col {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- Generate step ---------- */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 26px;
}

.summary-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 13px 14px;
  background: var(--paper-raised);
}

.summary-item .sl {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.summary-item .sv {
  font-size: 14px;
  font-weight: 600;
}

.feature-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.toggle-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 13px;
  font-size: 12.5px;
  cursor: pointer;
  background: var(--paper-raised);
  color: var(--ink-soft);
}

.toggle-chip input {
  margin: 0;
}

.toggle-chip.on {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent-dim);
}

.generate-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-download {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  padding: 16px 28px;
  border-radius: var(--radius-s);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-download:hover {
  filter: brightness(0.94);
}

.btn-download:disabled {
  opacity: 0.6;
  cursor: wait;
}

.progress-wrap {
  margin-top: 20px;
}

.progress-track {
  height: 6px;
  background: var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width .25s ease;
}

.progress-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.code-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--surface-dark-line);
  border-radius: var(--radius-s) var(--radius-s) 0 0;
  overflow-x: auto;
}

.code-tabs button {
  flex: 0 0 auto;
  padding: 9px 14px;
  background: var(--surface-dark-2);
  border: none;
  color: #8B968F;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  border-right: 1px solid var(--surface-dark-line);
  white-space: nowrap;
}

.code-tabs button.active {
  background: var(--surface-dark);
  color: var(--paper-text-on-dark);
}

.code-box {
  background: var(--surface-dark);
  border: 1px solid var(--surface-dark-line);
  border-top: none;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  padding: 16px;
  max-height: 260px;
  overflow: auto;
}

.code-box pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: #CBE6D6;
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-btn {
  margin-top: 10px;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12.5px;
  padding: 8px 13px;
  border-radius: var(--radius-s);
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.done-banner {
  background: var(--success-bg);
  border: 1px solid #BFDDCB;
  color: var(--success);
  padding: 16px 18px;
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 14px;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
}

.price-card {
  background: var(--paper);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}

.price-card.feat {
  background: var(--surface-dark);
  color: var(--paper-text-on-dark);
}

.price-card .pname {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.price-card.feat .pname {
  color: #9AA69E;
}

.price-card .pcost {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  margin-bottom: 4px;
}

.price-card .pperiod {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.price-card.feat .pperiod {
  color: #9AA69E;
}

.price-card ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  flex: 1;
}

.price-card li {
  font-size: 13.5px;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
}

.price-card.feat li {
  border-top: 1px solid var(--surface-dark-line);
  color: #C7D0C9;
}

.price-card.feat .btn-ghost {
  border-color: var(--paper-text-on-dark);
  color: var(--paper-text-on-dark);
}

.price-card.feat .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pname-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.pname-row .pname {
  margin-bottom: 0;
}

.rec-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 3px 7px;
  border-radius: 2px;
  white-space: nowrap;
}

.price-card li:first-child {
  border-top: none;
}

.price-card button {
  width: 100%;
}

/* ---------- Proof strip (example walkthrough) ---------- */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
}

.proof-panel {
  background: var(--paper);
  padding: 22px 20px;
}

.proof-panel .pf-step {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.proof-panel .pf-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
}

.proof-mock {
  background: var(--surface-dark);
  border-radius: 6px;
  padding: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-text-on-dark);
  min-height: 96px;
}

.proof-mock .addr {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-dark-2);
  border-radius: 4px;
  padding: 6px 9px;
  margin-bottom: 10px;
  color: #9AA69E;
  font-size: 11px;
}

.proof-mock .chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proof-mock .chip {
  background: var(--surface-dark-2);
  border: 1px solid var(--surface-dark-line);
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 11px;
  color: #7FB69C;
}

.proof-mock .icon-mock {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(160deg, #1E6E4C, #133E2C);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EDEFEA;
  font-family: var(--display);
  font-weight: 700;
  margin-bottom: 10px;
}

.proof-mock .home-label {
  font-size: 11px;
  color: #C7D0C9;
}

.proof-caption {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 14px;
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 2px;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--ink-faint);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 68ch;
}

.currency-select-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

.currency-select-row select {
  font-family: var(--mono);
  font-size: 13px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper-raised);
  color: var(--ink);
}

footer {
  max-width: 1180px;
  margin: 80px auto 0;
  padding: 28px 32px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-faint);
  font-family: var(--mono);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ---------- Account bar ---------- */
.account-slot {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-signin {
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 13.5px;
  padding: 9px 15px;
  border-radius: var(--radius-s);
  cursor: pointer;
  font-family: var(--sans);
}

.btn-signin:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.account-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  row-gap: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  max-width: 100%;
}

.account-chip .chip-email {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.account-chip .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
}

.account-chip button {
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.account-chip button:hover {
  color: var(--ink);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 12, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  max-width: 400px;
  width: 100%;
  max-height: 88vh;
  overflow: auto;
}

.modal-box h3 {
  font-family: var(--display);
  font-size: 19px;
  margin: 0 0 8px;
}

.modal-box p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 18px;
}

.modal-box .field {
  margin-bottom: 14px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 13px;
  cursor: pointer;
  margin-top: 6px;
}

.modal-close:hover {
  color: var(--ink);
}

.config-note {
  background: var(--warn-bg);
  border: 1px solid #EAD9A0;
  color: var(--warn);
  font-size: 12.5px;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  margin-bottom: 14px;
  line-height: 1.5;
}

.transfer-box {
  background: var(--surface-dark);
  color: var(--paper-text-on-dark);
  border-radius: var(--radius-s);
  padding: 16px;
  font-family: var(--mono);
  font-size: 13px;
  margin-bottom: 14px;
}

.transfer-box .tr-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--surface-dark-line);
}

.transfer-box .tr-row:last-child {
  border-bottom: none;
}

.transfer-box .tr-label {
  color: #8B968F;
}

/* ---------- Presets ---------- */
.presets-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.presets-select {
  font-family: var(--sans);
  font-size: 13.5px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper-raised);
  flex: 1;
  min-width: 180px;
  color: var(--ink);
}

.btn-save-preset {
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  padding: 9px 14px;
  border-radius: var(--radius-s);
  cursor: pointer;
  white-space: nowrap;
}

.btn-save-preset:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-save-preset:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width:980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 64px;
  }

  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .preview-col {
    position: relative;
    top: 0;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .step-body {
    padding: 22px 18px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width:560px) {
  .nav {
    padding: 14px 18px;
  }

  section {
    padding: 0 18px;
  }

  .stat-row {
    padding: 0 18px 48px;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 52px 18px 48px;
  }

  .steps-nav {
    overflow-x: auto;
  }

  .step-tab {
    min-width: 96px;
  }

  .score-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .by-line {
    display: none;
  }

  .nav-cta {
    font-size: 12px;
    padding: 9px 12px;
  }

  .account-chip .chip-email {
    max-width: 90px;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }
}
