@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
}

:root {
  --bg-base: #fff8f1;
  --bg-accent: #ffe6cd;
  --bg-deep: #252a31;
  --surface: #ffffff;
  --surface-soft: #fffaf4;
  --text-strong: #18263b;
  --text-medium: #334766;
  --text-muted: #5d6f88;
  --text-inverse: #f5f8ff;
  --border-soft: #e5d7c7;
  --border-strong: #d7c2a7;
  --accent: #5b6470;
  --accent-strong: #3f4752;
  --accent-soft: #e6eaf0;
  --highlight: #f08f45;
  --highlight-soft: #ffe9d3;
  --shadow-soft: 0 14px 30px rgba(25, 38, 58, 0.08);
  --shadow-strong: 0 22px 45px rgba(18, 31, 50, 0.22);
  --radius-sm: 0.75rem;
  --radius-md: 1.1rem;
  --radius-lg: 1.6rem;
  --radius-xl: 2.1rem;
  --space-1: 0.3rem;
  --space-2: 0.55rem;
  --space-3: 0.85rem;
  --space-4: 1.1rem;
  --space-5: 1.55rem;
  --space-6: 2.1rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --max-width: 74rem;
  --header-height: 4.6rem;
  --transition-fast: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-medium: 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-strong);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(66rem 34rem at -8% 0%, rgba(240, 143, 69, 0.16), transparent 70%),
    radial-gradient(52rem 36rem at 100% 14%, rgba(116, 125, 140, 0.12), transparent 68%),
    linear-gradient(180deg, var(--bg-base), #fffdf9 42%, #fff5ea 100%);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 22rem;
  height: 22rem;
  bottom: -9rem;
  left: -5rem;
  background: radial-gradient(circle, rgba(240, 143, 69, 0.2), rgba(240, 143, 69, 0));
  filter: blur(10px);
}

body::after {
  width: 28rem;
  height: 28rem;
  top: -10rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(116, 125, 140, 0.16), rgba(116, 125, 140, 0));
  filter: blur(8px);
}

a {
  color: #2d3a4d;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: #4e6078;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(78, 96, 120, 0.35);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.015em;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(215, 194, 167, 0.48);
  background: rgba(255, 250, 243, 0.8);
  backdrop-filter: blur(10px);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.site-header.is-scrolled {
  background: rgba(255, 252, 246, 0.93);
  border-bottom-color: rgba(206, 175, 140, 0.75);
  box-shadow: 0 10px 22px rgba(28, 39, 58, 0.08);
}

.site-nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  box-shadow: 0 6px 14px rgba(14, 34, 64, 0.2);
}

.brand-wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.34rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-strong);
  font: inherit;
  font-weight: 700;
  padding: 0.46rem 0.76rem;
}

.nav-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: var(--space-5);
  align-items: center;
}

.nav-menu a {
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--text-strong);
}

main {
  display: block;
}

.section-block {
  padding-block: clamp(1.4rem, 4vw, 2.8rem);
}

