@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --background: #f3f4ff;
  --background-alt: #eef1ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --foreground: #101127;
  --muted: #4a5373;
  --muted-alt: #6c7394;
  --accent: #6366f1;
  --accent-strong: #4f46e5;
  --accent-soft: rgba(99, 102, 241, 0.14);
  --border: rgba(15, 23, 42, 0.08);
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.18);
  --shadow-card: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-outline: 0 0 0 1px rgba(99, 102, 241, 0.16);
  --max-width: 1040px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background: radial-gradient(circle at top left, var(--background) 0%, #ffffff 55%, var(--background-alt) 100%);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--accent-strong);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--foreground);
}

p,
li {
  color: var(--muted);
}

main {
  display: block;
}

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  position: relative;
  gap: 20px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--foreground);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--foreground);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover {
  box-shadow: var(--shadow-outline);
  transform: translateY(-1px);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  padding: 140px 0 110px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -15% -35% auto;
  height: 70%;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 70px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.hero-grid--single {
  grid-template-columns: minmax(0, 720px);
}

.hero-copy h1 {
  font-size: clamp(2.9rem, 5vw, 4rem);
  margin-bottom: 18px;
}

.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--accent-strong);
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: var(--accent-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.button-secondary {
  background: var(--surface);
  color: var(--foreground);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.button-secondary:hover {
  background: #ffffff;
}

.intro {
  padding: 24px 0 90px;
}

.intro-compact {
  padding-top: 0;
}

.highlights {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.highlights article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.highlights h2 {
  margin-top: 0;
  font-size: 1.45rem;
}

.more {
  font-weight: 600;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
}

.more::after {
  content: "\2192";
  transition: transform 0.2s ease;
}

.more:hover::after {
  transform: translateX(3px);
}

.page-content {
  padding: 90px 0;
}

.page-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.page-header p {
  font-size: 1.05rem;
}

.page-section {
  margin-bottom: 48px;
}

.page-disclaimer {
  margin-bottom: 36px;
}

.disclaimer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
}

.disclaimer-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.disclaimer-card p {
  margin: 0;
}

.disclaimer-card p + p {
  margin-top: 10px;
}

.hidden {
  display: none !important;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid label {
  display: flex;
  flex-direction: column;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-outline);
}

.form-grid label span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.6rem;
}

.form-grid input,
.form-grid select {
  font: inherit;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: var(--foreground);
}

.form-grid input:focus,
.form-grid select:focus {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.price-check-code {
  margin: 22px 0 18px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.price-check-code__title {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.price-check-code__description {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.price-check-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  max-width: 760px;
  margin: 0 auto;
}

.price-check-card h2 {
  margin-top: 0;
}

.price-check-description {
  margin: 8px 0 24px;
  color: var(--muted);
}

.price-check-form {
  display: grid;
  gap: 1.5rem;
}

.price-check-form .button {
  justify-self: start;
}

.field-hint {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted-alt);
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted-alt);
}

.price-check-status {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.price-check-feedback {
  margin-top: 20px;
  padding: 20px 24px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(34, 197, 94, 0.08);
  box-shadow: var(--shadow-outline);
}

.price-check-feedback__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.price-check-feedback__body {
  margin: 8px 0 16px;
  color: var(--muted);
}

.price-check-feedback__meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.price-check-feedback__meta-item {
  background: rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.price-check-feedback__meta dt {
  font-weight: 600;
  margin: 0;
  color: var(--foreground);
}

.price-check-feedback__meta dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.price-check-error {
  margin-top: 20px;
  padding: 20px 24px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: var(--radius-lg);
  background: rgba(248, 113, 113, 0.1);
  color: #7f1d1d;
  font-weight: 500;
}

.price-check-pricing {
  margin-top: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 20px;
}

.price-check-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.96rem;
}

.price-check-table th,
.price-check-table td {
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 12px 14px;
  text-align: left;
}

.price-check-table thead {
  background: rgba(15, 23, 42, 0.05);
  font-weight: 600;
}

.price-check-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.035);
}

.price-check-recommendation {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.site-footer {
  background: #0b1120;
  color: #e2e8f0;
  padding: 48px 0;
  margin-top: 80px;
}

.site-footer small {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.haiku-sketch-page {
  --bg: #f3efe3;
  --paper: #fff9ee;
  --ink: #1d2a24;
  --muted: #6d6b5f;
  --accent: #b25d3b;
  --line: #d7cdbb;
  --panel: linear-gradient(180deg, rgba(255, 249, 238, 0.95), rgba(244, 235, 216, 0.93));
  --shadow: 0 24px 60px rgba(51, 43, 30, 0.14);
  padding: 18px;
  min-height: calc(100vh - 88px);
  background:
    radial-gradient(circle at top left, rgba(178, 93, 59, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(46, 92, 74, 0.18), transparent 24%),
    linear-gradient(160deg, #ebe4d3, var(--bg));
}

.haiku-sketch-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
}

.haiku-sketch-page .panel,
.haiku-sketch-page .poem-card {
  background: var(--panel);
  border: 1px solid rgba(88, 74, 55, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.haiku-sketch-page .panel {
  padding: 20px;
}

.haiku-sketch-page .eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.haiku-sketch-page h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  font-weight: 600;
  color: var(--ink);
}

.haiku-sketch-page .meta,
.haiku-sketch-page .dataset {
  color: var(--muted);
}

.haiku-sketch-page .controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0 0 14px;
}

.haiku-sketch-page label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--ink);
}

.haiku-sketch-page select,
.haiku-sketch-page button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 252, 245, 0.95);
}

.haiku-sketch-page button {
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #844528);
  color: #fff8f0;
  border: 0;
  font-weight: 600;
  transition: transform 140ms ease, box-shadow 140ms ease;
  box-shadow: 0 14px 30px rgba(132, 69, 40, 0.28);
}

.haiku-sketch-page button:hover {
  transform: translateY(-1px);
}

.haiku-sketch-page .panel-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.haiku-sketch-page .dataset {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(88, 74, 55, 0.12);
  font-size: 0.82rem;
}

.haiku-sketch-page .poem-card {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}

.haiku-sketch-page .poem-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.15), transparent 40%),
    radial-gradient(circle at top right, rgba(178, 93, 59, 0.14), transparent 24%);
  pointer-events: none;
}

.haiku-sketch-page .poem-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  min-height: 160px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.haiku-sketch-page .poem-line {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.haiku-sketch-page .poem-card--inline {
  min-height: 0;
}

@media (max-width: 900px) {
  .hero {
    padding: 120px 0 90px;
  }
}

@media (max-width: 720px) {
  .site-header .container {
    padding: 16px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .site-nav.open {
    max-height: 260px;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    width: 100%;
    padding: 10px 0;
  }

  .hero {
    padding: 100px 0 72px;
  }

  .hero-grid {
    gap: 40px;
  }

  .disclaimer-card {
    padding: 20px 22px;
  }

  .price-check-code {
    padding: 18px 20px;
  }
}

@media (max-width: 640px) {
  .price-check-card {
    padding: 24px;
  }

  .price-check-form {
    gap: 1.25rem;
  }

  .price-check-feedback,
  .price-check-error {
    padding: 18px;
  }

  .price-check-table th,
  .price-check-table td {
    padding: 10px 12px;
  }

  .haiku-sketch-page {
    padding: 12px;
  }

  .haiku-sketch-page .panel {
    padding: 16px;
  }

  .haiku-sketch-page .controls {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .haiku-sketch-page .poem-card {
    padding: 16px;
  }

  .haiku-sketch-page .poem-stack {
    min-height: 132px;
  }

  .haiku-sketch-page .dataset {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
