/* Kegel Trainer — site styles */
:root {
  --bg: #f3edf7;
  --surface: #e7deee;
  --text: #2a1c31;
  --accent: #3d1f4a;
  --accent-100: #f6eefa;
  --accent-200: #ebdcf3;
  --accent-300: #c9b8d8;
  --accent-400: #a98fbd;
  --accent-600: #6b4c80;
  --accent-700: #533664;
  --accent-900: #281332;
  --sage-100: #f0fae1;
  --sage-200: #e1eecc;
  --sage-300: #ccdbb2;
  --sage-600: #728157;
  --sage-900: #272e1b;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --divider: rgba(42, 28, 49, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

p,
li {
  text-wrap: pretty;
}

p {
  margin: 0;
}

a {
  color: var(--accent-700);
  text-decoration: none;
}

a:hover {
  color: var(--accent-900);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent-200);
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-600);
}

.pill {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.pill-sage {
  background: var(--sage-200);
  color: var(--sage-900);
}

.pill-plum {
  background: var(--accent-200);
  color: var(--accent-900);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 15px;
  background: var(--accent);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--accent-700);
  color: #fff;
}

.btn:active {
  background: var(--accent-900);
}

.btn-sm {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-200);
  color: var(--accent);
}

.btn-light {
  background: #fff;
  color: var(--accent);
}

.btn-light:hover {
  background: var(--accent-100);
  color: var(--accent-900);
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 237, 247, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(42, 28, 49, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-family: var(--serif);
  font-size: 17px;
}

.mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--accent-300);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 24px;
}

.mark-sm {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 22px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 40px;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.blob-1 {
  top: -140px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: var(--accent-200);
  opacity: 0.75;
}

.blob-2 {
  top: 280px;
  left: -160px;
  width: 340px;
  height: 340px;
  background: var(--sage-200);
  opacity: 0.7;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.04;
}

.lede {
  font-size: 19px;
  color: var(--accent-700);
  max-width: 30ch;
}

.download {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* The supplied artwork is already a complete App Store badge lockup, so it is
   used whole rather than rebuilt around the logo. Apple's official artwork is
   still the correct thing to ship (see README). */
.app-badge {
  display: inline-block;
  line-height: 0;
  transition: opacity .15s ease;
}

.app-badge:hover {
  opacity: .82;
}

.app-badge img {
  width: 150px;
  height: auto;
}

/* The artwork is a fixed black lockup, which all but vanishes on the dark
   footer. A light plate behind it keeps Apple's mark unaltered, which their
   guidelines require, while staying legible. */
.app-badge-light {
  align-self: flex-start;
  border-radius: 10px;
  padding: 7px 11px;
}

.download-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--accent-600);
}

.stats {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.stats>div {
  display: flex;
  flex-direction: column;
}

.stats .n {
  font-family: var(--serif);
  font-size: 26px;
}

.stats .l {
  font-size: 13px;
  color: var(--accent-600);
}

.stat-rule {
  width: 1px;
  background: var(--divider);
}

.shots {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
}

/* Three phones fanned: the contract phase leads, with progress and the rest
   phase flanking it, so the plum-to-sage shift is visible at a glance. */
.shot {
  display: block;
  background: var(--surface);
  /* contain, not cover: these are whole screens and cropping the bottom
     loses the tab bar and the Pause button - the parts that show it is an
     app. Heights below follow the 1170x2532 aspect ratio exactly. */
  object-fit: contain;
}

.shot-side {
  width: 152px;
  height: 329px;
  border-radius: 26px;
  margin-bottom: 44px;
  box-shadow: 0 18px 50px rgba(40, 19, 50, 0.18);
}

.shot-front {
  width: 216px;
  height: 467px;
  border-radius: 36px;
  box-shadow: 0 26px 70px rgba(40, 19, 50, 0.26);
  position: relative;
  z-index: 1;
}

/* Tuck the outer two well behind the centre one: overlapping keeps the whole
   group inside the column, where three phones side by side would overflow. */
.shot-side:first-child {
  margin-right: -38px;
}

.shot-last {
  margin-left: -38px;
}

/* Sections */
.section {
  padding: 80px 0 20px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 44ch;
  margin-bottom: 34px;
}

.section-head.center {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.1;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  border-radius: 28px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 230px;
  background: var(--surface);
}

.feature h3 {
  font-size: 20px;
  line-height: 1.2;
}

.feature p {
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.82;
}

.feature .ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-300);
  color: var(--accent);
}

