:root {
  --bg: #f4efe7;
  --bg-deep: #e7ddd0;
  --surface: #fffdf8;
  --surface-strong: #f9f1e4;
  --brand: #0d5c63;
  --brand-deep: #093f4a;
  --brand-soft: #d8f0ef;
  --accent: #b7792b;
  --accent-soft: #f7ead7;
  --ink: #1b1d1b;
  --muted: #5d625d;
  --line: #d7cbb9;
  --shadow: 0 18px 48px rgba(46, 36, 22, 0.08);
}

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

html,
body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: "Sora", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(13, 92, 99, 0.1), transparent 30%),
    radial-gradient(circle at bottom left, rgba(183, 121, 43, 0.12), transparent 28%),
    linear-gradient(180deg, #fbf8f3 0%, var(--bg) 100%);
}

body {
  min-height: 100vh;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(215, 203, 185, 0.85);
  background: rgba(251, 248, 243, 0.86);
  backdrop-filter: blur(14px);
}

.inner {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.logo span {
  color: var(--brand);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.nav a {
  color: #30403d;
  font-weight: 600;
}

.nav a.active {
  color: var(--brand);
}

main {
  flex: 1;
  padding: 2rem 0 4rem;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #cce5e4;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  border-radius: 12px;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px rgba(13, 92, 99, 0.2);
}

.button.primary:hover {
  background: var(--brand-deep);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.85);
}

.button.secondary:hover {
  background: #fffaf2;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #fff;
}

.button.full {
  width: 100%;
}

.hero-grid,
.split-hero,
.auth-layout,
.dashboard-layout,
.grid-3,
.pricing-grid,
.summary-grid,
.cta-grid {
  display: grid;
  gap: 1.1rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.9fr);
  align-items: start;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #143b43 0%, #0d5c63 56%, #2f8b8d 100%);
  color: #fff;
  border-radius: 28px;
  padding: 2.2rem;
  box-shadow: 0 24px 60px rgba(20, 46, 51, 0.2);
}

.hero-panel h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.98;
  max-width: 10ch;
  margin-top: 1rem;
}

.hero-panel p {
  margin-top: 1rem;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.04rem;
}

.hero-actions,
.row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 1.35rem;
}

.hero-list,
.feature-list,
.check-list,
.simple-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.72rem;
}

.hero-list li,
.feature-list li,
.check-list li,
.simple-list li {
  display: flex;
  gap: 0.68rem;
  align-items: flex-start;
}

.hero-list li::before,
.feature-list li::before,
.check-list li::before,
.simple-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 0.42rem;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 auto;
}

.side-card,
.panel,
.card,
.plan,
.metric,
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.side-card,
.panel,
.card,
.plan {
  padding: 1.35rem;
}

.side-card {
  align-self: start;
  display: grid;
  gap: 0.9rem;
}

.metric {
  padding: 1rem 1.05rem;
  background: var(--surface-strong);
  box-shadow: none;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.28rem;
}

.metric-value {
  font-size: 1.18rem;
  font-weight: 700;
}

.section {
  margin-top: 1.5rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head p,
.card p,
.plan p {
  color: var(--muted);
  line-height: 1.65;
}

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

.split-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  margin-bottom: 1.25rem;
}

.intro-block {
  padding: 1.7rem 0 0.4rem;
}

.intro-block h1,
.auth-card h1,
.panel-dark h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  margin: 0.9rem 0 0.8rem;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.plan.highlight {
  border-color: #d5b57b;
  background: linear-gradient(180deg, #fff8eb 0%, #fffdf8 100%);
  transform: translateY(-8px);
}

.plan-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #70430b;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.price {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price span {
  font-size: 1rem;
  color: var(--muted);
  margin-left: 0.3rem;
}

.notice {
  padding: 1rem 1.1rem;
}

.notice.success {
  background: #ebf7f0;
  border-color: #b4d7c0;
}

.notice.warn {
  background: #fff3e2;
  border-color: #e4c79a;
}

.notice strong {
  display: block;
  margin-bottom: 0.3rem;
}

.auth-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
  align-items: start;
}

.auth-aside {
  background: linear-gradient(150deg, #17323c 0%, #0d5c63 100%);
  color: #fff;
}

.auth-aside p,
.auth-aside li,
.panel-dark p,
.panel-dark .muted,
.panel-dark .status {
  color: rgba(255, 255, 255, 0.84);
}

.field + .field {
  margin-top: 0.95rem;
}

label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.38rem;
}

input {
  width: 100%;
  border: 1px solid #cdbda6;
  background: #fffefb;
  color: var(--ink);
  border-radius: 12px;
  padding: 0.78rem 0.85rem;
  font: inherit;
}

.helper-links {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
  font-size: 0.94rem;
}

.status {
  margin-top: 0.95rem;
  min-height: 1.3em;
  color: #33403d;
  font-size: 0.95rem;
}

.dashboard-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  align-items: start;
}

.dashboard-main,
.dashboard-side {
  display: grid;
  gap: 1rem;
}

.panel-dark {
  background: linear-gradient(160deg, #17323c 0%, #20545c 100%);
  color: #fff;
  border-color: transparent;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.summary-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.summary-card span {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.74);
}

.summary-card strong {
  font-size: 1.05rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.8rem 0.2rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.cta-band {
  margin-top: 1.5rem;
  padding: 1.4rem;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff8eb 0%, #fffdf8 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cta-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.site-footer {
  border-top: 1px solid rgba(215, 203, 185, 0.85);
  padding: 1.4rem 0 2rem;
  background: rgba(255, 251, 245, 0.7);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .split-hero,
  .auth-layout,
  .dashboard-layout,
  .pricing-grid,
  .grid-3,
  .summary-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .plan.highlight {
    transform: none;
  }
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-panel,
  .side-card,
  .panel,
  .card,
  .plan,
  .cta-band {
    border-radius: 18px;
    padding: 1.2rem;
  }

  .inner {
    width: min(100% - 1rem, 1140px);
  }
}
