@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/manrope-latin-800-normal.woff2") format("woff2"); }

:root {
  --navy: #14213d;
  --navy-2: #1b2a4a;
  --orange: #3f9e4a; /* Karihome green (variable name kept from the shared template) */
  --orange-dark: #2f7f39;
  --cream: #f6fbf4;
  --peach: #eef8ec;
  --peach-border: #cfe9c8;
  --ink: #14213d;
  --muted: #5d6679;
  --line: #ece5de;
  --input: #d8dce3;
  --white: #fff;
  --danger: #d93a2b;
  --radius-card: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1314px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid #f1ebe5; position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-mark { display: inline-flex; align-items: center; gap: 1px; font-weight: 800; font-size: 34px; letter-spacing: -0.035em; color: #0e3a8c; }
.brand-mark svg { width: 38px; height: 40px; margin-top: -12px; }
.brand-sub { margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.22em; color: var(--orange); }
.nav { display: flex; gap: 40px; font-weight: 700; font-size: 16px; }
.nav a:hover { color: var(--orange); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--orange); color: var(--white); border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0 28px; height: 58px; border-radius: 10px;
  box-shadow: 0 8px 18px -8px rgba(63, 158, 74, .5);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--orange-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Page head ---------- */
main { padding: 64px 0 132px; }
.back-link { display: inline-flex; gap: 4px; color: var(--orange); font-weight: 700; font-size: 16px; }
.back-link:hover, .link:hover { text-decoration: underline; }
.eyebrow {
  display: inline-block; margin-top: 44px; padding-top: 2px;
  border-top: 2px solid var(--orange);
  color: var(--orange); font-weight: 800; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
}
.page-title { margin: 18px 0 20px; font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.page-title span { color: var(--orange); }
.lede { margin: 0 0 46px; font-size: 20px; color: var(--muted); }

/* ---------- Layout ---------- */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 516px); gap: 34px; align-items: start; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 40px; box-shadow: 0 18px 40px -30px rgba(20, 33, 61, .25);
}
.card h2 { margin: 0; font-size: 31px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.card-sub { margin: 4px 0 20px; color: var(--muted); font-size: 16px; }

/* ---------- Form ---------- */
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 11px; font-weight: 700; font-size: 16px; }
.input, .select, .textarea {
  width: 100%; height: 57px; padding: 0 17px;
  border: 1px solid var(--input); border-radius: 8px; background: var(--white);
  font: inherit; font-size: 16px; font-weight: 600; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: #8a92a2; font-weight: 700; }
.textarea { height: 80px; padding-top: 16px; resize: vertical; }
.select {
  appearance: none; font-weight: 700; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2314213d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(63, 158, 74, .15); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.row-2 + .field { margin-top: 12px; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.error-msg { display: none; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--danger); }
.has-error .error-msg { display: block; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 26px 0 0; font-size: 15px; line-height: 1.65; cursor: pointer; }
.check + .check { margin-top: 20px; }
.check input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--orange); cursor: pointer; }
.check a { color: var(--orange); }
.check.has-error { color: var(--danger); }

.notice {
  margin: 24px 0 0; padding: 20px 22px;
  background: #eef8ec; border-left: 3px solid var(--orange);
  font-size: 15px; line-height: 1.8; color: #2a3550;
}
.form-alert { display: none; margin: 16px 0 0; padding: 14px 18px; border-radius: 10px; background: #fdecea; color: var(--danger); font-weight: 600; font-size: 15px; }
.form-alert.show { display: block; }
.pay-btn { height: 64px; padding: 0 31px; margin-top: 0; border-top-left-radius: 0; }
.fine { margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.fine.gap { margin-top: 26px; }
.link { color: var(--orange); font-weight: 700; }

/* ---------- Summary ---------- */
.summary-product { display: flex; gap: 22px; align-items: center; margin: 28px 0 34px; }
.product-tile {
  flex: none; width: 172px; height: 172px; border-radius: 16px;
  border: 1px dashed #b9e0b0; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px;
  box-shadow: 0 16px 30px -18px rgba(20, 33, 61, .25);
}
.product-tile svg { width: 44px; height: 44px; margin-bottom: 14px; color: var(--orange); }
.product-tile strong { font-size: 13px; }
.product-tile small { margin-top: 10px; font-size: 10px; font-weight: 600; color: #8c5a3b; line-height: 1.5; }
.product-name { margin: 0 0 4px; font-size: 19px; font-weight: 700; line-height: 1.6; }
.product-meta { margin: 0; color: var(--muted); font-size: 16px; line-height: 2; }
.product-meta.qty { color: var(--ink); }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); font-size: 17px; }
.sum-row b { font-weight: 800; }
.sum-total { padding: 20px 0 22px; font-size: 27px; font-weight: 800; letter-spacing: -0.01em; }
.sum-note { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }

.sandbox-card { margin-top: 24px; padding: 32px; background: var(--peach); border: 1px solid var(--peach-border); border-radius: var(--radius-card); }
.sandbox-card h3 { margin: 0 0 12px; font-size: 27px; font-weight: 500; letter-spacing: -0.02em; }
.sandbox-card p { margin: 0 0 6px; color: var(--muted); font-size: 16px; line-height: 1.85; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d0dd; padding: 88px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.95fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { display: inline-flex; align-items: flex-start; font-weight: 800; font-size: 36px; letter-spacing: -0.05em; color: var(--white); line-height: 1; }
.footer-logo i { width: 7px; height: 7px; margin-left: 2px; border-radius: 50%; background: var(--orange); }
.footer-brand p { margin: 18px 0 0; font-size: 16px; line-height: 1.75; }
.site-footer h4 { margin: 0 0 20px; color: var(--white); font-size: 17px; font-weight: 800; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--white); font-size: 16px; font-weight: 500; }
.footer-links a:hover { color: var(--orange); }
.footer-q a { color: var(--white); font-size: 16px; font-weight: 500; }
.footer-q p { margin: 16px 0 0; font-size: 15px; line-height: 1.75; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 34px; font-size: 15px; line-height: 1.75; }
.footer-bottom p { margin: 0 0 10px; }
.footer-rule { max-width: 1370px; margin: 0 auto; }

/* ---------- Result page ---------- */
.result-card { max-width: 720px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.status-pill.paid { background: #e6f6ec; color: #1b7a43; }
.status-pill.pending { background: var(--peach); color: var(--orange-dark); }
.status-pill.failed { background: #fdecea; color: var(--danger); }
.kv { margin: 26px 0 0; }
.kv .sum-row:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .site-header .container { height: 72px; }
  .brand-mark { font-size: 26px; }
  .brand-mark svg { width: 30px; height: 32px; }
  .brand-sub { font-size: 9px; }
  .site-header .btn { height: 44px; padding: 0 16px; font-size: 12px; }
  main { padding: 40px 0 80px; }
  .lede { font-size: 17px; }
  .card, .sandbox-card { padding: 26px 20px; }
  .card h2 { font-size: 26px; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .row-2 .field { margin-bottom: 22px; }
  .summary-product { flex-direction: column; align-items: flex-start; }
  .pay-btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
