/* ==========================================================================
   Workout Writer – main styles (design v2)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables & base
   -------------------------------------------------------------------------- */
:root {
  --color-aqua: #00D7B6;
  --color-aqua-dark: #03a990;
  --color-aqua-mint: #4BE3D2;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-navy: #061525;
  --color-navy-mid: #0A1524;
  --color-navy-deep: #08101D;
  --color-text-dark: #0A1A2B;
  --color-text-muted: #35506B;
  --color-text-nav: #425A72;
  --color-text-gray: #5b5b5b;
  --color-text-body: #6c6c6c;
  --color-text-light: #c7c7c7;
  --color-step-bg: #10243A;
  --color-step-border: #274364;
  --color-panel: #F2F8FE;
  --color-panel-border: #CFE2F4;
  --color-text-blue: #0066cc;
  --color-text-red: #cc0000;
  --color-text-orange: #ff6600;
  --color-text-aqua: #00D7B6;
  --font-sans: "SF Pro Display", "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  --font-tagline: "American Typewriter", "Courier New", monospace;
  --container-max-width: 1120px;
  --pad-desk: 72px;
  --pad-mobile: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(3, 177, 151, 0.55);
  outline-offset: 3px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--color-white);
  color: var(--color-text-dark);
  overflow-x: hidden;
  width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  background: var(--color-white);
  padding: 40px var(--pad-desk) 76px;
}

.hero-capsule {
  display: flex;
  flex-direction: column;
  gap: 52px;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(24px) saturate(135%) brightness(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(135%) brightness(1.08);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 10;
}

.hero-nav {
  position: relative;
  z-index: 10;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 56px;
  gap: 24px;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-navy);
}

.hero-logo-icon {
  width: 70px;
  height: 84px;
  object-fit: contain;
  content: url("../images/logo-light.png");
}

.hero-logo-text {
  font-family: var(--font-sans);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
}

.hero-logo-inline-space {
  display: none;
}

.hero-nav-center {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-nav-links a {
  color: #007f6c;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.hero-nav-links a:hover {
  color: #006757;
}

.hero-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
  border: 2px solid var(--color-navy);
  flex-shrink: 0;
}

.hero-nav-cta:hover {
  opacity: 0.9;
}

.hero-nav-cta.hero-nav-app-badge {
  margin-left: auto;
  padding: 0;
  height: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  position: relative;
}

.hero-nav-cta.hero-nav-app-badge img {
  display: block;
  width: 152px;
  height: 51px;
  object-fit: contain;
}

.hero-main {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
}

.hero-left {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 10;
}

.hero-badge {
  font-family: var(--font-tagline);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-black);
  margin: 0;
  line-height: 1.2;
}

.hero-badge-mobile {
  display: none;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: 80px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--color-navy);
  margin: 0;
}

.hero-title-static {
  display: none;
}

.hero-title-animated {
  display: block;
}

/* Animated hero word swap: typewriter correction (running ↔ cycling) + aqua cursor */
.hero-title-swap {
  display: inline;
}



.hero-title-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 2px;
  vertical-align: -0.05em;
  background: var(--color-aqua);
  animation: hero-cursor-blink 1s step-end infinite;
}

@keyframes hero-cursor-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title-static {
    display: block;
  }

  .hero-title-animated {
    display: none;
  }
}

@media (min-width: 1181px) {
  .hero-logo {
    gap: 8px;
    margin-left: -10px;
  }

  .hero-logo-icon {
    width: 136px;
    height: 164px;
  }

  .hero-title {
    letter-spacing: 0.01em;
    line-height: 1.06;
  }
}

.hero-sub {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.38;
  color: #4b4b4b;
  margin: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 24px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
  min-width: 190px;
}

.btn-secondary {
  background: var(--color-aqua-mint);
  color: var(--color-navy);
  font-weight: 700;
  min-width: 210px;
}

