/* Verbatim base from swimsum.com hosting index (+ calculator appendix) */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.32) 0%, transparent 44%),
    radial-gradient(circle at 88% 10%, rgba(59, 130, 246, 0.26) 0%, transparent 46%),
    repeating-linear-gradient(180deg, rgba(56, 189, 248, 0.045) 0px, rgba(56, 189, 248, 0.045) 1px, transparent 1px, transparent 9px),
    linear-gradient(180deg, #dff7ff 0%, #ffffff 48%);
  min-height: 100vh;
  overflow-x: hidden;
}

.wrap {
  max-width: min(1024px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.intro-css-line {
  margin: 0 0 16px 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(13, 71, 161, 0.1);
  border-radius: 10px;
  font-size: 0.98rem;
  color: #334;
  line-height: 1.55;
  box-shadow: 0 6px 20px rgba(13, 71, 161, 0.06);
}

.header-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto;
  align-items: center;
  column-gap: 18px;
  margin: 0 0 24px 0;
}

.brand-word {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
}

.brand-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  grid-column: 1;
  grid-row: 1;
  margin-left: -4px;
}

.brand-logo {
  width: 56px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  line-height: 1;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  color: #0d47a1;
  margin: 0;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 0.78rem;
  color: #4a5568;
  margin: 0;
  font-weight: 700;
  text-align: left;
  margin-top: 1px;
  letter-spacing: 0.06em;
  font-variant-caps: small-caps;
  line-height: 1;
  transform: scaleY(1.06);
  transform-origin: left center;
  white-space: nowrap;
}

.top-cta {
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  padding-top: 0;
}

.store-badge-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.store-badge {
  display: block;
  height: 46px;
  width: auto;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  margin-left: 12px;
}

.lead-copy {
  margin: 6px 0 22px 0;
  margin-left: 12px;
}

.steps li {
  padding: 12px 0 12px 36px;
  position: relative;
  border-bottom: 1px solid #eee;
}

.steps li:before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  width: 24px;
  height: 24px;
  background: #1e3a8a;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.screenshots--promo {
  margin: 16px 0 0;
  gap: 12px;
}

.swimsum-showcase h2 {
  margin-top: 0;
}

.swimsum-showcase a {
  color: #1e3a8a;
  font-weight: 700;
}

.screenshot {
  aspect-ratio: 59/128;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(13, 71, 161, 0.14);
}

.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

.cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 24px 0;
  padding: 14px 28px;
  background: #1e3a8a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.cta:hover {
  background: #0d47a1;
}

.links {
  margin: 24px 0;
}

.links a {
  color: #1e3a8a;
  text-decoration: none;
  margin-right: 16px;
  font-size: 0.95rem;
}

.links a:hover {
  text-decoration: underline;
}

.premium-coming {
  margin: 8px 0 32px 0;
  padding: 18px 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(13, 71, 161, 0.12);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(13, 71, 161, 0.08);
}

.premium-coming h2 {
  margin: 0 0 10px 0;
  color: #0d47a1;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.premium-coming h3 {
  margin: 18px 0 10px 0;
  color: #0d47a1;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.premium-coming p {
  margin: 0 0 10px 0;
  color: #335;
  font-size: 0.98rem;
}

.premium-coming ul {
  margin: 0;
  padding-left: 18px;
  color: #334;
}

.premium-coming li {
  margin: 8px 0;
}

footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
  color: #666;
}

@media (max-width: 900px) {
  .screenshots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-row {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .top-cta {
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
  }

  .store-badge {
    height: 42px;
    width: auto;
  }
}

/* ---------- CSSswimtest.com calculator (keep base classes untouched above) ---------- */

button.cta {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.calc-roadmap-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.calc-field {
  margin-bottom: 14px;
}

.calc-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #4a5568;
  margin-bottom: 6px;
}

.calc-field input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0d47a1;
  border: 1px solid #dde3ee;
  border-radius: 8px;
  background: #fff;
}

.calc-field input[type="text"]:focus {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.2);
}

.fine-tune {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #335;
}

.fine-tune summary {
  cursor: pointer;
  color: #1e3a8a;
  font-weight: 600;
}

.optional-refine {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #335;
}

.optional-refine summary {
  cursor: pointer;
  color: #1e3a8a;
  font-weight: 600;
}

.fine-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-nudge {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e3a8a;
  background: #f5f7ff;
  border: 1px solid #d5def0;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.btn-nudge:hover {
  background: #e8edfc;
}

.form-error {
  min-height: 1.2rem;
  margin: 8px 0 0;
  color: #b42318;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.results-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.result-hero {
  text-align: center;
  padding: 14px;
  margin-bottom: 12px;
  background: rgba(223, 247, 255, 0.5);
  border-radius: 10px;
  border: 1px solid rgba(13, 71, 161, 0.08);
}

.result-hero .lbl {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
}

.result-hero .big {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: #0d47a1;
  margin: 6px 0;
  font-variant-numeric: tabular-nums;
}

.result-hero .sub {
  font-size: 0.88rem;
  color: #666;
}

.result-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.result-mini {
  padding: 10px;
  background: #fafbff;
  border-radius: 8px;
  border: 1px solid #eee;
}

.result-mini .lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
}