.hero {
  padding-top: clamp(2rem, 7vw, 4.3rem);
  padding-bottom: clamp(1.2rem, 4vw, 2.3rem);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(1.4rem, 3.5vw, 3rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.34rem 0.76rem;
  background: var(--highlight-soft);
  color: #8f4f1d;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.hero h1 {
  margin: var(--space-4) 0 0;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.08;
}

.hero-lead {
  margin-top: var(--space-4);
  font-size: clamp(1rem, 2.1vw, 1.22rem);
  color: var(--text-medium);
  max-width: 38ch;
}

.hero-actions {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-badges {
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-badges li {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.4rem 0.78rem;
  font-size: 0.85rem;
  color: var(--text-medium);
  box-shadow: 0 5px 12px rgba(19, 32, 50, 0.06);
}

.hero-device {
  position: relative;
  margin-inline: auto;
  width: min(36rem, 100%);
  padding: 0;
}

.hero-frame {
  width: clamp(11.4rem, 33.6vw, 14.6rem);
  margin-inline: auto;
}

.floating-note {
  position: absolute;
  z-index: 8;
  border-radius: var(--radius-sm);
  max-width: 10rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.32;
  text-wrap: balance;
  color: #4f617c;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(202, 181, 154, 0.72);
  box-shadow: 0 8px 16px rgba(32, 45, 67, 0.1);
}

.floating-note::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 4.2rem;
  height: 2px;
  background: rgba(202, 181, 154, 0.95);
}

.floating-note::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: rgba(202, 181, 154, 0.95);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
  transform: translateY(-50%);
}

.floating-note-top {
  top: 24%;
  left: 0.4rem;
}

.floating-note-top::before {
  top: 86%;
  width: 3.4rem;
  left: 100%;
  transform: translateY(-50%);
}

.floating-note-top::after {
  top: 86%;
  left: calc(100% + 3.4rem);
}

.floating-note-bottom {
  bottom: 20%;
  right: 0.2rem;
}

.floating-note-bottom::before {
  top: 73%;
  width: 6rem;
  right: 100%;
  transform: translateY(-50%);
}

.floating-note-bottom::after {
  top: 73%;
  right: calc(100% + 6rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.2rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

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

.button-primary {
  color: #f4f8ff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 22px rgba(19, 66, 163, 0.34);
}

.button-primary:hover {
  color: #f4f8ff;
  box-shadow: 0 14px 24px rgba(19, 66, 163, 0.4);
}

.button-secondary {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--border-strong);
}

.button-secondary:hover {
  border-color: #be9f77;
}

.section-heading {
  margin: 0;
  font-size: clamp(1.55rem, 3.1vw, 2.35rem);
  line-height: 1.18;
}

.section-intro {
  margin-top: var(--space-3);
  margin-bottom: 0;
  max-width: 60ch;
  color: var(--text-medium);
}

.workflow-grid {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-step {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(210, 186, 154, 0.76);
  background: linear-gradient(160deg, #fffdf9, #fff5e8);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: var(--space-3);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-inverse);
  background: var(--accent-strong);
}

.workflow-step h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.16rem;
}

.workflow-step p {
  margin: 0;
  color: var(--text-muted);
}

.screens-grid {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.screen-card {
  margin: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(168deg, #fffefe, #fff6eb);
  border: 1px solid rgba(211, 185, 151, 0.7);
  box-shadow: var(--shadow-soft);
  padding: var(--space-4);
}

.screen-card figcaption {
  margin-top: var(--space-3);
  font-size: 0.89rem;
  color: var(--text-muted);
  font-weight: 700;
}

.screen-card .phone-frame {
  width: clamp(7.2rem, 13vw, 8.8rem);
  margin-inline: auto;
}

.phone-frame {
  --frame-radius: 2.3rem;
  --frame-pad: 0.6rem;
  position: relative;
  border-radius: var(--frame-radius);
  padding: var(--frame-pad);
  background: linear-gradient(160deg, #8c9199 0%, #4d535c 36%, #1f242b 100%);
  border: 1px solid rgba(205, 210, 219, 0.52);
  outline: 2px solid rgba(7, 14, 24, 0.8);
  outline-offset: -2px;
  box-shadow:
    0 22px 40px rgba(7, 15, 28, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 -10px 16px rgba(4, 9, 15, 0.58);
  overflow: hidden;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 0.75rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at calc(100% - 1.1rem) 50%, rgba(67, 73, 83, 0.95) 0 0.14rem, transparent 0.15rem),
    linear-gradient(180deg, #06080d 0%, #191d24 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(2, 6, 15, 0.75);
  z-index: 3;
}

.phone-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  transform: translateX(-50%);
  width: 24%;
  height: 0.13rem;
  border-radius: 999px;
  background: rgba(236, 239, 244, 0.68);
  z-index: 3;
}

.phone-hardware {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.phone-hardware::before,
.phone-hardware::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(180deg, #d5d9e0 0%, #8b919b 56%, #575e68 100%);
}

.phone-hardware::before {
  left: 0.08rem;
  top: 40%;
  width: 0.18rem;
  height: 1.2rem;
}

.phone-hardware::after {
  right: 0.08rem;
  top: 34%;
  width: 0.18rem;
  height: 2.55rem;
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 1284 / 2778;
  object-fit: cover;
  border-radius: calc(var(--frame-radius) - 0.48rem);
  background: #090b10;
  box-shadow: inset 0 0 0 1px rgba(132, 139, 148, 0.36);
}

.phone-frame-compact {
  --frame-radius: 1.9rem;
  --frame-pad: 0.48rem;
}

.pricing-grid {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(211, 184, 150, 0.78);
  background: #fffefb;
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
}

.plan-card h3 {
  margin: 0 0 var(--space-3);
  font-size: 1.45rem;
}

.plan-card ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: var(--space-2);
  color: var(--text-medium);
}

.plan-card-pro {
  background: linear-gradient(162deg, #f5f6f8, #edf0f4 48%, #e6eaf0);
  border-color: rgba(141, 151, 164, 0.5);
}

.plan-logo {
  width: min(8.5rem, 44%);
  margin-bottom: var(--space-3);
  border-radius: 1.35rem;
  border: 1px solid rgba(193, 169, 141, 0.52);
  box-shadow:
    0 10px 20px rgba(21, 35, 56, 0.2),
    0 2px 6px rgba(21, 35, 56, 0.1);
}

.cta-band {
  border-radius: var(--radius-xl);
  background: linear-gradient(125deg, #f08f45, #d5762c 58%, #bd5f18 100%);
  color: #fffaf5;
  padding: clamp(1.35rem, 4.8vw, 2.8rem);
  box-shadow: 0 22px 40px rgba(116, 60, 18, 0.27);
  display: grid;
  align-items: center;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr) auto;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.2;
}

.cta-band p {
  margin: var(--space-3) 0 0;
  color: rgba(255, 248, 240, 0.94);
}

.cta-band .button-primary {
  color: #7f451e;
  background: linear-gradient(135deg, #fff6ea, #ffe5cd);
  border: 1px solid rgba(183, 132, 79, 0.55);
  box-shadow: 0 10px 20px rgba(112, 60, 23, 0.16);
}

.cta-band .button-primary:hover {
  color: #6c3b19;
  box-shadow: 0 12px 24px rgba(112, 60, 23, 0.24);
}

.page-hero {
  padding-top: clamp(2.5rem, 8vw, 4.7rem);
  padding-bottom: clamp(1.4rem, 4vw, 2.4rem);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  line-height: 1.14;
}

.page-hero p {
  margin-top: var(--space-3);
  color: var(--text-medium);
  max-width: 64ch;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-soft);
  color: var(--text-medium);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.28rem 0.72rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 3vw, 1.7rem);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card p,
.card li {
  color: var(--text-medium);
}

.card ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: var(--space-2);
}

.single-block {
  max-width: 57rem;
}

.single-block h2:not(:first-child) {
  margin-top: var(--space-5);
}

.single-block p + ul {
  margin-top: var(--space-3);
}

.single-block .button {
  margin-top: var(--space-3);
}

.site-footer {
  margin-top: clamp(2.6rem, 8vw, 5rem);
  border-top: 1px solid rgba(215, 194, 167, 0.78);
  background: rgba(255, 250, 244, 0.75);
}

.footer-grid {
  padding-block: var(--space-6);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-5);
  align-items: end;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal][data-reveal-delay="1"] {
  transition-delay: 90ms;
}

[data-reveal][data-reveal-delay="2"] {
  transition-delay: 170ms;
}

[data-reveal][data-reveal-delay="3"] {
  transition-delay: 250ms;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 72rem) {
  .hero-layout,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .hero-device {
    width: min(23rem, 100%);
    padding-top: 4.6rem;
    padding-bottom: 4.8rem;
  }

  .floating-note {
    max-width: 12rem;
    left: 50%;
    right: auto;
    text-align: center;
  }

  .floating-note::before {
    left: 50%;
    right: auto;
    width: 2px;
    transform: translateX(-50%);
  }

  .floating-note::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .floating-note-top {
    top: 0;
    transform: translateX(-50%);
  }

  .floating-note-top::before {
    top: 100%;
    height: 2.1rem;
  }

  .floating-note-top::after {
    top: calc(100% + 2.1rem);
  }

  .floating-note-bottom {
    bottom: 0;
    transform: translateX(-50%);
  }

  .floating-note-bottom::before {
    top: auto;
    bottom: 100%;
    height: 2.1rem;
  }

  .floating-note-bottom::after {
    top: auto;
    bottom: calc(100% + 2.1rem);
  }

  .screens-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 48rem) {
  .nav-toggle {
    display: none;
  }

  body.has-nav-toggle .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex-wrap: wrap;
    padding-block: var(--space-3);
  }

  nav {
    width: 100%;
  }

  .nav-menu {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  body.has-nav-toggle .nav-menu {
    overflow: hidden;
    max-height: 0;
    padding-top: 0;
    transition: max-height var(--transition-medium), padding-top var(--transition-medium);
  }

  body.has-nav-toggle .nav-menu.is-open {
    max-height: 16rem;
    padding-top: var(--space-3);
  }

  .hero {
    padding-top: 1.8rem;
  }

  .hero-actions {
    align-items: stretch;
  }

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

  .hero-device {
    width: min(21rem, 100%);
    padding-top: 4.2rem;
    padding-bottom: 4.4rem;
  }

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

  .hero-frame {
    width: min(13.2rem, 100%);
  }

  .screen-card .phone-frame {
    width: min(8.6rem, 100%);
  }
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
