:root {
  --ink: #11100e;
  --paper: #f3efe5;
  --paper-deep: #e8e1d4;
  --orange: #ff5a1f;
  --orange-dark: #d9420d;
  --muted: #6c685f;
  --line: rgba(17, 16, 14, 0.18);
  --display: Helvetica, "Helvetica Neue", Arial, sans-serif;
  --body: Helvetica, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: 0.11;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: 0.64; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }

.sample-ribbon {
  height: 32px;
  padding: 0 5vw;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: 700 10px/1 var(--display);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sample-ribbon span {
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(17, 16, 14, 0.13);
}

.checkout-header {
  height: 74px;
  padding: 0 5vw;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}

.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.brand-mark { position: relative; width: 30px; height: 30px; display: inline-block; background: var(--ink); overflow: hidden; transform: skewY(-8deg); }
.brand-mark i { position: absolute; width: 24px; height: 18px; right: -8px; bottom: -5px; background: var(--orange); transform: rotate(-38deg); }
.brand-mark b { position: absolute; width: 5px; height: 23px; background: var(--paper); left: 12px; top: 8px; transform: rotate(42deg); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 0.9; max-width: 100px; }
.brand-name strong { color: var(--orange-dark); }

.secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.secure-note span { color: #34a853; font-size: 10px; }

.checkout-shell {
  min-height: calc(100vh - 106px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(520px, 0.95fr);
}

.order-panel, .payment-panel { position: relative; }
.order-panel { background: var(--paper); border-right: 1px solid var(--ink); }
.payment-panel { min-width: 0; overflow: hidden; background: var(--paper-deep); display: grid; place-items: center; padding: 64px clamp(28px, 3.5vw, 58px); }

.panel-index {
  position: absolute;
  top: 28px;
  left: 22px;
  color: var(--orange-dark);
  font: 800 9px/1 var(--display);
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
}
.panel-index-dark { color: var(--muted); }

.order-content {
  width: min(700px, 100%);
  margin: 0 auto;
  padding: clamp(68px, 8vh, 112px) clamp(48px, 7vw, 112px) 72px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--orange-dark);
  font: 800 10px/1 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font: 700 clamp(44px, 4.5vw, 72px)/0.91 var(--display);
  letter-spacing: -0.055em;
}
h1 em { color: var(--orange); font-style: normal; }

.intro {
  max-width: 590px;
  margin: 28px 0 38px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.plan-switch { display: grid; gap: 12px; }
.plan-option {
  position: relative;
  min-height: 92px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.34);
  color: var(--ink);
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 15px;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.plan-option:hover { transform: translateX(4px); border-color: var(--ink); }
.plan-option.is-selected {
  border-color: var(--ink);
  background: #fffaf1;
  box-shadow: 5px 5px 0 var(--ink);
}

.choice-dot {
  width: 17px;
  height: 17px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.plan-option.is-selected .choice-dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.plan-copy { display: grid; gap: 3px; }
.plan-copy strong { font: 750 20px/1 var(--display); }
.plan-copy small, .plan-price small { color: var(--muted); font-size: 11px; }
.plan-price { display: grid; justify-items: end; gap: 2px; }
.plan-price b { font: 750 22px/1 var(--display); letter-spacing: -0.03em; }
.saving-flag {
  position: absolute;
  right: 16px;
  top: -10px;
  padding: 5px 8px;
  background: var(--orange);
  border: 1px solid var(--ink);
  font: 800 9px/1 var(--display);
  letter-spacing: 0.08em;
}

.what-you-get { margin-top: 42px; }
.what-you-get > span { font: 800 10px/1 var(--display); letter-spacing: 0.13em; text-transform: uppercase; }
.what-you-get ul { list-style: none; padding: 0; margin: 17px 0 0; border-top: 1px solid var(--line); }
.what-you-get li { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; }
.what-you-get i { color: var(--orange-dark); font: 800 9px/1 var(--display); font-style: normal; }

.payment-card {
  width: 100%;
  max-width: 570px;
  min-width: 0;
  padding: clamp(28px, 3.2vw, 44px);
  background: #fffdf8;
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 var(--orange);
  animation: card-in 520ms cubic-bezier(.2,.8,.2,1) both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(16px); } }

.payment-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; padding-bottom: 25px; border-bottom: 1px solid var(--ink); }
.payment-heading .eyebrow { margin-bottom: 9px; }
.payment-heading h2 { margin: 0; font: 750 clamp(26px, 2.5vw, 38px)/1 var(--display); letter-spacing: -0.04em; }
.summary-price { display: grid; justify-items: end; text-align: right; gap: 5px; }
.summary-price strong { font: 750 24px/1 var(--display); letter-spacing: -0.03em; }
.summary-price span { color: var(--muted); font-size: 10px; }

.annual-equivalent {
  margin: 17px 0 25px;
  padding: 11px 13px;
  background: rgba(255,90,31,0.1);
  border-left: 3px solid var(--orange);
  color: #4e493f;
  font-size: 11px;
  line-height: 1.45;
}
.annual-equivalent[hidden] { display: none; }

.mock-payment-form { display: grid; gap: 17px; }
.mock-payment-form[hidden] { display: none; }
.mock-payment-form label { display: grid; gap: 7px; }
.mock-payment-form label > span, fieldset legend { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.mock-payment-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(17,16,14,0.28);
  border-radius: 0;
  background: white;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.mock-payment-form input:focus { outline: none; border-color: var(--ink); box-shadow: inset 3px 0 0 var(--orange); }
.mock-payment-form input::placeholder { color: #a29d93; }

fieldset { margin: 0; padding: 0; border: 0; }
fieldset legend { margin-bottom: 8px; }
.card-field { display: grid; grid-template-columns: 1fr 1fr; }
.card-field label { gap: 0; }
.card-field label span { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.card-field input { border-top: 0; }
.card-field label:nth-child(2) input { border-right: 0; }
.card-number { grid-column: 1 / -1; position: relative; }
.card-number input { border-top: 1px solid rgba(17,16,14,0.28); }
.card-number i { position: absolute; right: 12px; top: 17px; font: 800 10px/1 var(--display); font-style: normal; letter-spacing: 0.05em; }

.pay-button {
  min-height: 58px;
  margin-top: 5px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 800 11px/1 var(--display);
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--orange);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.pay-button:hover { background: var(--orange); color: var(--ink); transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.pay-button > span:last-child { font-size: 19px; }

.terms { margin: 1px 0 0; color: var(--muted); text-align: center; font-size: 9px; line-height: 1.55; }

.stripe-demo-area { min-height: 420px; }
.stripe-demo-area[hidden] { display: none; }
.sandbox-badge {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 10px;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font: 800 9px/1 var(--display);
  letter-spacing: 0.12em;
}
.sandbox-badge span { width: 7px; height: 7px; border-radius: 50%; background: #635bff; }
.stripe-loading {
  min-height: 260px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 11px;
}
.stripe-loading[hidden] { display: none; }
.stripe-loading span {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(99, 91, 255, 0.18);
  border-top-color: #635bff;
  border-radius: 50%;
  animation: stripe-spin 700ms linear infinite;
}
@keyframes stripe-spin { to { transform: rotate(360deg); } }
.stripe-error, .stripe-success {
  margin: 16px 0;
  padding: 16px;
  border-left: 4px solid var(--orange);
  background: rgba(255, 90, 31, 0.09);
  color: #4e493f;
  font-size: 12px;
  line-height: 1.5;
}
.stripe-error[hidden], .stripe-success[hidden] { display: none; }
.stripe-success { border-left-color: #34a853; background: rgba(52, 168, 83, 0.09); }
.stripe-success strong, .stripe-success span { display: block; }
.stripe-success strong { margin-bottom: 4px; font: 750 16px/1.2 var(--display); color: var(--ink); }
#stripe-checkout:empty { display: none; }
.sandbox-help {
  margin: 18px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
}
.sandbox-help strong { color: var(--ink); }
.trust-row { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font: 800 8px/1 var(--display); letter-spacing: 0.09em; }

.sample-toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  width: min(390px, calc(100vw - 32px));
  padding: 17px 19px;
  background: var(--ink);
  color: white;
  border-left: 5px solid var(--orange);
  box-shadow: 8px 8px 0 rgba(255,90,31,.7);
  animation: toast-in 260ms ease both;
}
.sample-toast strong, .sample-toast span { display: block; }
.sample-toast strong { font: 750 15px/1.2 var(--display); }
.sample-toast span { margin-top: 4px; color: #c9c3b8; font-size: 11px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 1040px) {
  .checkout-shell { grid-template-columns: 1fr; }
  .order-panel { border-right: 0; border-bottom: 1px solid var(--ink); }
  .order-content { width: min(780px, 100%); }
  .payment-panel { min-height: 760px; }
}

@media (max-width: 620px) {
  .sample-ribbon { height: auto; min-height: 34px; padding: 8px 14px; text-align: center; line-height: 1.35; }
  .checkout-header { height: 66px; padding: 0 18px; }
  .secure-note { font-size: 0; }
  .secure-note span { font-size: 12px; }
  .order-content { padding: 65px 25px 56px 36px; }
  h1 { font-size: 44px; }
  .intro { font-size: 14px; }
  .plan-option { min-height: 88px; padding: 18px 14px; grid-template-columns: 18px 1fr auto; }
  .plan-copy strong { font-size: 18px; }
  .plan-price b { font-size: 18px; }
  .payment-panel { min-height: 0; padding: 62px 20px 76px 32px; }
  .payment-card { padding: 26px 20px; box-shadow: 7px 7px 0 var(--orange); }
  .payment-heading { display: grid; gap: 18px; }
  .summary-price { justify-items: start; text-align: left; }
  .trust-row { flex-wrap: wrap; justify-content: center; }
  .sample-toast { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