.feature.plum {
  background: var(--accent);
  color: #fff;
}

.feature.plum .ico {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.feature.sage {
  background: var(--sage-100);
  color: var(--sage-900);
}

.feature.sage .ico {
  background: var(--sage-200);
  color: var(--sage-900);
}

/* How it works */
.panel {
  background: var(--accent);
  color: #fff;
  border-radius: 40px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.panel .kicker {
  color: rgba(255, 255, 255, 0.6);
}

.panel h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
}

.panel p {
  opacity: 0.78;
}

.panel-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.09);
}

.step .n {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: var(--serif);
  font-size: 16px;
}

.step.lav .n {
  background: var(--accent-300);
  color: var(--accent);
}

.step.sage .n {
  background: var(--sage-300);
  color: var(--accent);
}

.step h3 {
  font-size: 17px;
}

.step p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.75;
  margin-top: 3px;
}

/* Pricing */
.billing {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
  margin-top: 8px;
}

.billing input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.billing label {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-700);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

/* The radios drive the toggle through sibling selectors, so they must stay in
   the DOM and stay focusable - display:none would remove them from the tab
   order and break keyboard use. Clipped to a pixel instead. */
input[name="billing"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

#bill-annual:checked~.plans .only-weekly,
#bill-weekly:checked~.plans .only-annual {
  display: none;
}

/* Show which period is selected, and make the focus ring visible on the
   label the user is actually tabbing to. */
#bill-annual:checked~.billing label[for="bill-annual"],
#bill-weekly:checked~.billing label[for="bill-weekly"] {
  background: var(--accent);
  color: #fff;
}

#bill-annual:focus-visible~.billing label[for="bill-annual"],
#bill-weekly:focus-visible~.billing label[for="bill-weekly"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 840px;
  margin: 0 auto;
}

.plan {
  border-radius: 32px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--surface);
}

.plan h3 {
  font-size: 22px;
}

.plan .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
}

.plan .price b {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
}

.plan .price span {
  font-size: 14px;
  color: var(--accent-600);
}

.plan .blurb {
  font-size: 14px;
  line-height: 1.5;
  color: var(--accent-700);
  margin-top: 8px;
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
}

.plan li svg {
  flex: none;
  margin-top: 2px;
}

.plan .btn {
  margin-top: auto;
}

.plan-pro {
  position: relative;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 20px 50px rgba(40, 19, 50, 0.22);
}

.plan-pro .price span,
.plan-pro .blurb {
  color: rgba(255, 255, 255, 0.78);
}

.plan-tag {
  position: absolute;
  top: 22px;
  right: 26px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--sage-300);
  color: var(--sage-900);
  font-size: 12px;
  font-weight: 600;
}

.fineprint {
  max-width: 840px;
  margin: 16px auto 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--accent-600);
  text-align: center;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 48px;
  align-items: start;
}

.faq-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 100px;
}

.faq-intro h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
}

.faq-intro p {
  font-size: 15px;
  color: var(--accent-700);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-list details {
  background: var(--accent-100);
  border-radius: 24px;
  overflow: hidden;
  transition: background 0.2s;
}

.faq-list details[open] {
  background: var(--surface);
}

.faq-list summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-200) center / 15px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d1f4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  transition: transform 0.25s, background-color 0.2s;
}

.faq-list details[open] summary::after {
  transform: rotate(180deg);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.faq-list summary span {
  flex: 1;
}

.faq-list p {
  padding: 0 70px 22px 24px;
  font-size: 15px;
  color: var(--accent-700);
}

/* Callout */
.callout {
  background: var(--sage-100);
  color: var(--sage-900);
  border-radius: 36px;
  padding: 44px 48px;
  display: flex;
  gap: 26px;
  align-items: flex-start;
}

.callout .ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sage-200);
}

