:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --paper: #fffdf8;
  --ink: #17201c;
  --muted: #58645e;
  --line: #ded8cd;
  --accent: #0d7b66;
  --accent-dark: #065645;
  --warm: #e7a746;
  --danger: #ad3b26;
  --shadow: 0 18px 40px rgba(32, 44, 39, 0.16);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid rgba(222, 216, 205, 0.7);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.brand {
  align-items: center;
  display: flex;
  font-weight: 800;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 34px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.hero {
  min-height: calc(100vh - 64px);
  overflow: hidden;
  position: relative;
}

.hero-media {
  background-image:
    linear-gradient(90deg, rgba(12, 35, 29, 0.88), rgba(12, 35, 29, 0.72) 46%, rgba(12, 35, 29, 0.28)),
    url("/assets/hero-cost-cut.png");
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
}

.hero-content {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 440px);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 64px);
  padding: clamp(44px, 7vw, 84px) clamp(18px, 4vw, 48px);
  position: relative;
  z-index: 1;
}

.hero-copy {
  color: #fff;
  max-width: 720px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.hero-copy .eyebrow {
  color: #ffd98b;
}

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

h1 {
  font-size: clamp(2.55rem, 5.2vw, 4.9rem);
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 24px;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  letter-spacing: 0;
  line-height: 1.18;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-lede {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  max-width: 620px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-points span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  padding: 8px 12px;
}

.signup-form {
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 30px);
}

.compact-form {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-top: 26px;
  padding: 0;
}

.mypage-add-form {
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  padding-bottom: 26px;
}

.form-heading h2 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.form-heading p,
.form-note,
.price-caption,
.owner-methods p,
.steps p {
  color: var(--muted);
}

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

.bot-field {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.turnstile-box {
  min-height: 65px;
}

.field input {
  background: #fff;
  border: 1px solid #cfc7ba;
  border-radius: 8px;
  color: var(--ink);
  min-height: 48px;
  padding: 12px 13px;
  width: 100%;
}

.field input:focus,
.check input:focus,
.primary-button:focus,
.secondary-button:focus {
  outline: 3px solid rgba(13, 123, 102, 0.28);
  outline-offset: 2px;
}

.check {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  font-size: 0.93rem;
}

.check input {
  accent-color: var(--accent);
  flex: 0 0 auto;
  height: 18px;
  margin-top: 5px;
  width: 18px;
}

.check a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
}

.primary-button,
.secondary-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  text-align: center;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

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

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.secondary-button {
  background: var(--ink);
  color: #fff;
  min-width: 180px;
}

.form-note {
  font-size: 0.88rem;
  margin-bottom: 0;
}

.form-result {
  border-radius: 8px;
  display: none;
  font-size: 0.95rem;
  padding: 12px;
}

.form-result.is-visible {
  display: block;
}

.form-result.success {
  background: #e7f3ee;
  border: 1px solid #9cccbc;
}

.form-result.error {
  background: #fff0ec;
  border: 1px solid #e0aa9a;
  color: var(--danger);
}

.form-result a {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: underline;
}

.section,
.section-band {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 48px);
}

.section-inner {
  margin: 0 auto;
  max-width: 1120px;
}

.section-band {
  background: #fff;
}

.section-muted {
  background: #eef4f0;
}

.problem-grid,
.price-layout,
.owner-layout {
  display: grid;
  gap: clamp(26px, 5vw, 60px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.plain-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  background: #f7f3eb;
  border-left: 5px solid var(--warm);
  border-radius: 8px;
  font-weight: 800;
  padding: 14px 16px;
}

.steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 32px;
}

.steps article,
.owner-methods article,
.price-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.steps span {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  margin-bottom: 18px;
  width: 34px;
}

.price-box {
  box-shadow: 0 14px 34px rgba(36, 72, 63, 0.12);
}

.price-label {
  color: var(--accent-dark);
  font-weight: 900;
  margin-bottom: 4px;
}

.price-row {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px 0;
}

.price-row:first-child {
  padding-top: 0;
}

.price-row + .price-row {
  border-bottom: 0;
}

.price {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 8px;
  white-space: nowrap;
}

