:root {
  --canvas: #f9f5ef;
  --surface: #fffaf5;
  --surface-soft: #f4efeb;
  --surface-raised: #ffffff;
  --border: #dad4cf;
  --text: #151617;
  --text-dim: #4b4843;
  --text-muted: #908b86;
  --primary: #fdec04;
  --accent: #ffd000;
  --accent-soft: #fff3ca;
  --dark: #151617;
  --dark-soft: #232527;
  --dark-text: #f9f5ef;
  --shadow-sm: 0 2px 5px rgb(21 22 23 / 0.08), 0 10px 24px rgb(21 22 23 / 0.05);
  --shadow-md: 0 18px 55px rgb(21 22 23 / 0.13), 0 3px 10px rgb(21 22 23 / 0.08);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;
  --page-width: 1200px;
  --font-heading: "Rethink Sans", sans-serif;
  --font-body: "Outfit", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--canvas);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

svg {
  display: block;
}

::selection {
  color: var(--text);
  background: var(--primary);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  color: var(--dark-text);
  background: var(--dark);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.site-header {
  position: fixed;
  top: 14px;
  right: 0;
  left: 0;
  z-index: 100;
  padding: 0 24px;
}

.nav-shell {
  display: flex;
  width: min(100%, var(--page-width));
  height: 64px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 10px 0 12px;
  border: 1px solid rgb(218 212 207 / 0.82);
  border-radius: 22px;
  background: rgb(255 250 245 / 0.88);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px) saturate(160%);
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.site-header.scrolled .nav-shell {
  background: rgb(255 250 245 / 0.97);
  box-shadow: 0 10px 34px rgb(21 22 23 / 0.12);
}

.header-brand {
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.header-symbol {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition:
    color 140ms ease,
    background 140ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: var(--surface-soft);
  outline: none;
}

.nav-cta {
  min-width: 112px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
  line-height: 1;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.button svg {
  width: 20px;
  height: 20px;
}

.button-primary {
  color: var(--text);
  background: var(--primary);
  box-shadow:
    0 8px 24px rgb(253 236 4 / 0.38),
    inset 0 1px 0 rgb(255 255 255 / 0.6);
}

.button-primary:hover {
  background: var(--accent);
  box-shadow: 0 12px 30px rgb(255 208 0 / 0.42);
}

.button-primary svg {
  fill: currentColor;
}

.button-secondary,
.button-light {
  border-color: var(--border);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}

.button-secondary svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.button-ios svg {
  fill: currentColor;
  stroke: none;
}

.button-dark {
  color: var(--dark-text);
  background: var(--dark);
  box-shadow: 0 6px 16px rgb(21 22 23 / 0.18);
}

.button-dark:hover {
  background: var(--dark-soft);
}

.button-large {
  min-height: 54px;
  padding: 15px 24px;
  font-size: 16px;
}

.hero {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  padding: 148px 24px 48px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -320px;
  left: 50%;
  width: 1200px;
  height: 800px;
  background:
    radial-gradient(ellipse at 36% 52%, rgb(253 236 4 / 0.45), transparent 58%),
    radial-gradient(ellipse at 68% 48%, rgb(255 208 0 / 0.3), transparent 60%);
  filter: blur(12px);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 62%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 1100px);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px 15px;
  border: 1px solid rgb(218 212 207 / 0.88);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  background: rgb(255 250 245 / 0.72);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
}

.eyebrow-spark {
  color: var(--text);
  font-size: 15px;
}

.hero h1 {
  max-width: 1000px;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-size: clamp(52px, 7vw, 90px);
  font-weight: 800;
  letter-spacing: -0.058em;
  line-height: 0.98;
  text-wrap: balance;
}

.highlight,
.marker {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.highlight::before,
.marker::before {
  position: absolute;
  right: -0.04em;
  bottom: 0.05em;
  left: -0.04em;
  z-index: -1;
  height: 0.36em;
  background: var(--primary);
  content: "";
  transform: rotate(-0.7deg);
}

.underlined {
  position: relative;
  display: inline-block;
}

.underlined svg {
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 18px;
  overflow: visible;
}

.underlined path {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-width: 9;
}

.hero-copy {
  max-width: 720px;
  margin: 32px auto 0;
  color: var(--text-dim);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  text-wrap: balance;
}

.hero-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.doodle-note {
  position: absolute;
  top: -2px;
  left: calc(50% + 330px);
  color: var(--text-dim);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  transform: rotate(-5deg);
  white-space: nowrap;
}

.doodle-note svg {
  width: 90px;
  height: 46px;
  margin: -4px 0 0 -48px;
}

.doodle-note path {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 13px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-row i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.product-stage {
  position: relative;
  z-index: 3;
  width: min(100%, 960px);
  min-height: 700px;
  margin: 64px auto 0;
  padding-bottom: 60px;
}

.stage-orbit {
  position: absolute;
  border: 1px solid rgb(255 208 0 / 0.32);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  top: 40px;
  left: calc(50% - 390px);
  width: 470px;
  height: 470px;
}

.orbit-two {
  right: calc(50% - 420px);
  bottom: 10px;
  width: 580px;
  height: 580px;
}

.ios-device {
  position: relative;
  z-index: 4;
  width: min(34vw, 340px);
  margin: 0 auto;
  padding: 7px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 18% / 8.3%;
  background: var(--dark);
  filter: drop-shadow(0 30px 36px rgb(21 22 23 / 0.24));
  transform: rotate(1.5deg);
  transform-origin: center bottom;
  transition: transform 200ms ease;
}

.ios-device:hover {
  transform: rotate(0.5deg) translateY(-6px);
}

.ios-screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16.5% / 7.7%;
}

.ios-badge {
  position: absolute;
  right: 50%;
  bottom: -21px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 600;
  transform: translateX(50%);
  white-space: nowrap;
}

.ios-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.reveal {
  opacity: 0;
  animation: reveal-up 650ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.reveal-1 {
  animation-delay: 50ms;
}

.reveal-2 {
  animation-delay: 130ms;
}

.reveal-3 {
  animation-delay: 210ms;
}

.reveal-4 {
  animation-delay: 290ms;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto;
  padding: 110px 0;
  scroll-margin-top: 96px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-kicker {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.section-heading h2,
.closing h2 {
  margin: 13px 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -0.05em;
  line-height: 1.02;
  text-wrap: balance;
}

.section-heading p {
  margin: 0;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.55;
}

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

.step-card {
  position: relative;
  display: flex;
  min-height: 710px;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: 0 10px 28px rgb(21 22 23 / 0.05);
}

.step-card.featured {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.step-number {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--dark-text);
  background: var(--dark);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
}

.step-card.featured .step-number {
  color: var(--text);
  background: var(--primary);
}

.step-device {
  position: relative;
  width: 224px;
  aspect-ratio: 1206 / 2622;
  align-self: center;
  margin: 4px auto 25px;
  padding: 7px;
  border-radius: 48px;
  background: var(--dark);
  box-shadow:
    0 26px 46px rgb(21 22 23 / 0.18),
    0 6px 14px rgb(21 22 23 / 0.12);
}

.step-device::before,
.step-device::after {
  position: absolute;
  left: -4px;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: var(--dark-soft);
  content: "";
}

.step-device::before {
  top: 88px;
  height: 36px;
}

.step-device::after {
  top: 136px;
  height: 58px;
}

.step-device img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 41px;
  object-fit: cover;
}

.step-card h3 {
  margin: 0 0 9px;
  font-family: var(--font-heading);
  font-size: 23px;
  letter-spacing: -0.03em;
}

.step-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
}

.benefits {
  padding-top: 0;
}

.benefit-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 0 auto;
}

.benefit-card {
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}

.benefit-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 18px;
  color: var(--text);
  background: var(--primary);
  font-family: var(--font-heading);
  font-size: 29px;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 0.6px currentColor;
}

.benefit-card h3 {
  margin: 0 0 9px;
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.benefit-card p {
  max-width: 390px;
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
}

.benefit-dark {
  color: var(--dark-text);
  background: var(--dark);
}

.benefit-dark .benefit-icon {
  color: var(--text);
}

.benefit-dark p {
  color: rgb(249 245 239 / 0.62);
}

.ring {
  padding-top: 0;
}

.ring-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface-raised);
  box-shadow: 0 18px 52px rgb(21 22 23 / 0.07);
  grid-template-columns: minmax(0, 0.85fr) minmax(480px, 1.15fr);
}

.ring-copy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px;
  flex-direction: column;
}

