@font-face {
  font-family: "Baloo Local";
  src: url("./assets/fonts/baloo2-800.ttf") format("truetype");
  font-weight: 800;
}

@font-face {
  font-family: "Nunito Local";
  src: url("./assets/fonts/nunito-800.ttf") format("truetype");
  font-weight: 800;
}

:root {
  --yellow: #ffc83d;
  --green: #1f8f4e;
  --orange: #f59e0b;
  --cream: #fff7e1;
  --paper: #fffdf7;
  --ink: #2a211b;
  --muted: #77695d;
  --line: rgba(42, 33, 27, 0.13);
  --shadow: 0 24px 70px rgba(74, 46, 27, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 200, 61, 0.34), transparent 28%),
    radial-gradient(circle at 92% 16%, rgba(31, 143, 78, 0.18), transparent 30%),
    linear-gradient(135deg, #fff4c8, #fffdf7 44%, #eefbf2);
  font-family: "Nunito Local", "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.checkout-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 56px;
}

.checkout-nav,
.checkout-hero,
.checkout-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.checkout-nav {
  position: sticky;
  top: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 18px;
}

.brand,
.nav-link {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 1000;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.nav-link,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: white;
  background: var(--green);
  font-weight: 1000;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(31, 143, 78, 0.22);
}

.nav-link {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.88rem;
}

.checkout-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
  align-items: center;
  margin: 18px 0;
  padding: clamp(22px, 5vw, 46px);
  border-radius: 28px;
}

.checkout-hero img {
  width: min(100%, 220px);
  justify-self: center;
  filter: drop-shadow(0 24px 34px rgba(74, 46, 27, 0.18));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Baloo Local", "Nunito Local", sans-serif;
  letter-spacing: 0;
  line-height: 0.95;
}

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(2.55rem, 8vw, 5.4rem);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.trust-row span,
.price-badge {
  width: fit-content;
  padding: 8px 11px;
  border-radius: 999px;
  background: #eaf7ef;
  color: #146c3a;
  font-size: 0.8rem;
  font-weight: 1000;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.checkout-card {
  border-radius: 24px;
  padding: clamp(18px, 3vw, 28px);
}

.checkout-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #4a3324;
  font-weight: 1000;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(42, 33, 27, 0.16);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
  outline: none;
}

input:focus {
  border-color: rgba(31, 143, 78, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 143, 78, 0.1);
}

.plan-box,
.oto-box,
.payment-note,
.success-box {
  border: 1px solid rgba(255, 200, 61, 0.42);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff8d9, #f4fff7);
}

.plan-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
}

.plan-box p,
.oto-box small {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
}

.check-row input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: var(--green);
}

.summary-card {
  position: sticky;
  top: 88px;
}

.line-item,
.total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.total-line {
  margin-bottom: 16px;
  border-bottom: 0;
  font-size: 1.12rem;
}

.total-line strong {
  font-family: "Baloo Local", sans-serif;
  font-size: 2rem;
}

.payment-note,
.success-box {
  padding: 16px;
}

.success-box {
  margin-top: 14px;
}

.success-box strong {
  color: var(--green);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.form-status[data-state="success"] {
  color: var(--green);
}

.form-status[data-state="error"] {
  color: #b42318;
}

@media (max-width: 820px) {
  .checkout-shell {
    width: min(100% - 22px, 560px);
    padding-bottom: 36px;
  }

  .checkout-hero,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-hero {
    padding: 24px 18px;
  }

  .checkout-hero img {
    width: 150px;
  }

  .summary-card {
    position: static;
  }

  .plan-box {
    grid-template-columns: 1fr;
  }
}
