:root {
  --canvas: #f3efe6;
  --canvas-deep: #e8e2d6;
  --ink: #141414;
  --muted: #5a554d;
  --muted-soft: #8a847a;
  --stamp: #d64e62;
  --stamp-soft: rgba(214, 78, 98, 0.14);
  --stamp-glow: rgba(214, 78, 98, 0.35);
  --paper: #fffefb;
  --paper-elevated: #ffffff;
  --rule: rgba(20, 20, 20, 0.08);
  --rule-strong: rgba(20, 20, 20, 0.14);
  --shadow-sm: 0 8px 24px rgba(20, 20, 20, 0.06);
  --shadow-md: 0 24px 64px rgba(20, 20, 20, 0.1);
  --shadow-glow: 0 40px 100px var(--stamp-glow);
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, monospace;
  --max: 1140px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/dmsans/v15/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxhTg.ttf")
    format("truetype");
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-text);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--stamp);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #b84355;
}

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

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(720px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
}

.announce {
  background: var(--ink);
  color: rgba(255, 254, 251, 0.88);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 10px 16px;
}

.announce a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
}

.announce a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(1.2);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  z-index: 2;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 6px 20px rgba(214, 78, 98, 0.28);
}

.brand span {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
}

.nav-desktop a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-toggle summary {
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
  display: grid;
  place-items: center;
  list-style: none;
}

.menu-toggle summary::-webkit-details-marker {
  display: none;
}

.menu-bars {
  width: 18px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink);
}

.menu-panel {
  position: absolute;
  inset: 100% 0 auto 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-md);
}

.menu-panel a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
}

@media (max-width: 900px) {
  .nav-desktop,
  .nav-cta .btn-text {
    display: none;
  }

  .menu-toggle {
    display: block;
    position: relative;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  color: var(--paper);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}

.btn-secondary:hover {
  background: var(--paper);
}

.btn-stamp {
  background: var(--stamp);
  color: var(--paper);
  box-shadow: 0 12px 32px var(--stamp-glow);
}

.btn-stamp:hover {
  color: var(--paper);
}

.hero {
  position: relative;
  padding: clamp(48px, 8vw, 88px) 0 clamp(32px, 5vw, 56px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: min(680px, 90vw);
  height: min(680px, 90vw);
  right: -12%;
  top: -20%;
  background: radial-gradient(circle, var(--stamp-glow) 0%, transparent 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stamp);
  box-shadow: 0 0 0 4px var(--stamp-soft);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  font-weight: 400;
}

h1 em {
  font-style: italic;
  color: var(--stamp);
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 32px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.app-store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s var(--ease);
}

.app-store-badge:hover {
  transform: translateY(-2px);
}

.app-store-badge svg {
  height: 44px;
  width: auto;
}

.hero-visual {
  position: relative;
  margin: 0;
  padding: 8px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-blob {
  position: absolute;
  width: 92%;
  height: 85%;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 55% 40%, rgba(214, 78, 98, 0.28), rgba(243, 239, 230, 0) 72%);
  filter: blur(8px);
  animation: float 8s var(--ease) infinite alternate;
  z-index: 0;
}

@keyframes float {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-10px) scale(1.02);
  }
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 58% center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule-strong);
  box-shadow: var(--shadow-md), 0 32px 80px rgba(214, 78, 98, 0.18);
}

@media (min-width: 961px) {
  .hero-photo {
    max-width: none;
    aspect-ratio: 5 / 6;
    min-height: 520px;
  }
}

.stat-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: clamp(40px, 6vw, 64px);
}

.stat {
  background: var(--paper);
  padding: 22px 24px;
  text-align: left;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 700px) {
  .stat-bar {
    grid-template-columns: 1fr;
  }
}

.audience {
  padding: 28px 0 0;
  text-align: center;
}

.audience p {
  margin: 0 0 14px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-soft);
  font-weight: 600;
}

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.audience-tags span {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--muted);
}

section {
  padding: clamp(64px, 10vw, 96px) 0;
}

section.alt {
  background: var(--canvas-deep);
  border-block: 1px solid var(--rule);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-head.center .section-lead {
  margin-inline: auto;
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stamp);
  font-weight: 700;
  margin: 0 0 12px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  font-weight: 400;
  line-height: 1.05;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.65;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-item {
  background: var(--paper-elevated);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 28px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.bento-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.bento-item.span-7 {
  grid-column: span 7;
}

.bento-item.span-5 {
  grid-column: span 5;
}

.bento-item.span-4 {
  grid-column: span 4;
}

.bento-item.span-8 {
  grid-column: span 8;
}

.bento-item.span-6 {
  grid-column: span 6;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--stamp-soft);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.bento-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.bento-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .bento-item[class*="span-"] {
    grid-column: span 12;
  }
}

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

.workflow-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.workflow-card::before {
  content: attr(data-step);
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--stamp-soft);
  line-height: 1;
}