.ring-kicker {
  margin-bottom: 24px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  color: var(--text);
  background: var(--primary);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.ring h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(42px, 4vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.ring-copy p {
  max-width: 470px;
  margin: 24px 0 32px;
  color: var(--text-dim);
  font-size: 19px;
  line-height: 1.5;
}

.ring-copy .button {
  gap: 10px;
}

.ring-visual {
  display: block;
  min-height: 520px;
  overflow: hidden;
  background: var(--surface-raised);
}

.ring-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.ring-visual:hover img {
  transform: scale(1.025);
}

.closing {
  position: relative;
  width: min(calc(100% - 48px), 1280px);
  overflow: hidden;
  margin-bottom: 48px;
  padding: 100px 24px;
  border-radius: var(--radius-xl);
  background: var(--primary);
  text-align: center;
}

.closing-content {
  position: relative;
  z-index: 2;
}

.closing-mark {
  display: inline-flex;
  padding: 7px;
  border: 1px solid rgb(21 22 23 / 0.18);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.38);
}

.closing-mark img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 13px;
}

.closing h2 {
  margin-top: 20px;
}

.closing p {
  margin: 0;
  color: var(--text-dim);
  font-size: 19px;
}

.closing-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.closing-shape {
  position: absolute;
  border: 2px solid rgb(21 22 23 / 0.12);
  border-radius: 50%;
}

