:root {
  --ink: #17324d;
  --ink-soft: #466079;
  --paper: #ffffff;
  --background: #f7f9fb;
  --soft: #eef4f7;
  --accent: #dc6d5c;
  --accent-dark: #be5547;
  --accent-soft: #fff0ec;
  --line: #d9e1e8;
  --green: #4e7a69;
  --shadow: 0 18px 45px rgba(23, 50, 77, 0.10);
  --radius: 22px;
  --page-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.page-width {
  width: min(calc(100% - 36px), var(--page-width));
  margin-inline: auto;
}

.narrow-width {
  max-width: 620px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 249, 251, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 225, 232, 0.8);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 1.02rem;
}

.brand-text small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--accent-dark);
}

.site-nav .nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
}

.site-nav .nav-cta:hover {
  background: var(--accent);
  color: white;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: white;
  padding: 10px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  padding: 86px 0 74px;
  background:
    radial-gradient(circle at 85% 20%, rgba(220, 109, 92, 0.14), transparent 28%),
    radial-gradient(circle at 15% 10%, rgba(78, 122, 105, 0.12), transparent 23%),
    var(--background);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
  align-items: center;
  gap: 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  letter-spacing: -0.055em;
}

.hero-text {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.hero-actions,
.pricing-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-note {
  margin-top: 15px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 24px rgba(220, 109, 92, 0.22);
}

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

.button-secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-light {
  background: white;
  color: var(--ink);
}

.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.full-button {
  width: 100%;
}

.worksheet-preview {
  display: flex;
  justify-content: center;
}

.paper {
  width: min(100%, 420px);
  aspect-ratio: 8.5 / 11;
  padding: 24px;
  background: white;
  border: 1px solid #e3e8ed;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.paper-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.58rem;
}

.paper-tag {
  font-weight: 900;
  letter-spacing: 0.08em;
}

.paper h2 {
  margin-bottom: 13px;
  font-size: 1.55rem;
}

.paper-box {
  margin: 10px 0;
  padding: 11px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  font-size: 0.72rem;
}

.paper-box p,
.paper-box ul {
  margin: 5px 0 0;
}

.paper-box.compact ul {
  padding-left: 18px;
}

.drawing-box {
  height: 36%;
  margin: 12px 0;
  border: 1.5px dashed #7c8b99;
  border-radius: 10px;
  padding: 10px;
  color: #667789;
  font-size: 0.68rem;
  font-weight: 800;
}

.paper-lines {
  font-size: 0.68rem;
}

.paper-lines span {
  display: block;
  height: 18px;
  border-bottom: 1px solid #9eaab5;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--soft);
}

.section-accent {
  background: var(--ink);
  color: white;
}

.section-heading {
  max-width: 730px;
  margin-bottom: 38px;
}

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

.section-heading h1,
.section-heading h2,
.split-section h2,
.pricing-teaser h2,
.placeholder-card h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.04em;
}

.section-heading p:not(.eyebrow),
.split-section p,
.pricing-teaser p,
.placeholder-card p {
  color: var(--ink-soft);
}

.section-accent .eyebrow {
  color: #ffb3a7;
}

.section-accent p {
  color: #d9e3eb;
}

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

.step-card,
.feature-card,
.price-card,
.form-card,
.placeholder-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(23, 50, 77, 0.06);
}

.step-card {
  padding: 25px;
}

.step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 900;
}

.step-card h3,
.feature-card h3 {
  margin-bottom: 8px;
}

.step-card p,
.feature-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

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

.feature-card {
  min-height: 210px;
  padding: 26px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 1.5rem;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 70px;
}

.check-card {
  display: grid;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
}

.check-card div {
  position: relative;
  padding: 13px 15px 13px 45px;
  background: var(--soft);
  border-radius: 14px;
  font-weight: 750;
}

.check-card div::before {
  content: "✓";
  position: absolute;
  left: 16px;
  color: var(--green);
  font-weight: 900;
}