.hero-right {
  grid-column: 3 / 5;
  padding-left: 20px;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
  z-index: 0;
  --hero-cycle: 80s;
  --hero-count: 8;
}

.hero-media-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: hero-image-crossfade var(--hero-cycle) linear infinite;
  animation-delay: calc((var(--i, 1) - 1) * (var(--hero-cycle) / var(--hero-count)));
  animation-fill-mode: both;
  z-index: var(--i, 1);
}

@keyframes hero-image-crossfade {
  0% {
    opacity: 0;
  }

  1% {
    opacity: 1;
  }

  11.5% {
    opacity: 1;
  }

  13.25% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

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

  .hero-media-image:first-child {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Quote
   -------------------------------------------------------------------------- */
.quote {
  width: 100%;
  background: linear-gradient(0deg, #03b197 0%, #00d7b6 34%);
}

.quote-text {
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.027em;
  line-height: 1;
  color: var(--color-text-dark);
  margin: 0;
  max-width: 980px;
}

.quote-author {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0;
}

/* Quote carousel: staggered quote + author animation */
.quote-carousel {
  padding: 48px var(--pad-desk) 52px;
}

.quote-carousel-track {
  position: relative;
  min-height: 140px;
  overflow: hidden;
}

.quote-slide {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1;
  transition: transform 0.82s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.82s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.quote-slide--active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.quote-slide-text {
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.027em;
  line-height: 1;
  color: var(--color-text-dark);
  margin: 0;
  max-width: 980px;
  transition: opacity 0.54s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.54s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.quote-slide-author {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0;
  transition: opacity 0.86s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.86s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.quote-slide--pre-enter {
  opacity: 1;
  transform: translateX(100%);
}

.quote-slide--exiting {
  opacity: 0;
  transform: translateX(-100%);
  z-index: 2;
}

.quote-slide--exiting .quote-slide-text {
  opacity: 0;
  transform: translateX(-18%);
  transition-delay: 0s;
}

.quote-slide--exiting .quote-slide-author {
  opacity: 0;
  transform: translateX(-30%);
  transition-delay: 0.12s;
}

.quote-slide--pre-enter .quote-slide-text {
  opacity: 0;
  transform: translateX(30%);
}

.quote-slide--pre-enter .quote-slide-author {
  opacity: 0;
  transform: translateX(46%);
}

.quote-slide--entering .quote-slide-text {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.02s;
}

.quote-slide--entering .quote-slide-author {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.16s;
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.how-section {
  width: 100%;
  background: var(--color-navy-mid);
  padding: 62px var(--pad-desk) 72px;
}

.how-section .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.how-title {
  font-family: var(--font-sans);
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin: 0;
}

.how-sub {
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text-light);
  margin: 0;
}

.how-steps {
  --how-step-title-height: calc(1.12em * 4);
  --how-step-visual-height: 240px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.how-step {
  --how-step-pad: 18px;
  background: var(--color-step-bg);
  border: 2px solid var(--color-step-border);
  border-radius: 20px;
  padding: var(--how-step-pad) var(--how-step-pad) 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
}

.how-step-header {
  display: grid;
  grid-template-rows: 34px var(--how-step-title-height);
  gap: 12px;
  align-content: start;
}

.how-step-num {
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 800;
  color: #04d6b6;
  line-height: 1;
  min-height: 34px;
}

.how-step-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.12;
  color: var(--color-white);
  margin: 0;
  height: var(--how-step-title-height);
  min-height: 0;
}

.how-step-visual {
  width: calc(100% + (var(--how-step-pad) * 2));
  height: var(--how-step-visual-height);
  margin-left: calc(var(--how-step-pad) * -1);
  margin-right: calc(var(--how-step-pad) * -1);
}

.how-step-visual--placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(4, 214, 182, 0.04);
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 1s ease;
  overflow: hidden;
}

.how-step-visual--placeholder.is-visible {
  opacity: 1;
}

.how-step-visual--placeholder.has-image {
  border-style: solid;
  border-color: rgba(39, 67, 100, 0.7);
  background: #efefef;
}

.how-step-placeholder-label {
  position: relative;
  z-index: 1;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.how-step-preview-image,
.how-step-activity-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.how-step-preview-image {
  object-fit: contain;
  object-position: center top;
}

.how-step-activity-image {
  object-fit: cover;
  object-position: center;
}

.how-step-send-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 28px;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
}

.how-step-visual--placeholder:not(.has-image) .how-step-send-overlay {
  display: none;
}

.how-step-visual--placeholder.has-image .how-step-placeholder-label {
  display: none;
}

/* --------------------------------------------------------------------------
   Feature section
   -------------------------------------------------------------------------- */
.feature-section {
  width: 100%;
  background: var(--color-white);
  padding: 70px var(--pad-desk);
}

.feature-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.feature-left {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Auto-type module – same width as photo below, single outer border + shadow, text and recycle inside */
.feature-typing-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}

.feature-typing-box {
  position: relative;
  width: 100%;
  height: 280px;
  min-height: 280px;
  padding: 20px;
  padding-bottom: 48px;
  margin: 0;
  background: var(--color-panel);
  border: 2px solid #6d6d6d;
  border-radius: 22px;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.feature-typing-box--square {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 20px;
}

.feature-typing-inner {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  font-size: 26px;
  line-height: 1.5;
  font-family: var(--font-tagline);
  color: var(--color-text-dark);
  text-align: left;
  white-space: pre-wrap;
  overflow: auto;
  box-sizing: border-box;
  border: none;
  background: transparent;
}

.how-step .feature-typing-inner {
  font-size: 24px;
  line-height: 1.42;
}

.how-step .feature-typing-wrapper {
  height: 100%;
}

.how-step .feature-typing-box {
  padding-bottom: 32px;
}

.feature-typing-inner .blue-word {
  color: var(--color-text-blue);
}

.feature-typing-inner .red-word {
  color: var(--color-text-red);
}

.feature-typing-inner .aqua-word {
  color: var(--color-text-aqua);
}

.feature-typing-inner .orange-word {
  color: var(--color-text-orange);
}

.feature-typing-inner .comment-hash {
  color: var(--color-text-aqua);
}

.feature-typing-inner .comment-text {
  color: #999;
}

.feature-typing-box .recycle-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  left: auto;
  transform: none;
  width: 24px;
  height: 24px;
  color: var(--color-text-dark);
  opacity: 0.5;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
}

.feature-typing-box .recycle-icon:hover {
  opacity: 1;
}

.feature-eyebrow {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-aqua-dark);
  margin: 0;
}

.feature-title {
  font-family: var(--font-sans);
  font-size: 62px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--color-text-dark);
  margin: 0;
}

.feature-body {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text-body);
  margin: 0;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-dark);
}

.feature-list li {
  margin-bottom: 4px;
}

.feature-list li::before {
  content: "+ ";
}

.feature-right {
  flex: 0 0 460px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-product-shot {
  height: 280px;
  border-radius: 22px;
  background: var(--color-panel);
  border: 2px solid var(--color-panel-border);
}

.feature-lifestyle {
  height: 264px;
  border-radius: 22px;
  background: var(--color-panel);
  border: 2px solid var(--color-panel-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  background-image: url("https://images.unsplash.com/photo-1758506971986-b0d0edebd8d5?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=1080");
  background-size: cover;
  background-position: center;
}

/* --------------------------------------------------------------------------
   Trust metrics
   -------------------------------------------------------------------------- */
.trust-section {
  width: 100%;
  background: #05d6b6;
  padding: 48px var(--pad-desk);
}

.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 114px;
  text-align: center;
}

.trust-card-title {
  font-family: var(--font-sans);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-text-dark);
  white-space: nowrap;
}

.trust-card-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-section {
  width: 100%;
  background: var(--color-white);
  padding: 56px var(--pad-desk) 64px;
}

.faq-title {
  font-family: var(--font-sans);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-text-dark);
  margin: 0 0 24px;
}

