/* Applylane — cool paper, cobalt, Syne/DM Sans. Not cream-serif, not purple. */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@600;700;800&display=swap");

:root {
  --ink: #0b1220;
  --muted: #5a6478;
  --bg: #eef1f6;
  --paper: #f8f9fc;
  --line: #d5dbe8;
  --accent: #1a46e0;
  --accent-2: #1234b0;
  --glow: #7aa2ff;
  --ok: #0f6b4c;
  --bad: #8b2e2e;
  --us: #e8eefc;
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  background: var(--bg);
}

.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 8;
  background: rgba(238, 241, 246, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
nav a:hover { color: var(--ink); }
.nav-cta { color: var(--accent) !important; font-weight: 700; }

/* Full-bleed hero composition */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: 0 0 56px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% 10%, rgba(26, 70, 224, 0.22), transparent 55%),
    radial-gradient(900px 500px at 10% 90%, rgba(122, 162, 255, 0.18), transparent 50%),
    linear-gradient(165deg, #dfe6f5 0%, #eef1f6 42%, #f7f8fb 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 18, 32, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 85%);
  pointer-events: none;
}
.hero-plane {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-plane .sheet {
  position: absolute;
  right: max(4vw, 24px);
  top: 12%;
  width: min(420px, 46vw);
  height: 58%;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,249,252,0.88)),
    var(--paper);
  border: 1px solid rgba(26, 70, 224, 0.18);
  box-shadow: 0 30px 80px rgba(18, 40, 100, 0.18);
  transform: rotate(2.5deg);
  overflow: hidden;
  animation: sheet-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-plane .sheet::before {
  content: "";
  display: block;
  height: 44px;
  background: linear-gradient(90deg, #1a46e0, #4d74f0);
}
.hero-plane .sheet .lines {
  padding: 22px 24px;
  display: grid;
  gap: 14px;
}
.hero-plane .sheet .line {
  height: 12px;
  border-radius: 3px;
  background: #d9e0ef;
  animation: fill-line 2.4s ease-in-out infinite;
}
.hero-plane .sheet .line:nth-child(1) { width: 72%; animation-delay: 0.1s; }
.hero-plane .sheet .line:nth-child(2) { width: 90%; animation-delay: 0.35s; }
.hero-plane .sheet .line:nth-child(3) { width: 64%; animation-delay: 0.55s; }
.hero-plane .sheet .line:nth-child(4) { width: 80%; animation-delay: 0.8s; }
.hero-plane .sheet .line.done {
  background: linear-gradient(90deg, #1a46e0, #7aa2ff);
}
.hero .wrap { position: relative; z-index: 1; max-width: 620px; margin-left: max(16px, calc((100% - 1080px) / 2)); width: min(620px, calc(100% - 32px)); }

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 18px;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 18ch;
  animation: rise 0.9s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lede {
  margin: 0 0 22px;
  color: #2a3348;
  font-size: 1.08rem;
  max-width: 38ch;
  animation: rise 1s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  animation: rise 1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #f5f8ff;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
}
.btn:hover { background: var(--accent-2); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.fine { color: var(--muted); font-size: 0.88rem; margin: 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(28px) rotate(2.5deg); }
  to { opacity: 1; transform: translateY(0) rotate(2.5deg); }
}
@keyframes fill-line {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

section { padding: 56px 0; }
section.alt {
  background: var(--paper);
  border-block: 1px solid var(--line);
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
ul.checks, ul.no { padding-left: 1.1rem; margin: 0; }
ul.checks li, ul.no li { margin: 0 0 10px; }
.price-block {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-end;
  margin-top: 8px;
}
.price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price span { font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.table-wrap { overflow-x: auto; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
tr.us { background: var(--us); font-weight: 600; }
ol.steps { padding-left: 1.2rem; }
ol.steps li { margin: 0 0 14px; max-width: 70ch; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; max-width: 70ch; color: #2a3348; }
.buy { text-align: left; }
footer {
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}
footer a { color: var(--accent); }

/* App dashboard */
.app-shell { min-height: 100vh; background: var(--bg); }
.app-main { padding: 40px 0 64px; }
.card-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  max-width: 640px;
}
label { display: block; font-weight: 600; margin: 0 0 6px; font-size: 0.92rem; }
input, textarea, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 16px;
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(26, 70, 224, 0.35);
  border-color: var(--accent);
}
.hint { color: var(--muted); font-size: 0.86rem; margin: -8px 0 16px; }
.status {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--us);
  border: 1px solid #c5d0f0;
  margin-bottom: 18px;
}
.credits {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 48px 0 40px; align-items: flex-start; }
  .hero-plane .sheet { display: none; }
  .hero .wrap { max-width: none; margin: 0 auto; width: min(1080px, calc(100% - 32px)); }
  .split { grid-template-columns: 1fr; }
  nav { gap: 12px 16px; }
  nav .nav-cta { display: none; }
  h1 { max-width: none; }
}

@media (max-width: 420px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { text-align: center; }
}