.pricing-teaser {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.pricing-teaser h2 {
  max-width: 700px;
}

.text-link {
  font-weight: 850;
  text-decoration: none;
}

.light-link {
  color: white;
}

.placeholder-card {
  max-width: 800px;
  margin-inline: auto;
  padding: 48px;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  padding: 34px;
}

.price-card.featured {
  border: 2px solid var(--accent);
}

.price-label {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-card h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.price-description {
  min-height: 72px;
  color: var(--ink-soft);
}

.price-card ul {
  min-height: 200px;
  padding-left: 20px;
  color: var(--ink-soft);
}

.form-card {
  padding: 38px;
}

.form-card h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.form-intro,
.form-footer {
  color: var(--ink-soft);
}

form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
}

input:focus {
  outline: 3px solid rgba(220, 109, 92, 0.18);
  border-color: var(--accent);
}

.site-footer {
  padding: 54px 0 24px;
  background: #0f2539;
  color: white;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand .brand-mark {
  background: white;
  color: var(--ink);
}

.footer-brand .brand-text small,
.footer-note {
  color: #b8c7d4;
}

.footer-note {
  max-width: 440px;
  margin: 16px 0 0;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: #dbe5ec;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #99adbd;
  font-size: 0.84rem;
}

.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: 900px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 18px;
    right: 18px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 8px 4px;
  }

  .site-nav .nav-cta {
    text-align: center;
  }

  .hero-grid,
  .split-section,
  .pricing-teaser {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 45px;
  }

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

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

  .pricing-actions {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .section {
    padding: 64px 0;
  }

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

  .paper {
    transform: none;
  }

  .placeholder-card,
  .form-card,
  .price-card {
    padding: 26px;
  }

  .footer-grid {
    flex-direction: column;
  }
}


textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  resize: vertical;
  font: inherit;
}

textarea:focus {
  outline: 3px solid rgba(220, 109, 92, 0.18);
  border-color: var(--accent);
}

.narrow-copy {
  max-width: 760px;
}

.narrow-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.05em;
}

.narrow-copy p {
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.browse-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.search-field {
  flex: 1 1 320px;
  max-width: 520px;
}

.filter-chips {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.chip {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.chip.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

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

.browse-card {
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(23, 50, 77, 0.06);
}

.browse-card h2 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.browse-card p {
  color: var(--ink-soft);
}

.browse-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.browse-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.browse-meta span {
  padding: 6px 9px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 750;
}

.dashboard-section {
  padding-top: 56px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: 100px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.dashboard-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.dashboard-profile > div:last-child {
  display: grid;
}

.dashboard-profile span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 900;
}

.dashboard-nav {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.dashboard-nav a {
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink-soft);
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  background: var(--soft);
  color: var(--ink);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.dashboard-header h1 {
  margin-bottom: 8px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.05em;
}

.dashboard-header p:not(.eyebrow) {
  color: var(--ink-soft);
  max-width: 700px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
}

.stat-label {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.dashboard-panel {
  margin-top: 20px;
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.panel-heading h2 {
  margin-bottom: 6px;
}

.panel-heading p {
  color: var(--ink-soft);
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed #b9c7d2;
  border-radius: 18px;
  background: var(--background);
}

.large-empty {
  max-width: 760px;
  margin: 0 auto;
}

.empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 1.5rem;
  font-weight: 900;
}

.empty-state p {
  max-width: 600px;
  margin-inline: auto;
  color: var(--ink-soft);
}

.mini-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mini-feature-grid div {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--soft);
  font-weight: 750;
}

@media (max-width: 900px) {
  .browse-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }

  .dashboard-nav {
    grid-template-columns: repeat(4, 1fr);
  }

  .dashboard-nav a {
    text-align: center;
  }
}

@media (max-width: 620px) {
  .browse-grid,
  .dashboard-stats,
  .mini-feature-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header,
  .panel-heading {
    flex-direction: column;
  }

  .dashboard-nav {
    grid-template-columns: 1fr 1fr;
  }
}
