/* Cooksmart Routine Maintenance landing page */

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans, "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif);
  color: #1E1F21;
  background: #EDEEF0;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
::placeholder { color: #9A9CA0; }
a { color: #00AEEF; text-decoration: none; }
a:hover { color: #0090C7; }

.page { padding: 40px 24px; min-height: 100vh; }
.card {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #E2E4E7;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(30,31,33,0.10);
  overflow: hidden;
}

/* Masthead */
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 24px 48px; border-bottom: 1px solid #E2E4E7;
}
.logo-cooksmart { height: 36px; width: auto; }
.masthead-meta {
  text-align: right; font-size: 11px; color: #74767A;
  letter-spacing: 0.04em; line-height: 1.6;
}

/* Title block */
.title-block { padding: 40px 48px 32px; }
.logo-rational { display: block; height: 46px; width: auto; margin: 0 0 18px; }
.title-block h1 {
  font-size: 42px; line-height: 1.04; letter-spacing: -0.025em;
  font-weight: 800; margin: 18px 0 0; color: #1E1F21;
}
.eyebrow {
  font-size: 17px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: #74767A; margin-top: 8px;
}
.tagline {
  font-size: 20px; font-weight: 700; line-height: 1.35; margin-top: 22px;
}
.tagline-accent { color: #F1592A; }
.lede {
  font-size: 15px; line-height: 1.65; color: #58585A;
  margin: 12px 0 0; max-width: 620px;
}
.lede strong { color: #1E1F21; }

/* Snapshot */
.snapshot {
  margin: 0 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #E2E4E7;
  border-radius: 12px;
  overflow: hidden;
  background: #F7F8F9;
}
.snapshot-cell { padding: 18px 22px; border-right: 1px solid #E2E4E7; }
.snapshot-cell:last-child { border-right: 0; }
.snapshot-label {
  font-size: 11px; font-weight: 700; color: #74767A;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.snapshot-value {
  font-size: 22px; font-weight: 800; color: #1E1F21;
  margin-top: 6px; letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.price { color: #F1592A; }
.price-period { font-size: 12px; color: #74767A; font-weight: 400; }

/* Two-col */
.two-col {
  padding: 36px 48px 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.section-eyebrow {
  font-size: 12px; font-weight: 700; color: #F1592A;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px;
}
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: #3C3D3F; line-height: 1.4;
}
.check-item strong { color: #1E1F21; }
svg.check {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  fill: none; stroke: #F1592A; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.benefits { display: flex; flex-direction: column; gap: 14px; }
.benefit-title { font-size: 14px; font-weight: 700; color: #1E1F21; }
.benefit-body { font-size: 13px; color: #74767A; line-height: 1.5; margin-top: 2px; }

/* Signup heading */
.signup-heading {
  margin: 24px 48px 0;
  border-top: 2px solid #1E1F21;
  padding-top: 28px;
}
.signup-heading h2 {
  font-size: 24px; font-weight: 700; color: #1E1F21;
  margin: 6px 0 0; letter-spacing: -0.01em;
}
.signup-heading p { font-size: 14px; color: #58585A; margin: 8px 0 0; }

.total-price-box {
  margin-top: 18px;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  background: #FDEAE2;
  border: 1px solid #F1592A;
  border-radius: 10px;
  max-width: 100%;
}
.total-price-label {
  font-size: 11px; font-weight: 700; color: #74767A;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.total-price-value {
  font-size: 24px; font-weight: 800; color: #F1592A; letter-spacing: -0.01em;
}
.total-price-period { font-size: 13px; color: #58585A; }

/* Form */
.signup-form { padding: 24px 48px 48px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px; font-weight: 600; color: #58585A; letter-spacing: 0.02em;
}
.optional { color: #9A9CA0; font-weight: 400; }
.cs-field {
  font-family: inherit; font-size: 15px; color: #1E1F21;
  padding: 11px 13px; border: 1px solid #CFD1D4; border-radius: 10px;
  background: #fff; outline: none; width: 100%;
  transition: box-shadow 160ms, border-color 160ms;
}
.cs-field:focus { border-color: #00AEEF; box-shadow: 0 0 0 3px rgba(0,174,239,0.25); }
.cs-field.cs-err { border-color: #D9413A; box-shadow: 0 0 0 3px rgba(217,65,58,0.16); }

.field-error {
  font-size: 12px; color: #D9413A; min-height: 1em;
}
.field-error:empty { display: none; }
.field-error-block { display: block; margin-top: 8px; }

.field-hint {
  font-size: 12px; color: #74767A;
}

.qty-field { max-width: 220px; margin-bottom: 20px; }
.cs-field-qty { width: 110px; }

/* File field */
.file-field { margin-top: 16px; }
.file-drop {
  display: flex; align-items: center; gap: 14px;
  border: 1px dashed #CFD1D4; border-radius: 10px;
  padding: 14px 16px; cursor: pointer;
  transition: border-color 140ms, background 140ms;
}
.file-drop:hover { border-color: #00AEEF; background: #F7F8F9; }
.file-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: #E0F5FE; color: #00AEEF;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.file-icon svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.file-text { flex: 1; min-width: 0; }
.file-name {
  display: block; font-size: 14px; font-weight: 600; color: #1E1F21;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-hint { display: block; font-size: 12px; color: #74767A; margin-top: 2px; }
.file-drop input[type=file] { display: none; }

/* Agree box */
.agree {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 20px; padding: 15px 16px;
  background: #F7F8F9; border: 1px solid #E2E4E7;
  border-radius: 10px; cursor: pointer;
  font-size: 13px; color: #58585A; line-height: 1.55;
}
.agree.err { border-color: #D9413A; }
.agree input[type=checkbox] {
  width: 18px; height: 18px; margin-top: 1px;
  accent-color: #F1592A; cursor: pointer; flex-shrink: 0;
}

/* Form-level error */
.form-error {
  margin-top: 14px; padding: 10px 14px;
  background: #FDECEB; border: 1px solid #F5B5B1;
  border-radius: 8px; color: #9A211B; font-size: 13px;
}

/* Submit */
.submit-btn {
  font-family: inherit; font-weight: 700; font-size: 16px;
  color: #fff; background: #F1592A; border: none;
  border-radius: 10px; padding: 15px; cursor: pointer;
  width: 100%; margin-top: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 140ms;
}
.submit-btn:hover:not(:disabled) { background: #D84918; }
.submit-btn:disabled { opacity: 0.7; cursor: default; }
.submit-btn .arrow {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.confidential {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12px; color: #74767A; margin-top: 14px;
}
.confidential svg {
  width: 14px; height: 14px; fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* Honeypot */
.hp {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

/* Success */
.success { padding: 40px 48px 48px; text-align: center; }
.success-check {
  width: 66px; height: 66px; border-radius: 999px;
  background: #E8F7EE; color: #2BA86A;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.success-check svg {
  width: 32px; height: 32px; fill: none; stroke: currentColor;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.success h3 {
  font-size: 26px; font-weight: 700; color: #1E1F21;
  margin: 0; letter-spacing: -0.01em;
}
.success p {
  font-size: 15px; color: #58585A; line-height: 1.6;
  margin: 12px auto 0; max-width: 440px;
}
.success-ref {
  font-size: 13px; color: #74767A; margin-top: 18px;
}
.success-ref span {
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
  color: #1E1F21;
}
.reset-btn {
  font-family: inherit; font-weight: 600; font-size: 15px;
  color: #1E1F21; background: #fff; border: 1px solid #CFD1D4;
  border-radius: 10px; padding: 11px 22px; cursor: pointer; margin-top: 24px;
}
.reset-btn:hover { background: #F7F8F9; }

/* State toggling */
.card[data-state="form"] [data-role="success-state"] { display: none; }
.card[data-state="success"] [data-role="form-state"] { display: none; }

/* Footer */
.footer-strip {
  background: #1E1F21; color: #fff;
  padding: 22px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 720px) {
  .page { padding: 20px 12px; }
  .masthead, .title-block, .snapshot, .signup-form, .signup-heading,
  .success, .footer-strip { padding-left: 24px; padding-right: 24px; }
  .snapshot { margin-left: 24px; margin-right: 24px; }
  .signup-heading { margin-left: 24px; margin-right: 24px; }
  .title-block h1 { font-size: 32px; }
  .two-col { grid-template-columns: 1fr; gap: 28px; padding-left: 24px; padding-right: 24px; }
  .snapshot { grid-template-columns: 1fr; }
  .snapshot-cell { border-right: 0; border-bottom: 1px solid #E2E4E7; }
  .snapshot-cell:last-child { border-bottom: 0; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .page { padding: 0; }
  .card { border-radius: 0; border-left: 0; border-right: 0; }

  .masthead, .title-block, .snapshot, .two-col, .signup-form,
  .signup-heading, .success, .footer-strip {
    padding-left: 16px; padding-right: 16px;
  }
  .snapshot, .signup-heading { margin-left: 16px; margin-right: 16px; }

  .masthead { padding-top: 18px; padding-bottom: 18px; gap: 12px; }
  .logo-cooksmart { height: 28px; }
  .masthead-meta { font-size: 10px; }

  .title-block { padding-top: 28px; padding-bottom: 24px; }
  .logo-rational { height: 36px; }
  .title-block h1 { font-size: 26px; }
  .eyebrow { font-size: 13px; letter-spacing: 0.14em; }
  .tagline { font-size: 17px; }
  .lede { font-size: 14px; }

  .snapshot-value { font-size: 18px; }
  .price-period { font-size: 11px; }

  .two-col { padding-top: 28px; gap: 24px; }

  .signup-heading h2 { font-size: 20px; }
  .total-price-value { font-size: 20px; }

  .qty-field { max-width: 100%; }

  .file-drop { padding: 12px; gap: 10px; }

  .success { padding-left: 20px; padding-right: 20px; }
  .success h3 { font-size: 22px; }

  .footer-strip { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 18px; padding-bottom: 18px; }
}
