:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #6b6b63;
  --paper: #fbfaf5;
  --paper-soft: #f1efe6;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --line: #202020;
  --accent: #ffd45d;
  --accent-ink: #181816;
  --accent-soft: #fff0ad;
  --wash: #eef6fb;
  --shadow-line: #202020;
  --shadow-soft: 0 22px 50px rgba(24, 24, 18, 0.12);
  --radius-card: 28px;
  --radius-small: 18px;
  --content: min(1160px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 23, 23, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 214, 101, 0.28), transparent 25%),
    radial-gradient(circle at 80% 16%, rgba(184, 222, 244, 0.28), transparent 24%),
    radial-gradient(circle at 72% 78%, rgba(246, 191, 208, 0.18), transparent 24%);
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: var(--content);
  min-height: 66px;
  margin: 14px auto 0;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.brand span {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: var(--accent);
  outline: 2px solid transparent;
}

.hero,
.section,
.site-footer,
.legal-page {
  position: relative;
  width: var(--content);
  margin: 0 auto;
}

.hero {
  min-height: calc(100dvh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(38px, 6vw, 70px) 0 54px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 18px;
  padding: 5px 13px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 900;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(46px, 6.7vw, 86px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-text {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.62;
}

.hero-actions,
.privacy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action,
.privacy-links a,
.mail-card {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 4px 5px 0 var(--shadow-line);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1), background-color 180ms ease;
}

.primary-action,
.privacy-links a:first-child {
  padding: 0 23px;
  background: var(--accent);
  color: var(--accent-ink);
}

.secondary-action,
.privacy-links a:last-child {
  padding: 0 23px;
  background: var(--surface);
}

.primary-action:hover,
.secondary-action:hover,
.privacy-links a:hover,
.mail-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 7px 0 var(--shadow-line);
}

.primary-action:active,
.secondary-action:active,
.privacy-links a:active,
.mail-card:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 2px 0 var(--shadow-line);
}

.hero-art {
  position: relative;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 8px 9px 0 var(--shadow-line), var(--shadow-soft);
  overflow: hidden;
  transform: rotate(1.2deg);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed color-mix(in srgb, var(--line) 35%, transparent);
  border-radius: calc(var(--radius-card) - 10px);
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section {
  padding: clamp(62px, 8vw, 104px) 0;
  scroll-margin-top: 96px;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 28px;
}

.section-heading p,
.workflow-panel p,
.privacy-copy p,
.contact-section p,
.site-footer p,
.legal-card p {
  color: var(--muted);
  line-height: 1.75;
}

.section h2,
.legal-card h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.screenshot-section {
  padding-top: 36px;
}

.screens-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 7vw, 92px);
}

.screens-copy {
  max-width: 640px;
}

.screens-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.screen-tab,
.screen-control {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 3px 4px 0 var(--shadow-line);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.screen-tab.is-active {
  color: var(--accent-ink);
  background: var(--accent);
}

.screen-tab:active,
.screen-control:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 2px 0 var(--shadow-line);
}

.phone-stage {
  display: grid;
  justify-items: center;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  border: 2px solid var(--line);
  border-radius: calc(var(--radius-card) + 8px);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 212, 93, 0.28), transparent 28%),
    color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: 5px 6px 0 var(--shadow-line);
}

.phone-frame {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1206 / 2622;
  padding: 10px;
  border: 5px solid #141411;
  border-radius: 48px;
  background: #151512;
  outline: 2px solid var(--line);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.12),
    9px 10px 0 var(--shadow-line),
    var(--shadow-soft);
  cursor: grab;
  overflow: visible;
  touch-action: pan-y;
  user-select: none;
}

.phone-frame::before,
.phone-frame::after {
  content: "";
  position: absolute;
  right: -9px;
  width: 4px;
  border: 2px solid var(--line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #151512;
}

.phone-frame::before {
  top: 25%;
  height: 58px;
}

.phone-frame::after {
  top: 38%;
  height: 86px;
}

.phone-frame:active {
  cursor: grabbing;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--paper);
}

.screen-track {
  display: flex;
  height: 100%;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.screen-slide {
  flex: 0 0 100%;
  height: 100%;
}

.screen-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--paper);
  pointer-events: none;
}

.screen-caption {
  width: min(100%, 380px);
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: 4px 5px 0 var(--shadow-line);
}

.screen-caption strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
}

.screen-caption span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.screen-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.95fr;
  grid-auto-rows: minmax(230px, auto);
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 230px;
  padding: 24px;
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 5px 6px 0 var(--shadow-line);
  overflow: hidden;
}

.feature-card-wide {
  grid-column: span 2;
  min-height: 292px;
  background:
    radial-gradient(circle at 84% 22%, rgba(255, 212, 93, 0.5), transparent 24%),
    var(--surface);
}