.workflow-card h3 {
  font-family: var(--font-display);
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.workflow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 800px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }
}

.spotlight {
  background: var(--ink);
  color: rgba(255, 254, 251, 0.92);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.spotlight h2 {
  color: var(--paper);
}

.spotlight p {
  color: rgba(255, 254, 251, 0.72);
  margin: 0 0 20px;
}

.spotlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.spotlight-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: rgba(255, 254, 251, 0.85);
}

.spotlight-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(214, 78, 98, 0.25);
  color: #ffb3be;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

@media (max-width: 800px) {
  .spotlight {
    grid-template-columns: 1fr;
  }
}

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.price-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(214, 78, 98, 0.4);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.price-card.featured::after {
  content: "Most popular";
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stamp);
  background: var(--stamp-soft);
  padding: 6px 10px;
  border-radius: 999px;
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 8px 0 16px;
}

.price-card ul {
  margin: 0 0 24px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

@media (max-width: 700px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 0 22px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  padding: 20px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--stamp);
  font-size: 1.25rem;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.disclaimer {
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-top: 36px;
  line-height: 1.65;
}

.cta-band {
  text-align: center;
  padding: clamp(56px, 8vw, 80px) 0;
}

.cta-band .section-lead {
  margin: 0 auto 28px;
  max-width: 32rem;
}

.site-footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid strong {
  display: block;
  color: var(--ink);
  margin-bottom: 12px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--ink);
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.device-screenshots {
  padding: clamp(48px, 7vw, 72px) 0;
}

.device-showcase {
  list-style: none;
  margin: clamp(32px, 5vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 40px);
  align-items: end;
  justify-items: center;
}

.device-showcase-item figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.device-showcase figcaption {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 16rem;
}

.device-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.device-caption {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Realistic hardware shells — screen content is raw ASC capture */
.device-mock {
  --shell: #151516;
  --shell-edge: #2c2c2e;
  --shell-highlight: #4a4a4e;
  position: relative;
  filter: drop-shadow(0 32px 56px rgba(20, 20, 20, 0.22));
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}

.device-showcase-item:hover .device-mock,
.device-showcase-item:focus-within .device-mock,
.device-showcase-item:hover .device-hardware-photo,
.device-showcase-item:focus-within .device-hardware-photo {
  transform: translateY(-6px);
  filter: drop-shadow(0 40px 72px rgba(20, 20, 20, 0.26));
}

.device-mock--iphone {
  width: min(100%, 268px);
  padding: 10px 8px 12px;
  border-radius: 46px;
  background: linear-gradient(160deg, var(--shell-highlight) 0%, var(--shell) 42%, #0a0a0b 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.65);
}

.device-mock--ipad {
  width: min(100%, 300px);
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(165deg, #3a3a3c 0%, var(--shell) 55%, #0c0c0d 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.55);
}

.device-mock__screen {
  position: relative;
  overflow: hidden;
  background: #000;
  line-height: 0;
}

.device-mock--iphone .device-mock__screen {
  border-radius: 38px;
}

.device-mock--ipad .device-mock__screen {
  border-radius: 12px;
}

.device-mock__screen img {
  display: block;
  width: 100%;
  height: auto;
}

.device-mock__island {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 50%;
  width: 32%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.device-mock__btn {
  position: absolute;
  background: linear-gradient(90deg, #1a1a1c, #3d3d40);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.device-mock--iphone .device-mock__btn--silent {
  left: -3px;
  top: 108px;
  width: 3px;
  height: 28px;
}

.device-mock--iphone .device-mock__btn--vol-up {
  left: -3px;
  top: 152px;
  width: 3px;
  height: 44px;
}

.device-mock--iphone .device-mock__btn--vol-down {
  left: -3px;
  top: 206px;
  width: 3px;
  height: 44px;
}

.device-mock--iphone .device-mock__btn--power,
.device-mock--ipad .device-mock__btn--power {
  right: -3px;
  top: 148px;
  width: 3px;
  height: 64px;
}

/* Simulator export with DeviceKit hardware chrome (no CSS shell) */
.device-hardware-photo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 32px 56px rgba(20, 20, 20, 0.22));
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}

.device-showcase-item--duo {
  grid-column: 1 / -1;
  width: min(100%, 920px);
}

.device-hardware-photo--duo {
  width: 100%;
  max-width: 920px;
}

@media (max-width: 960px) {
  .device-showcase {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }

  .device-showcase-item--duo {
    max-width: min(100vw - 48px, 920px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.legal-page {
  padding: 48px 0 72px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 28px;
}

.legal-page .card {
  margin: 24px 0;
}