.price span {
  color: var(--muted);
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  margin-left: 4px;
}

.price-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 16px 0 0;
}

.owner-methods {
  display: grid;
  gap: 14px;
}

.section-final {
  background: #14231f;
  color: #fff;
  padding-bottom: clamp(70px, 9vw, 112px);
}

.final-cta {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
}

.final-cta h2 {
  margin-bottom: 0;
}

.section-final .secondary-button {
  background: #fff;
  color: var(--ink);
}

.site-footer {
  background: #0f1d19;
  color: #fff;
  padding: 28px clamp(18px, 4vw, 56px);
}

.footer-inner {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin: 0 auto;
  max-width: 1120px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-weight: 800;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  margin-bottom: 0;
  white-space: nowrap;
}

.muted-button {
  background: #eef4f0;
  color: var(--ink);
}

.status-page,
.privacy-page {
  padding: clamp(26px, 5vw, 56px) clamp(18px, 4vw, 48px);
}

.status-shell,
.privacy-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 auto;
  max-width: 840px;
  padding: clamp(24px, 5vw, 44px);
}

.status-shell h1,
.privacy-shell h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-shell h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  margin-top: 34px;
}

.legal-shell a {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: underline;
}

.legal-date {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 34px;
}

.legal-mail {
  display: inline-block;
  font-size: 1.25rem;
  margin: 4px 0 10px;
}

.provider-table {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.provider-table div {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 14px 16px;
}

.provider-table span {
  color: var(--muted);
  font-weight: 900;
}

.provider-table strong {
  overflow-wrap: anywhere;
}

.status-list {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.status-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.status-row.is-warning strong {
  color: var(--danger);
}

.status-row.is-ready strong {
  color: var(--accent-dark);
}

.status-row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.status-row strong,
.status-row a {
  overflow-wrap: anywhere;
}

.config-list {
  margin-bottom: 18px;
}

.upload-placeholder {
  background: #f7f3eb;
  border: 1px dashed #bcae99;
  border-radius: 8px;
  margin-top: 22px;
  padding: 18px;
}

.preview-toolbar {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 20px;
}

.preview-toolbar h1 {
  margin-bottom: 8px;
}

.preview-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: min(72vh, 820px);
  width: 100%;
}

.admin-login-actions {
  margin: 28px 0;
}

.google-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(32, 44, 39, 0.1);
  display: inline-flex;
  font-weight: 900;
  gap: 12px;
  min-height: 52px;
  padding: 12px 18px;
}

.google-button span {
  align-items: center;
  background: #4285f4;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.admin-heading {
  align-items: start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.admin-heading h1 {
  margin-bottom: 8px;
}

.admin-request-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  padding: 18px;
}

.admin-card-heading {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-card-heading h2 {
  font-size: 1.24rem;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.admin-card-heading p {
  color: var(--muted);
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.admin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-badge {
  background: #e7f3ee;
  border: 1px solid #9cccbc;
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 4px 10px;
  white-space: nowrap;
}

.admin-badge.is-danger {
  background: #fff0ec;
  border-color: #e0aa9a;
  color: var(--danger);
}

.admin-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.admin-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-field strong {
  overflow-wrap: anywhere;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.billing-summary {
  background: #f7f2e8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.billing-summary strong {
  font-size: 0.9rem;
}

.billing-summary span {
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  .hero-content,
  .problem-grid,
  .price-layout,
  .owner-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    align-items: start;
    min-height: auto;
  }

  .hero-media {
    background-image:
      linear-gradient(180deg, rgba(12, 35, 29, 0.88), rgba(12, 35, 29, 0.74)),
      url("/assets/hero-cost-cut.png");
  }

  .signup-form {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.55rem, 8vw, 4rem);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .footer-inner p {
    white-space: normal;
  }

  .provider-table div {
    grid-template-columns: 1fr;
  }

  .admin-heading,
  .admin-card-heading {
    grid-template-columns: 1fr;
  }

  .preview-toolbar {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .admin-heading {
    flex-direction: column;
  }

  .admin-badges {
    justify-content: flex-start;
  }

  .admin-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-points {
    display: grid;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