.feature-card-accent {
  background: var(--accent-soft);
}

.feature-card-logo {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  align-items: center;
  background: var(--wash);
}

.feature-card-logo img {
  width: 120px;
  height: 120px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 4px 5px 0 var(--shadow-line);
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 22px;
  padding: 4px 11px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  font-size: 13px;
  font-weight: 900;
}

.feature-card h3,
.workflow-actions strong {
  display: block;
  margin-bottom: 8px;
  font-size: 23px;
  line-height: 1.2;
}

.feature-card p,
.workflow-actions p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
}

.stroke-sample {
  position: absolute;
  right: 26px;
  bottom: 24px;
  width: min(280px, 45%);
  height: 112px;
}

.stroke-sample span {
  position: absolute;
  left: 0;
  height: 7px;
  border-radius: 999px;
  background: var(--line);
}

.stroke-sample span:nth-child(1) {
  top: 12px;
  width: 74%;
  transform: rotate(-6deg);
}

.stroke-sample span:nth-child(2) {
  top: 50px;
  width: 94%;
  transform: rotate(5deg);
}

.stroke-sample span:nth-child(3) {
  top: 88px;
  width: 58%;
  transform: rotate(-3deg);
}

.workflow-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  align-items: stretch;
}

.workflow-panel,
.workflow-actions article,
.privacy-section,
.contact-section,
.legal-card {
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 5px 6px 0 var(--shadow-line);
}

.workflow-panel {
  padding: clamp(26px, 4vw, 40px);
  background:
    linear-gradient(135deg, rgba(255, 212, 93, 0.42), transparent 56%),
    var(--surface);
}

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

.workflow-actions article {
  padding: 22px;
}

.workflow-actions article:nth-child(2) {
  margin-top: 34px;
}

.workflow-actions article:nth-child(3) {
  margin-top: 68px;
}

.privacy-section,
.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(26px, 4vw, 40px);
}

.privacy-copy,
.contact-section > div {
  max-width: 680px;
}

.mail-card {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 284px;
  min-height: 96px;
  padding: 18px 22px;
  border-radius: var(--radius-small);
  background: var(--accent);
  color: var(--accent-ink);
}

.mail-card span {
  color: color-mix(in srgb, var(--accent-ink) 72%, transparent);
  font-size: 14px;
}

.mail-card strong {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.2;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 42px 0 50px;
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a {
  font-weight: 800;
}

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

.legal-card {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px);
}

.legal-card h2 {
  margin-top: 34px;
  margin-bottom: 8px;
  font-size: 24px;
}

.legal-card a {
  font-weight: 850;
  text-decoration-thickness: 2px;
}

.legal-date {
  color: var(--muted);
}

.compact-footer {
  padding-top: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-art,
  .screens-copy,
  .phone-stage,
  .feature-card,
  .workflow-panel,
  .workflow-actions article,
  .privacy-section,
  .contact-section {
    animation: draw-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-art {
    animation-delay: 90ms;
  }

  .phone-stage {
    animation-delay: 120ms;
  }

  .feature-card:nth-child(2),
  .workflow-actions article:nth-child(2) {
    animation-delay: 80ms;
  }

  .feature-card:nth-child(3),
  .workflow-actions article:nth-child(3) {
    animation-delay: 140ms;
  }
}

@keyframes draw-in {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    top: 10px;
    border-radius: var(--radius-small);
  }

  .hero,
  .screens-layout,
  .workflow-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-art {
    transform: none;
  }

  .screens-layout {
    gap: 28px;
  }

  .screens-copy {
    max-width: 720px;
  }

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

  .feature-card-wide,
  .feature-card-logo {
    grid-column: span 2;
  }

  .workflow-actions article:nth-child(2),
  .workflow-actions article:nth-child(3) {
    margin-top: 0;
  }

  .privacy-section,
  .contact-section,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

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

@media (max-width: 680px) {
  :root {
    --content: min(100% - 24px, 1160px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    padding: 0 10px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions,
  .privacy-links {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .privacy-links a {
    width: 100%;
  }

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

  .phone-frame {
    width: min(100%, 306px);
    padding: 8px;
    border-radius: 42px;
  }

  .phone-stage {
    padding: 18px 14px;
  }

  .phone-screen {
    border-radius: 34px;
  }

  .screen-tabs,
  .screen-controls {
    width: 100%;
  }

  .screen-tab,
  .screen-control {
    flex: 1 1 0;
    padding: 0 12px;
  }

  .feature-card-wide,
  .feature-card-logo {
    grid-column: span 1;
  }

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

  .feature-card-logo img {
    width: 104px;
    height: 104px;
  }

  .stroke-sample {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 24px;
  }

  .mail-card {
    min-width: 0;
    width: 100%;
  }
}