.result-mini .val {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0d47a1;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.result-mini .val--band {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: normal;
}

.result-profile {
  padding: 12px;
  background: #fafbff;
  border-radius: 8px;
  border: 1px solid #eee;
  margin-bottom: 12px;
}

.result-profile .badge {
  font-size: 1rem;
  font-weight: 800;
  color: #1e3a8a;
}

.result-profile .txt {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: #335;
}

.compare-label {
  margin: 14px 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
}

.bar-line {
  display: grid;
  grid-template-columns: 38px 1fr 46px;
  gap: 8px;
  align-items: center;
  margin-bottom: 5px;
}

.bar-line-you .bar-n {
  color: #0d47a1;
  font-weight: 800;
}

.bar-n {
  font-size: 0.76rem;
  color: #666;
  font-weight: 600;
}

.bar-t {
  height: 9px;
  border-radius: 99px;
  background: #e8eaf0;
  overflow: hidden;
}

.bar-f {
  height: 100%;
  border-radius: inherit;
}

.bar-f-pro {
  width: 100%;
  background: linear-gradient(90deg, #9aaed0, #c0cce0);
}

.bar-f-you {
  width: 28%;
  min-height: 100%;
  background: linear-gradient(90deg, #38bdf8, #0d47a1);
}

.bar-f-club {
  width: 72%;
  background: linear-gradient(90deg, #a8b9d4, #cfd9ea);
}

.bar-f-base {
  width: 45%;
  background: linear-gradient(90deg, #bcc9de, #dee5ee);
}

.bar-p {
  font-size: 0.76rem;
  font-weight: 700;
  color: #666;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bar-line-you .bar-p {
  color: #0d47a1;
}

.band-end {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
}

.band-end .lbl {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
  display: block;
  margin-bottom: 4px;
}

.band-end .bp {
  margin: 0;
  font-size: 0.9rem;
  color: #335;
}

/* Calculator hub swap + tone (positive colour accents) */
.calc-hub {
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.calc-hub.tone-olympic {
  border-color: rgba(202, 138, 4, 0.35);
  box-shadow: 0 14px 36px rgba(202, 138, 4, 0.18);
}
.calc-hub.tone-elite {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.16);
}
.calc-hub.tone-strong {
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: 0 14px 36px rgba(5, 150, 105, 0.15);
}
.calc-hub.tone-solid {
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 14px 36px rgba(124, 58, 237, 0.12);
}
.calc-hub.tone-build {
  border-color: rgba(234, 88, 12, 0.3);
  box-shadow: 0 14px 36px rgba(234, 88, 12, 0.12);
}

.results-inner {
  padding: 4px 2px 0;
}

.results-heading {
  margin: 0 0 14px 0;
  color: #0d47a1;
  font-size: 1.15rem;
}

.result-hero--pop {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(224, 242, 254, 0.85) 100%);
  box-shadow: 0 8px 28px rgba(13, 71, 161, 0.1);
}

.tier-callout {
  margin: 12px 0 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
}

.tier-title {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0d47a1;
  line-height: 1.35;
}

.tier-detail {
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
}

.cta--secondary {
  margin-top: 8px;
  background: #fff !important;
  color: #1e3a8a !important;
  border: 2px solid #1e3a8a !important;
}

.cta--secondary:hover {
  background: #f1f5f9 !important;
}

.skyline-section {
  margin: 18px 0 8px;
}

.skyline-label {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  line-height: 1.4;
}

.skyline-foot {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
}

.skyline-board {
  display: flex;
  gap: 10px;
  align-items: stretch;
  min-height: 240px;
  padding: 12px 10px 14px;
  background: linear-gradient(180deg, #dbeafe 0%, #e0f2fe 35%, #f0f9ff 100%);
  border-radius: 14px;
  border: 1px solid rgba(13, 71, 161, 0.15);
  overflow-x: auto;
  perspective: 900px;
}

.skyline-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  width: 52px;
  padding: 8px 4px 28px 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  text-align: right;
  line-height: 1.25;
  border-right: 1px dashed rgba(100, 116, 139, 0.35);
}

.skyline {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  min-width: 320px;
  padding: 8px 4px 0;
  transform: rotateX(8deg);
  transform-style: preserve-3d;
  transform-origin: center bottom;
}

.sky-tower {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  max-width: 120px;
}

.sky-block {
  width: 100%;
  max-width: 72px;
  min-height: 28px;
  border-radius: 10px 10px 4px 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 10px 0 rgba(15, 23, 42, 0.07),
    0 16px 28px rgba(15, 23, 42, 0.12);
  transition: height 0.6s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.sky-block--you {
  max-width: 78px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 0 0 3px #22c55e,
    0 12px 0 rgba(21, 128, 61, 0.12),
    0 22px 40px rgba(34, 197, 94, 0.35);
  animation: tower-pulse 2.2s ease-in-out infinite;
}

@keyframes tower-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

.sky-tower--you .sky-cap,
.sky-tower--you .sky-pace {
  color: #15803d;
  font-weight: 800;
}

.sky-cap {
  margin-top: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  color: #334155;
  line-height: 1.2;
  max-width: 5.2rem;
}

.sky-cap--you {
  font-size: 0.68rem;
  color: #166534;
}

.sky-pace {
  margin-top: 2px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .skyline {
    min-width: 460px;
  }
}