.callout-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.callout h3 {
  font-size: 22px;
}

.callout p {
  font-size: 15px;
  max-width: 62ch;
}

.callout .muted {
  font-size: 14px;
  color: var(--sage-600);
}

/* Article pages */
.article-head {
  padding: 64px 0 20px;
}

.article-head .inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 52ch;
}

.article-head h1 {
  font-size: clamp(38px, 4.6vw, 52px);
  line-height: 1.06;
}

.article-head .lede {
  font-size: 18px;
  max-width: none;
}

.meta {
  display: flex;
  gap: 20px;
  font-size: 13.5px;
  color: var(--accent-600);
  flex-wrap: wrap;
}

.article-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 56px;
  align-items: start;
  padding: 36px 0 90px;
}

.toc {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 22px;
  border-radius: 26px;
  background: var(--surface);
}

.toc .kicker {
  padding: 0 8px 10px;
}

.toc a {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.35;
}

.toc a:hover {
  background: var(--accent-200);
  color: var(--accent-900);
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 34px;
  max-width: 70ch;
}

.prose section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-margin-top: 100px;
}

.prose h2 {
  font-size: 27px;
}

.prose p {
  font-size: 16px;
  line-height: 1.7;
}

.note {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  border-radius: 26px;
  background: var(--surface);
  font-size: 15.5px;
  line-height: 1.6;
}

.prose .plum {
  background: var(--accent);
  color: #fff;
  border-radius: 30px;
  padding: 32px 34px;
  gap: 14px;
}

.prose .plum h2 {
  font-size: 24px;
}

.prose .sage {
  background: var(--sage-100);
  color: var(--sage-900);
  border-radius: 30px;
  padding: 32px 34px;
  gap: 14px;
}

.prose .sage h2 {
  font-size: 22px;
}

.prose .sage a {
  color: var(--sage-900);
  text-decoration: underline;
}

.prose .sage .muted {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--sage-600);
}

.glance {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 15px;
  line-height: 1.5;
}

.glance div {
  display: flex;
  gap: 12px;
}

.glance span {
  opacity: 0.55;
}

.card-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 26px 30px;
  border-radius: 28px;
  background: var(--sage-100);
  color: var(--sage-900);
}

.card-row .ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage-200);
}

.card-row p {
  font-size: 15px;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  background: var(--accent-900);
  color: #fff;
}

.site-footer a {
  color: #fff;
  opacity: 0.8;
}

.site-footer a:hover {
  color: #fff;
  opacity: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 30px;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.65;
  max-width: 34ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.footer-col .kicker {
  color: rgba(255, 255, 255, 0.5);
}

.footer-col span {
  opacity: 0.55;
  line-height: 1.5;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  opacity: 0.55;
}

.footer-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 44px 0;
}

.footer-simple nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.footer-simple .brand {
  color: #fff;
}

.footer-simple .copy {
  font-size: 13px;
  opacity: 0.55;
}

/* Responsive */
@media (max-width: 900px) {

  .hero .wrap,
  .panel,
  .faq-grid,
  .article-layout,
  .features,
  .plans,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .section {
    padding-top: 56px;
  }

  .panel {
    padding: 36px 28px;
    border-radius: 32px;
  }

  .callout {
    padding: 32px 28px;
    flex-direction: column;
  }

  .faq-intro,
  .toc {
    position: static;
  }

  .toc {
    order: 2;
  }

  .prose {
    order: 1;
  }

  .shots {
    transform: scale(0.85);
    transform-origin: top center;
  }

  .footer-grid {
    gap: 30px;
  }
}

@media (max-width: 620px) {
  .site-nav a:not(.btn) {
    display: none;
  }

  /* Three phones will not fit a phone. Keep the one that shows the app
     working and drop the flanking two rather than shrinking all three. */
  .shots {
    transform: none;
  }

  .shot-side {
    display: none;
  }

  .shot-front {
    width: 232px;
    height: 472px;
  }

  .features,
  .plans {
    gap: 12px;
  }

  .faq-list p {
    padding-right: 24px;
  }

  .prose {
    max-width: none;
  }
}

@media print {

  .site-header,
  .toc,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
  }
}