.shape-left {
  top: -150px;
  left: -140px;
  width: 430px;
  height: 430px;
}

.shape-right {
  right: -120px;
  bottom: -230px;
  width: 540px;
  height: 540px;
}

footer {
  display: grid;
  width: min(calc(100% - 48px), var(--page-width));
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
  padding: 20px 0 42px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-brand {
  gap: 9px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.footer-symbol {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 980px) {
  .doodle-note {
    display: none;
  }

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

  .step-card {
    display: grid;
    min-height: 455px;
    grid-template-columns: 230px 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 36px;
    align-items: center;
  }

  .step-number {
    top: 26px;
    left: 26px;
  }

  .step-device {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 190px;
    margin: 0;
    justify-self: center;
  }

  .step-card h3,
  .step-card p {
    grid-column: 2;
  }

  .step-card h3 {
    grid-row: 1;
    align-self: end;
  }

  .step-card p {
    grid-row: 2;
    align-self: start;
  }

  .ring-card {
    grid-template-columns: 1fr;
  }

  .ring-visual {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 10px;
    padding: 0 12px;
  }

  .nav-shell {
    height: 58px;
    padding: 0 8px 0 10px;
    border-radius: 19px;
  }

  .header-brand {
    gap: 8px;
    font-size: 15px;
  }

  .header-symbol {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    min-width: 98px;
    min-height: 40px;
    padding: 8px 16px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding: 116px 16px 48px;
  }

  .hero-glow {
    top: -260px;
    width: 760px;
  }

  .eyebrow {
    margin-bottom: 22px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 62px);
    line-height: 1;
  }

  .highlight,
  .marker {
    white-space: normal;
  }

  .underlined svg {
    bottom: -8px;
    height: 13px;
  }

  .underlined path {
    stroke-width: 7;
  }

  .hero-copy {
    margin-top: 26px;
    font-size: 17px;
  }

  .hero-actions,
  .closing-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .button,
  .closing-actions .button {
    width: 100%;
  }

  .trust-row {
    gap: 10px 16px;
    flex-wrap: wrap;
    font-size: 11px;
  }

  .product-stage {
    width: 100%;
    min-height: 610px;
    margin-top: 48px;
    padding-bottom: 36px;
  }

  .ios-device {
    width: min(76vw, 286px);
    transform: none;
  }

  .ios-device:hover {
    transform: translateY(-4px);
  }

  .section {
    width: min(calc(100% - 32px), var(--page-width));
    padding: 76px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2,
  .closing h2 {
    font-size: 40px;
  }

  .section-heading p {
    font-size: 16px;
  }

  .step-card {
    display: flex;
    min-height: 650px;
    padding: 24px;
  }

  .step-number {
    top: 24px;
    left: 24px;
  }

  .step-device {
    width: 198px;
    margin: 4px auto 24px;
  }

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

  .benefit-card {
    min-height: 220px;
    padding: 28px;
  }

  .benefit-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 26px;
    font-size: 27px;
  }

  .ring-copy {
    padding: 38px 28px 32px;
  }

  .ring-kicker {
    margin-bottom: 20px;
  }

  .ring h2 {
    font-size: 42px;
  }

  .ring-copy p {
    margin: 20px 0 26px;
    font-size: 17px;
  }

  .ring-copy .button {
    width: auto;
  }

  .ring-visual {
    aspect-ratio: 1;
  }

  .closing {
    width: calc(100% - 24px);
    margin-bottom: 30px;
    padding: 72px 18px;
    border-radius: 28px;
  }

  footer {
    width: calc(100% - 32px);
    grid-template-columns: 1fr auto;
    gap: 15px;
  }

  footer > p {
    display: none;
  }

  .footer-links {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