.faq-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

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

.faq-item {
  background: linear-gradient(180deg, rgba(0, 215, 182, 0.12) 0%, rgba(3, 177, 151, 0.08) 100%);
  border: 2px solid rgba(3, 177, 151, 0.42);
  border-radius: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
}

.faq-question span:first-child {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: var(--color-text-dark);
  font-weight: 800;
}

.faq-question:focus-visible {
  outline: 3px solid rgba(3, 177, 151, 0.5);
  outline-offset: -3px;
}

.faq-toggle {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(3, 177, 151, 0.58);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #048f7c;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.faq-toggle::before {
  width: 14px;
  height: 3px;
}

.faq-toggle::after {
  width: 3px;
  height: 14px;
}

.faq-item.is-open .faq-toggle {
  background: rgba(3, 177, 151, 0.14);
}

.faq-item.is-open .faq-toggle::after {
  opacity: 0;
}

.faq-answer {
  padding: 0 16px 14px;
}

.faq-answer p {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: var(--color-text-body);
}

.faq-answer a {
  color: #047f70;
  font-weight: 700;
}

.faq-answer a:hover {
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.cta-section {
  width: 100%;
  background: var(--color-navy-deep);
  padding: 74px var(--pad-desk) 78px;
}

.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.cta-title {
  font-family: var(--font-sans);
  font-size: 62px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin: 0;
  text-align: center;
  max-width: 820px;
}

.cta-sub {
  font-size: 28px;
  font-weight: 500;
  color: var(--color-text-light);
  margin: 0;
  text-align: center;
}

.cta-badge-link {
  display: inline-block;
  position: relative;
  margin-top: 8px;
}

.cta-badge-img {
  width: 245px;
  height: 82px;
  object-fit: contain;
  display: block;
}

.app-store-badge-link {
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.app-store-badge-link:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  background: var(--color-navy-deep);
  padding: 0 var(--pad-desk);
}

.footer-container {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
}

.footer-copy a {
  color: inherit;
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Typing box (shared)
   -------------------------------------------------------------------------- */
.typing-container-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.typing-box {
  max-width: 500px;
  padding: 20px;
  background-color: var(--color-white);
  border: 2px solid var(--color-black);
  border-radius: 20px;
  text-align: left;
  white-space: pre-wrap;
  position: relative;
  min-height: 120px;
  margin: 0 auto;
  font-size: 24px;
  line-height: 1.5;
  font-family: var(--font-tagline);
}

.typing-box .blue-word {
  color: var(--color-text-blue);
}

.typing-box .red-word {
  color: var(--color-text-red);
}

.typing-box .orange-word {
  color: var(--color-text-orange);
}

.typing-box .aqua-word {
  color: var(--color-text-aqua);
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 24px;
  background-color: var(--color-black);
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

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

.recycle-icon {
  position: absolute;
  bottom: 20px;
  right: 50%;
  transform: translateX(calc(-250px + 50%));
  width: 24px;
  height: 24px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  z-index: 10;
}

.recycle-icon:hover {
  opacity: 1;
}

.comment-hash {
  color: var(--color-text-aqua);
}

.comment-text {
  color: #999;
}

/* --------------------------------------------------------------------------
   Mobile / narrow (match .pen mobile ~390px)
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .hero-nav {
    gap: 16px;
  }

  .hero-logo {
    gap: 10px;
    margin-left: -8px;
  }

  .hero-logo-icon {
    width: 88px;
    height: 106px;
  }

  .hero-logo-text {
    font-size: clamp(38px, 5.2vw, 52px);
    white-space: nowrap;
  }

  .hero-logo-text br {
    display: none;
  }

  .hero-logo-inline-space {
    display: inline;
  }

  .hero-nav-center {
    display: none;
  }

  .hero-badge-mobile {
    display: block;
    max-width: none;
    white-space: nowrap;
    font-size: 24px;
  }

  .feature-container {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .feature-right {
    flex: none;
    width: min(100%, 640px);
    max-width: 100%;
    align-self: center;
  }

  .footer-container {
    height: auto;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 24px 0 28px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 1400px) {
  .how-steps {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .how-step .feature-typing-inner {
    font-size: 28px;
    line-height: 1.4;
  }

  .trust-cards {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .hero-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    padding: 0;
  }

  .hero-left {
    padding-right: 0;
    max-width: 100%;
  }

  .hero-right {
    padding-left: 0;
    width: 100%;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin-left: 0;
    margin-right: 0;
    min-height: auto;
    border-radius: 0;
  }

  .hero-media-image {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .feature-right {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-capsule {
    padding: 24px;
    border-radius: 32px;
    gap: 32px;
  }

  .hero {
    padding: 24px var(--pad-mobile) 40px;
  }

  .hero-nav {
    padding: 0;
    flex-wrap: wrap;
    height: auto;
    justify-content: center;
    gap: 12px;
  }

  .hero-nav-center {
    order: 3;
    width: 100%;
  }

  .hero-nav-links {
    display: none;
  }

  .hero-nav-cta {
    display: none;
  }

  .hero-logo-icon {
    width: 72px;
    height: 88px;
  }

  .hero-logo-text {
    font-size: clamp(40px, 9vw, 48px);
    white-space: nowrap;
  }

  .hero-logo-text br {
    display: none;
  }

  .hero-logo-inline-space {
    display: inline;
  }

  .hero-badge {
    font-size: 20px;
  }

  .hero-badge-mobile {
    max-width: none;
    white-space: nowrap;
    font-size: 18px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-sub {
    font-size: 18px;
  }

  .hero-main {
    gap: 18px;
    padding: 0;
  }

  .hero-left {
    gap: 18px;
  }

  .hero-cta-row {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 210px;
  }

  .hero-right {
    display: block;
    width: 100%;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin-left: 0;
    margin-right: 0;
    min-height: auto;
    border-radius: 0;
  }

  .quote-carousel {
    padding: 28px var(--pad-mobile) 30px;
  }

  .quote-carousel-track {
    min-height: 100px;
  }

  .quote-slide-text {
    font-size: 28px;
    line-height: 1.05;
  }

  .quote-slide-author {
    font-size: 16px;
  }

  .how-section {
    padding: 36px var(--pad-mobile) 44px;
    gap: 20px;
  }

  .how-title {
    font-size: 40px;
    letter-spacing: -0.028em;
  }

  .how-sub {
    font-size: 18px;
  }

  .how-steps {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 14px;
  }

  .how-step {
    --how-step-pad: 16px;
    min-height: auto;
    gap: 10px;
  }

  .how-step-header {
    gap: 10px;
    grid-template-rows: 34px var(--how-step-title-height);
  }

  .how-step-title {
    font-size: 22px;
    line-height: 1.14;
    height: var(--how-step-title-height);
  }

  .how-step .feature-typing-inner {
    font-size: 22px;
    line-height: 1.38;
  }

  .how-step-placeholder-label {
    font-size: 12px;
    padding: 10px 14px;
  }

  .feature-section {
    padding: 36px var(--pad-mobile);
    gap: 20px;
  }

  .feature-eyebrow {
    font-size: 15px;
  }

  .feature-title {
    font-size: 38px;
    letter-spacing: -0.028em;
  }

  .feature-body {
    font-size: 18px;
    line-height: 1.3;
  }

  .feature-list {
    font-size: 16px;
  }

  .feature-product-shot {
    height: 240px;
  }

  .feature-lifestyle {
    height: 220px;
  }

  .trust-section {
    padding: 24px var(--pad-mobile);
  }

  .trust-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .trust-card-title {
    font-size: 28px;
  }

  .faq-section {
    padding: 32px var(--pad-mobile) 40px;
  }

  .faq-title {
    font-size: 32px;
    margin-bottom: 16px;
  }

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

  .faq-question {
    padding: 12px 14px;
  }

  .faq-question span:first-child {
    font-size: 18px;
  }

  .faq-toggle {
    width: 28px;
    height: 28px;
  }

  .faq-answer {
    padding: 0 14px 12px;
  }

  .faq-answer p {
    font-size: 16px;
  }

  .cta-section {
    padding: 44px var(--pad-mobile) 48px;
    gap: 16px;
  }

  .cta-title {
    font-size: 42px;
  }

  .cta-sub {
    font-size: 18px;
  }

  .cta-badge-img {
    width: 200px;
    height: auto;
  }

  .site-footer {
    height: auto;
    padding: 20px var(--pad-mobile) 24px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .footer-copy {
    font-size: 13px;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-links a {
    font-size: 13px;
  }

  .recycle-icon {
    right: 24px;
    transform: none;
  }

  .feature-typing-box {
    height: 260px;
    min-height: 260px;
  }

  .feature-typing-box--square {
    height: 100%;
    min-height: 0;
  }

  .feature-typing-inner {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 40px;
  }

  .cta-title {
    font-size: 36px;
  }
}

/* --------------------------------------------------------------------------
   Dark mode (prefers-color-scheme: dark)
   Coloured sections (aqua gradient, navy, trust green, etc.) unchanged.
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #0d1117;
    color: #e6edf3;
  }

  .hero {
    background: #000000;
  }

  .hero-media {
    background: #000000;
  }

  /* Quote carousel: keep gradient (coloured) – no override */

  /* Feature section: light panel → dark */
  .feature-section {
    background: #0d1117;
  }

  .feature-eyebrow {
    color: #4be3d2;
  }

  .feature-title,
  .feature-body,
  .feature-list {
    color: #e6edf3;
  }

  .feature-body {
    color: #8b949e;
  }

  .feature-typing-box {
    background: #161b22;
    border-color: #30363d;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  }

  .feature-typing-inner {
    color: #e6edf3;
  }

  .feature-typing-inner .comment-text {
    color: #6e7681;
  }

  .feature-typing-box .recycle-icon {
    color: #e6edf3;
  }

  .feature-product-shot {
    background: #161b22;
    border-color: #30363d;
  }

  .feature-lifestyle {
    border-color: #30363d;
  }

  .how-step-visual--placeholder {
    border-color: rgba(255, 255, 255, 0.18);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
      rgba(255, 255, 255, 0.03);
  }

  .how-step-placeholder-label {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(230, 237, 243, 0.72);
  }

  /* Trust section: keep green (coloured) – only card interiors */
  .trust-card {
    background: #161b22;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }

  .trust-card-title {
    color: #e6edf3;
  }

  .trust-card-sub {
    color: #8b949e;
  }

  .faq-section {
    background: #0d1117;
  }

  .faq-title {
    color: #e6edf3;
  }

  .faq-item {
    background: linear-gradient(180deg, rgba(75, 227, 210, 0.12) 0%, rgba(3, 177, 151, 0.1) 100%);
    border-color: rgba(75, 227, 210, 0.36);
  }

  .faq-question span:first-child {
    color: #e6edf3;
  }

  .faq-toggle {
    color: #4be3d2;
    border-color: rgba(75, 227, 210, 0.6);
  }

  .faq-item.is-open .faq-toggle {
    background: rgba(75, 227, 210, 0.14);
  }

  .faq-answer p {
    color: #8b949e;
  }

  .faq-answer a {
    color: #7df1e5;
  }

  /* CTA & footer: already dark – no change */

  /* Typing box (shared) */
  .typing-box {
    background-color: #161b22;
    border-color: #30363d;
    color: #e6edf3;
  }

  .cursor {
    background-color: #e6edf3;
  }

  .recycle-icon {
    color: #e6edf3;
  }
}
