/* Selfie with a Sapling: the banner, the three-step submission pop-up and the
   standalone page. Markup lives in theme-detail.html and selfie-with-sapling.html;
   behaviour in assets/js/theme-sapling.js. */
:root {
  --sp-ink: #0d253d;
  --sp-body: #3d5068;
  --sp-muted: #6b7c92;
  --sp-line: #e1e8e4;
  --sp-green: #15803d;
  --sp-green-2: #166534;
  --sp-mint: #e9f7ee;
  --sp-mint-2: #d3f0dd;
  --sp-cream: #fbf8f1;
  --sp-gold: #e0a82e;
  --sp-red: #c2410c;
}

/* ---------------------------------------------------------------- banner */
.sapling-section { padding-top: 24px; padding-bottom: 24px; }
.sapling-banner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 0; overflow: hidden; border-radius: 26px; background: linear-gradient(135deg, #0f3d2e 0%, #14532d 55%, #166534 100%); color: #fff; box-shadow: 0 30px 70px rgba(15, 61, 46, .22); }
.sapling-banner-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(28px, 4vw, 52px); }
.sapling-banner-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #bbf7d0; font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.sapling-banner-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }
.sapling-banner h2, .sapling-banner h1 { margin: 0; color: #fff; font-size: clamp(32px, 4.2vw, 52px); font-weight: 500; line-height: 1.05; letter-spacing: -.025em; }
.sapling-banner-copy > p { max-width: 46ch; margin: 0; color: #d1fae5; font-size: 17px; line-height: 1.6; }
.sapling-banner ul { display: grid; gap: 10px; width: 100%; max-width: 420px; margin: 6px 0 4px; padding: 0; list-style: none; }
.sapling-banner li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: rgba(255, 255, 255, .06); color: #fff; font-size: 15px; }
.sapling-banner li b { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: #bbf7d0; color: var(--sp-green-2); font-size: 13px; font-weight: 700; }
.sapling-banner-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 15px 24px; border: 0; border-radius: 999px; background: #fff; color: var(--sp-green-2); font: inherit; font-size: 16px; font-weight: 650; cursor: pointer; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); transition: transform .2s, box-shadow .2s; }
.sapling-banner-cta:hover, .sapling-banner-cta:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0, 0, 0, .24); }
.sapling-banner-cta:focus-visible { outline: 3px solid #4ade80; outline-offset: 3px; }
.sapling-banner-cta span { transition: transform .2s; }
.sapling-banner-cta:hover span { transform: translateX(4px); }
.sapling-banner-visual { position: relative; min-height: 420px; }
.sapling-banner-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sapling-banner-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 61, 46, .55) 0%, rgba(15, 61, 46, 0) 32%); pointer-events: none; }
.sapling-sample-certificate { position: absolute; right: 22px; bottom: 22px; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 210px; padding: 16px 16px 18px; border: 6px double #d9c28b; border-radius: 6px; background: var(--sp-cream); color: var(--sp-ink); text-align: center; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); transform: rotate(3deg); }
.sapling-sample-certificate img { width: 70px; height: auto; margin-bottom: 2px; }
.sapling-sample-certificate small { color: var(--sp-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.sapling-sample-certificate strong { font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 600; }
.sapling-sample-certificate span { color: var(--sp-green); font-family: Georgia, serif; font-size: 18px; font-style: italic; }
.sapling-certificate-ready { position: absolute; left: 22px; top: 22px; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--sp-ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.sapling-certificate-ready i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sp-green); color: #fff; font-size: 13px; font-style: normal; font-weight: 700; }
.sapling-certificate-ready > span { display: flex; flex-direction: column; line-height: 1.2; }
.sapling-certificate-ready small { color: var(--sp-muted); font-size: 11px; }
.sapling-certificate-ready strong { font-size: 13px; font-weight: 650; }

.sapling-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.sapling-banner-actions .sapling-banner-cta { margin-top: 0; }
.sapling-banner-link { color: #bbf7d0; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.sapling-banner-link:hover { color: #fff; }

/* ---------------------------------------------------------------- pop-up */
html.sapling-open, body.sapling-open { overflow: hidden; }
.sapling-modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 24px; overflow-y: auto; background: radial-gradient(circle at 20% 10%, rgba(74, 222, 128, .25), transparent 40%), rgba(6, 28, 20, .78); backdrop-filter: blur(6px); animation: sp-fade .25s ease both; }
.sapling-modal[hidden] { display: none; }
.sapling-atmosphere { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.sapling-symbols { position: absolute; width: 0; height: 0; }
.sapling-drift { position: absolute; width: 90px; color: #86efac; opacity: .45; animation: sp-drift 14s ease-in-out infinite; }
.sapling-drift svg { width: 100%; height: auto; }
.sapling-drift b { position: absolute; right: -6px; top: 4px; color: #fde68a; font-size: 14px; }
.sapling-drift-one { left: 4%; top: 12%; }
.sapling-drift-two { right: 5%; top: 46%; width: 120px; animation-delay: -5s; }
.sapling-drift-three { left: 10%; bottom: 6%; width: 70px; animation-delay: -9s; }
.sapling-modal.is-motion-paused .sapling-drift { animation-play-state: paused; }

.sapling-modal-card { position: relative; width: min(720px, 100%); margin: auto; overflow: hidden; border-radius: 26px; background: #fff; box-shadow: 0 50px 120px rgba(0, 0, 0, .45); animation: sp-pop .35s cubic-bezier(.2, .8, .2, 1) both; }
.sapling-card-botanical { position: absolute; right: -10px; top: 10px; width: 150px; color: #bbf7d0; pointer-events: none; }
.sapling-card-botanical svg { width: 100%; height: auto; }
.sapling-light-point { position: absolute; color: #fde68a; font-size: 13px; font-weight: 700; animation: sp-twinkle 3s ease-in-out infinite; }
.sapling-light-point-one { left: 10px; top: 40px; }
.sapling-light-point-two { right: 30px; top: 120px; animation-delay: -1.5s; }
.sapling-modal-close { position: absolute; right: 16px; top: 16px; z-index: 4; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; transition: background .15s; }
.sapling-modal-close:hover, .sapling-modal-close:focus-visible { background: rgba(255, 255, 255, .3); }
.sapling-modal-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.sapling-modal-head { position: relative; padding: 32px 34px 28px; background: linear-gradient(135deg, #0f3d2e, #166534); color: #fff; }
.sapling-modal-head-copy > span { color: #bbf7d0; font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.sapling-modal-head h2 { margin: 8px 0 8px; color: #fff; font-size: clamp(26px, 3.4vw, 34px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.sapling-modal-head p { max-width: 44ch; margin: 0; color: #d1fae5; font-size: 15px; line-height: 1.55; }
.sapling-promise-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.sapling-promise-row > span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: rgba(255, 255, 255, .07); }
.sapling-promise-row b { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 10px; background: #bbf7d0; color: var(--sp-green-2); font-size: 13px; font-weight: 700; }
.sapling-promise-row .is-eta b { background: #fde68a; color: #854d0e; }
.sapling-promise-row i { display: flex; flex-direction: column; font-style: normal; line-height: 1.25; }
.sapling-promise-row strong { font-size: 13px; font-weight: 650; }
.sapling-promise-row small { color: #bbf7d0; font-size: 12px; }

.sapling-flow { position: relative; padding: 26px 34px 32px; }
.sapling-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.sapling-progress span { display: inline-flex; align-items: center; gap: 8px; color: var(--sp-muted); font-size: 14px; font-weight: 550; white-space: nowrap; }
.sapling-progress span b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--sp-line); background: #fff; color: var(--sp-muted); font-size: 13px; transition: all .2s; }
.sapling-progress span.is-active { color: var(--sp-ink); }
.sapling-progress span.is-active b { border-color: var(--sp-green); background: var(--sp-green); color: #fff; box-shadow: 0 0 0 5px var(--sp-mint); }
.sapling-progress span.is-complete b { border-color: var(--sp-green); background: var(--sp-mint); color: var(--sp-green); font-size: 0; }
.sapling-progress span.is-complete b::before { content: "✓"; font-size: 13px; }
.sapling-progress i { flex: 1; height: 2px; border-radius: 2px; background: var(--sp-line); }

.sapling-step { animation: sp-rise .3s ease both; }
.sapling-step[hidden] { display: none; }
.sapling-step-kicker { color: var(--sp-green); font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.sapling-step h3 { margin: 6px 0 8px; color: var(--sp-ink); font-size: 24px; font-weight: 550; letter-spacing: -.01em; }
.sapling-step > p { margin: 0 0 18px; color: var(--sp-body); font-size: 15px; line-height: 1.6; }
.sapling-step label { display: block; margin-bottom: 8px; color: var(--sp-ink); font-size: 14px; font-weight: 600; }
.sapling-inline-field { display: flex; gap: 10px; }
.sapling-step input[type="text"], .sapling-step input[type="email"] { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1.5px solid #cfd9d3; border-radius: 14px; background: #fff; color: var(--sp-ink); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.sapling-step input:focus { outline: none; border-color: var(--sp-green); box-shadow: 0 0 0 4px var(--sp-mint); }
.sapling-step input.is-invalid { border-color: var(--sp-red); box-shadow: 0 0 0 4px #ffedd5; }
.sapling-inline-field button, .sapling-primary-action, .sapling-download { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--sp-green); color: #fff; font: inherit; font-size: 15px; font-weight: 650; white-space: nowrap; cursor: pointer; transition: background .15s, transform .15s; }
.sapling-inline-field button:hover, .sapling-primary-action:hover, .sapling-download:hover { background: var(--sp-green-2); }
.sapling-inline-field button:disabled, .sapling-primary-action:disabled { opacity: .55; cursor: wait; }
.sapling-step button:focus-visible { outline: 3px solid #86efac; outline-offset: 2px; }
.sapling-status { min-height: 20px; margin: 10px 0 0; color: var(--sp-muted); font-size: 14px; line-height: 1.5; }
.sapling-status.is-error { color: var(--sp-red); }
.sapling-status.is-success { color: var(--sp-green); }
.sapling-otp-panel { margin-top: 18px; padding: 18px; border: 1px solid var(--sp-line); border-radius: 16px; background: #f7fbf8; animation: sp-rise .3s ease both; }
.sapling-otp-panel[hidden] { display: none; }
.sapling-otp-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sapling-otp-heading strong { display: block; color: var(--sp-ink); font-size: 15px; }
.sapling-otp-heading span { color: var(--sp-muted); font-size: 13px; }
.sapling-otp-heading button, #saplingResendOtp { padding: 0; border: 0; background: none; color: var(--sp-green); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sapling-otp-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sapling-demo-note { display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 999px; background: #fef3c7; color: #854d0e; font-size: 13px; }
.sapling-demo-note[hidden] { display: none; }

.sapling-eta-banner { display: flex; gap: 12px; margin-bottom: 16px; padding: 14px 16px; border-radius: 14px; background: #fef9e7; }
.sapling-eta-banner > span { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #fde68a; color: #854d0e; font-size: 18px; }
.sapling-eta-banner strong { display: block; color: var(--sp-ink); font-size: 14px; }
.sapling-eta-banner small { color: var(--sp-body); font-size: 13px; line-height: 1.5; }
.sapling-profile { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; padding: 16px; border: 1px solid var(--sp-line); border-radius: 16px; background: #f7fbf8; }
.sapling-profile > div span { display: block; color: var(--sp-muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.sapling-profile > div strong { color: var(--sp-ink); font-size: 15px; font-weight: 600; }
.sapling-profile p { grid-column: 1 / -1; display: flex; gap: 10px; margin: 4px 0 0; padding-top: 12px; border-top: 1px dashed #cfd9d3; color: var(--sp-body); font-size: 13px; line-height: 1.5; }
.sapling-profile p b { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--sp-mint-2); color: var(--sp-green); font-size: 12px; }
.sapling-email-field { margin-bottom: 16px; }
.sapling-email-field input { width: 100%; }
.sapling-email-field small { display: block; margin-top: 6px; color: var(--sp-muted); font-size: 13px; line-height: 1.5; }
.sapling-email-field.is-required label::after { content: " *"; color: var(--sp-red); }
.sapling-dropzone { position: relative; display: flex !important; flex-direction: column; align-items: center; gap: 6px; padding: 28px 20px; border: 2px dashed #a7d7b8; border-radius: 18px; background: var(--sp-mint); text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.sapling-dropzone:hover, .sapling-dropzone.is-dragging { border-color: var(--sp-green); background: var(--sp-mint-2); }
.sapling-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sapling-dropzone:focus-within { outline: 3px solid #86efac; outline-offset: 2px; }
.sapling-upload-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sp-green); color: #fff; font-size: 22px; }
.sapling-dropzone strong { color: var(--sp-ink); font-size: 15px; font-weight: 600; }
.sapling-dropzone small { color: var(--sp-muted); font-size: 13px; font-weight: 400; }
.sapling-dropzone em { margin-top: 4px; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--sp-green); font-size: 14px; font-style: normal; font-weight: 600; }
.sapling-preview-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sapling-preview-list:empty { display: none; }
.sapling-preview { position: relative; width: 120px; overflow: hidden; border-radius: 12px; border: 1px solid var(--sp-line); background: #fff; }
.sapling-preview img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.sapling-preview button { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(13, 37, 61, .75); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.sapling-preview span { display: block; padding: 6px 8px; overflow: hidden; color: var(--sp-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sapling-confirmation { display: flex !important; align-items: flex-start; gap: 10px; margin: 16px 0; font-weight: 400 !important; cursor: pointer; }
.sapling-confirmation input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--sp-green); }
.sapling-confirmation span { color: var(--sp-body); font-size: 14px; line-height: 1.5; }
.sapling-confirmation.is-invalid span { color: var(--sp-red); }
.sapling-primary-action { width: 100%; }
.sapling-privacy-note { display: block; margin-top: 12px; color: var(--sp-muted); font-size: 13px; line-height: 1.5; text-align: center; }

/* Review and certificate */
.sapling-certificate-step { text-align: left; }
.sapling-success-mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 50%; background: var(--sp-green); color: #fff; font-size: 24px; box-shadow: 0 0 0 8px var(--sp-mint); }
.sapling-success-mark.is-pending { background: var(--sp-gold); box-shadow: 0 0 0 8px #fef3c7; }
.sapling-success-mark.is-rejected { background: var(--sp-red); box-shadow: 0 0 0 8px #ffedd5; }
.sapling-pending-experience[hidden], .sapling-review-flow[hidden], #saplingReadyCertificate[hidden] { display: none; }
.sapling-pending-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; margin: 6px 0 20px; }
.sapling-pending-certificate { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 16px 22px; border: 6px double #d9c28b; border-radius: 6px; background: var(--sp-cream); color: var(--sp-ink); text-align: center; box-shadow: 0 16px 36px rgba(13, 37, 61, .12); }
.sapling-pending-certificate-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sapling-pending-certificate-brand img { width: 64px; }
.sapling-pending-certificate-brand span, .sapling-pending-certificate small { color: var(--sp-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.sapling-pending-certificate strong { color: var(--sp-green-2); font-family: Georgia, serif; font-size: 22px; font-style: italic; font-weight: 500; line-height: 1.1; }
.sapling-pending-recipient { color: var(--sp-body); font-size: 12px; }
.sapling-pending-recipient b { display: block; color: var(--sp-ink); font-family: Georgia, serif; font-size: 16px; }
.sapling-pending-certificate-sapling i { display: block; width: 24px; height: 30px; margin-top: 4px; border-radius: 0 100% 0 100%; background: #86efac; transform: rotate(-20deg); }
.sapling-awaiting-stamp { position: absolute; left: 50%; bottom: -14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fef3c7; color: #854d0e; font-size: 12px; font-weight: 600; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 6px 14px rgba(0, 0, 0, .1); }
.sapling-awaiting-stamp i, .sapling-live-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--sp-gold); animation: sp-pulse 1.6s ease-in-out infinite; }
.sapling-live-status { display: inline-flex; align-items: center; gap: 8px; color: #854d0e; font-size: 13px; font-weight: 600; }
.sapling-pending-summary h4 { margin: 8px 0 6px; color: var(--sp-ink); font-size: 18px; font-weight: 600; }
.sapling-pending-summary p { margin: 0 0 14px; color: var(--sp-body); font-size: 14px; line-height: 1.55; }
.sapling-email-delivery { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #f7fbf8; border: 1px solid var(--sp-line); }
.sapling-email-delivery > span { color: var(--sp-green); font-size: 18px; }
.sapling-email-delivery strong { display: block; color: var(--sp-ink); font-size: 14px; }
.sapling-email-delivery small { color: var(--sp-muted); font-size: 13px; }
.sapling-review-flow { padding: 18px; border: 1px solid var(--sp-line); border-radius: 16px; }
.sapling-review-flow h4 { margin: 0 0 14px; color: var(--sp-ink); font-size: 15px; font-weight: 600; }
.sapling-review-flow ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sapling-review-flow li { position: relative; display: flex; gap: 12px; }
.sapling-review-flow li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: -14px; width: 2px; background: var(--sp-line); }
.sapling-review-flow li b { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2px solid var(--sp-line); background: #fff; color: var(--sp-muted); font-size: 13px; z-index: 1; }
.sapling-review-flow li.is-complete b { border-color: var(--sp-green); background: var(--sp-green); color: #fff; }
.sapling-review-flow li.is-active b { border-color: var(--sp-gold); background: #fef3c7; color: #854d0e; }
.sapling-flow-state { display: block; color: var(--sp-muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sapling-review-flow strong { display: block; color: var(--sp-ink); font-size: 15px; }
.sapling-review-flow small { color: var(--sp-body); font-size: 13px; line-height: 1.5; }
.sapling-certificate-preview { margin: 0 0 14px; overflow: hidden; border-radius: 14px; border: 1px solid var(--sp-line); box-shadow: 0 16px 36px rgba(13, 37, 61, .12); }
.sapling-certificate-preview img { display: block; width: 100%; height: auto; }
.sapling-certificate-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sapling-share, .sapling-whatsapp { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px; border: 1.5px solid var(--sp-line); border-radius: 14px; background: #fff; color: var(--sp-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.sapling-whatsapp { border-color: #bbf7d0; color: #128c4a; }
.sapling-share:hover, .sapling-whatsapp:hover { border-color: var(--sp-green); }
.sapling-start-over { display: block; margin: 20px auto 0; padding: 10px 22px; border: 1.5px solid var(--sp-line); border-radius: 999px; background: #fff; color: var(--sp-body); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }

/* Toast */
.sapling-toast { position: absolute; left: 16px; right: 16px; top: 16px; z-index: 5; display: flex; align-items: flex-start; gap: 10px; max-width: 420px; margin: 0 auto; padding: 12px 14px; border-radius: 14px; background: var(--sp-ink); color: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); animation: sp-rise .25s ease both; }
.sapling-toast[hidden] { display: none; }
.sapling-toast-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: #fde68a; color: #854d0e; font-size: 13px; font-weight: 700; }
.sapling-toast p { flex: 1; margin: 0; }
.sapling-toast strong { display: block; font-size: 14px; }
.sapling-toast span { color: #cbd5e1; font-size: 13px; }
.sapling-toast button { border: 0; background: none; color: #fff; font-size: 20px; cursor: pointer; }

/* ---------------------------------------------------------- standalone page
   One centred form over a looping planting video with a green tint. */
.sp-page { background: #0f3d2e; }
.sp-hero { position: relative; display: grid; min-height: calc(100vh - 110px); overflow: hidden; isolation: isolate; }
.sp-hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.sp-hero-tint { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 50, 30, .06) 0%, rgba(8, 46, 28, .14) 48%, rgba(8, 40, 25, .34) 100%); }
.sp-hero-inner { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: clamp(280px, 40vh, 360px); padding-bottom: clamp(28px, 6vh, 64px); }
.sp-form-card { width: min(560px, 100%); padding: 6px; border-radius: 26px; background: linear-gradient(180deg, #b9dc96 0%, #d8ecc5 100%); box-shadow: 0 40px 100px rgba(0, 0, 0, .35); }
.sp-form-card > * { position: relative; }
.sp-form-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 24px 16px; border-radius: 21px 21px 0 0; background: linear-gradient(180deg, #cfe8b3 0%, #eaf5df 100%); }
.sp-form-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: #fff; color: var(--sp-green); box-shadow: 0 4px 12px rgba(21, 128, 61, .14); }
.sp-form-icon svg { width: 22px; height: 22px; }
.sp-page .sp-form-head h1 { margin: 0 0 4px !important; color: #0f2e1f !important; font-size: 22px !important; font-weight: 600 !important; letter-spacing: -.01em !important; line-height: 1.2 !important; max-width: none !important; }
.sp-form-head p { margin: 0; color: #3b5446; font-size: 14px; line-height: 1.5; }
.sp-goal { padding: 16px 24px 18px; background: #eaf5df; border-top: 1px solid rgba(77, 127, 37, .15); }
.sp-goal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp-goal-tag { color: #3b5446; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sp-goal-tag a { color: #166534; text-decoration: underline; text-underline-offset: 3px; }
.sp-goal-pct { padding: 3px 10px; border-radius: 999px; background: #fff; color: #166534; font-size: 13px; font-weight: 700; }
.sp-goal-numbers { margin: 6px 0 4px; color: #3b5446; font-size: 15px; }
.sp-goal-numbers small { display: block; margin-top: 2px; color: #5b7365; font-size: 12px; }
.sp-goal-numbers strong { color: #0f2e1f; font-size: 28px; font-weight: 650; letter-spacing: -.01em; }
.sp-goal-numbers span { color: #5b7365; }
.sp-goal-bar { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(77, 127, 37, .15); }
.sp-goal-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4d7f25, #8fbf5a); animation: sp-fill 1.4s cubic-bezier(.2, .7, .2, 1) both; transform-origin: left; }
.sp-goal-cta strong { color: #166534; }
.sp-goal-cta { margin: 8px 0 0; color: #1f3a2a; font-size: 13.5px; font-weight: 550; line-height: 1.45; }
.sp-goal-cta small { color: #5b7365; font-weight: 400; }
@keyframes sp-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.sp-form { display: grid; gap: 16px; padding: 22px 24px 26px; border-radius: 0 0 21px 21px; background: #fff; }
.sp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sp-field { display: grid; gap: 7px; min-width: 0; }
.sp-field label, .sp-label-text { color: #1f2d27; font-size: 14px; font-weight: 550; }
.sp-field label small { color: var(--sp-muted); font-weight: 400; }
.sp-input input { width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1.5px solid #dce5df; border-radius: 12px; background: #fff no-repeat 14px center / 18px; color: var(--sp-ink); font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.sp-input input::placeholder { color: #94a3a0; }
.sp-input input:focus { outline: none; border-color: #6fa83d; box-shadow: 0 0 0 4px #e7f3dc; }
.sp-input input[aria-invalid="true"], .sp-form.was-validated .sp-input input:invalid { border-color: var(--sp-red); }
.sp-input.is-user input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E"); }
.sp-input.is-phone input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.sp-input.is-mail input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.sp-input.is-id input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='M6 16c.6-1.3 1.7-2 3-2s2.4.7 3 2M15 10h3M15 13h3'/%3E%3C/svg%3E"); }
.sp-input.is-pin input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.sp-id-field { display: flex; align-items: stretch; height: 50px; overflow: hidden; border: 1.5px solid #dce5df; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.sp-id-field:focus-within { border-color: #6fa83d; box-shadow: 0 0 0 4px #e7f3dc; }
.sp-id-field.is-invalid { border-color: var(--sp-red); box-shadow: 0 0 0 4px #ffedd5; }
.sp-id-prefix { display: flex; align-items: center; padding: 0 10px 0 16px; border-right: 1.5px solid #dce5df; background: #f4f8f1; color: #5b7365; font-size: 15px; font-weight: 600; letter-spacing: .02em; user-select: none; }
.sp-id-field input { flex: 1; min-width: 0; padding: 0 14px 0 12px; border: 0; background: transparent; color: var(--sp-ink); font: inherit; font-size: 16px; letter-spacing: .04em; }
.sp-id-field input:focus { outline: none; }
.sp-validate { height: 50px; margin-top: 4px; border: 0; border-radius: 12px; background: #0f2e1f; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s; }
.sp-validate:hover { background: #16422c; }
.sp-validate:focus-visible { outline: 3px solid #b9dc96; outline-offset: 2px; }
.sp-validate.is-valid { background: #e7f3dc; color: #166534; }
.sp-input.is-locked input { background-color: #f4f8f1; color: #3b5446; letter-spacing: .06em; cursor: default; }
.sp-input.is-locked input:focus { border-color: #dce5df; box-shadow: none; }
.sp-id-status.is-error { color: var(--sp-red); }
.sp-id-status.is-valid { color: #166534; }
.sp-reveal { display: grid; gap: 16px; padding-top: 4px; border-top: 1px dashed #dce5df; animation: sp-rise .35s ease both; }
.sp-reveal[hidden] { display: none; }
.sp-hint { margin: 0; color: var(--sp-muted); font-size: 12.5px; line-height: 1.45; }
.sp-required { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-size: 11px; font-style: normal; font-weight: 650; letter-spacing: .02em; vertical-align: 1px; }
.sp-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed #b9d4a3; border-radius: 14px; background: #f6faf1; cursor: pointer; transition: border-color .15s, background .15s; }
.sp-drop:hover, .sp-drop:focus-within { border-color: #6fa83d; background: #eef6e5; }
.sp-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sp-drop-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: #fff; color: #4d7f25; box-shadow: 0 2px 8px rgba(21, 128, 61, .1); }
.sp-drop-icon svg { width: 20px; height: 20px; }
.sp-drop-text { display: grid; gap: 2px; min-width: 0; }
.sp-drop-text strong { overflow: hidden; color: #1f2d27; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sp-drop-text small { color: var(--sp-muted); font-size: 12.5px; line-height: 1.4; }
.sp-drop.has-file { border-style: solid; border-color: #6fa83d; }
.sp-drop.has-file .sp-drop-icon { background: #8fbf5a; color: #10301c; }
.sp-consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.sp-consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: #4d7f25; }
.sp-consent span { color: var(--sp-body); font-size: 13px; line-height: 1.5; }
.sp-submit { height: 50px; border: 0; border-radius: 999px; background: #8fbf5a; color: #10301c; font: inherit; font-size: 16px; font-weight: 650; cursor: pointer; transition: background .15s, transform .15s; }
.sp-submit:hover { background: #7cad48; }
.sp-submit:active { transform: translateY(1px); }
.sp-submit:focus-visible { outline: 3px solid #b9dc96; outline-offset: 3px; }
.sp-submit:disabled { cursor: wait; opacity: .8; }

@keyframes sp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sp-pop { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sp-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sp-drift { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-24px) rotate(4deg); } }
@keyframes sp-twinkle { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes sp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (max-width: 900px) {
  .sapling-banner { grid-template-columns: 1fr; }
  .sapling-banner-visual { min-height: 320px; order: -1; }
  .sapling-banner-visual::after { background: linear-gradient(0deg, rgba(15, 61, 46, .6) 0%, rgba(15, 61, 46, 0) 40%); }
}
@media (max-width: 640px) {
  .sp-row { grid-template-columns: 1fr; }
  .sp-hero-video { object-fit: cover; object-position: 50% 0; }
  .sp-hero-inner { padding-top: clamp(280px, 42vh, 360px); padding-left: 12px; padding-right: 12px; }
  .sp-form-head { padding: 18px 18px 14px; }
  .sp-form { padding: 18px 18px 22px; }
  .sp-goal { padding: 14px 18px 16px; }
  .sapling-modal { padding: 0; align-items: end; }
  .sapling-modal-card { width: 100%; border-radius: 22px 22px 0 0; }
  .sapling-modal-head { padding: 26px 20px 22px; }
  .sapling-flow { padding: 22px 20px 28px; }
  .sapling-promise-row { grid-template-columns: 1fr; }
  .sapling-inline-field { flex-direction: column; }
  .sapling-profile, .sapling-pending-showcase { grid-template-columns: 1fr; }
  .sapling-sample-certificate { width: 170px; right: 14px; bottom: 14px; }
  .sapling-progress span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .sapling-modal, .sapling-modal-card, .sapling-step, .sapling-otp-panel, .sapling-toast { animation: none; }
  .sp-goal-bar i, .sp-reveal { animation: none; }
  .sapling-drift, .sapling-light-point, .sapling-awaiting-stamp i, .sapling-live-status i { animation: none; }
}

/* ------------------------------------------------- theme page banner (.sb)
   Quiet and centred: the forest video, heavily shaded, behind one message. */
.sb { position: relative; display: grid; place-items: center; min-height: clamp(280px, 28vw, 330px); overflow: hidden; isolation: isolate; border-radius: 28px; background: #0c2218; color: #fff; text-align: center; }
.sb-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: saturate(1.15); transition: opacity 1.4s ease; }
.sb-video.is-ready { opacity: .7; }
.sb-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 45%, rgba(8, 44, 26, .5) 0%, rgba(8, 40, 24, .78) 100%); }
.sb-content { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 720px; padding: clamp(24px, 3.4vw, 36px) 24px; box-sizing: border-box; }
.sb-eyebrow { margin: 0 0 10px; color: rgba(255, 255, 255, .82); font-size: 15px; font-weight: 500; letter-spacing: .01em; }
.sb h2 { margin: 0; color: #fff; font-size: clamp(34px, 5vw, 52px); font-weight: 600; line-height: 1.06; letter-spacing: -.035em; text-align: center; }
.sb-lead { max-width: 34ch; margin: 12px 0 0; text-align: center; color: rgba(255, 255, 255, .82); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.4; letter-spacing: -.01em; }
.sb-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0 24px; width: 100%; margin-top: 20px; }
.sb-button { grid-column: 2; }
.sb-link { grid-column: 3; justify-self: start; }
.sb-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; background: #fff; color: #0c2218; font-size: 17px; font-weight: 600; letter-spacing: -.005em; text-decoration: none; transition: transform .2s, background .2s; }
.sb-button:hover { background: #eef6ea; transform: scale(1.02); }
.sb-button:focus-visible, .sb-link:focus-visible { outline: 3px solid #86efac; outline-offset: 3px; }
.sb-link { color: #b9e8c4; font-size: 17px; font-weight: 500; text-decoration: none; }
.sb-link span { display: inline-block; transition: transform .2s; }
.sb-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.sb-link:hover span { transform: translateX(3px); }
.sb-stat { margin: 20px 0 0; text-align: center; color: rgba(255, 255, 255, .6); font-size: 14px; }
.sb-stat strong { color: #fff; font-weight: 600; }
@media (max-width: 640px) {
  .sb { border-radius: 22px; min-height: 320px; }
  .sb-actions { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .sb-button, .sb-link { grid-column: 1; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { .sb-video { display: none; } }
.home-sapling { padding: 28px 0 36px; }

/* Theme page and homepage share the taller banner. */
#saplingExperience .sb, .home-sapling .sb { min-height: clamp(400px, 38vw, 480px); }
#saplingExperience .sb-content, .home-sapling .sb-content { padding-top: clamp(40px, 5vw, 60px); padding-bottom: clamp(40px, 5vw, 60px); }
#saplingExperience .sb h2, .home-sapling .sb h2 { font-size: clamp(36px, 5.4vw, 60px); }
#saplingExperience .sb-actions, .home-sapling .sb-actions { margin-top: 28px; }
#saplingExperience .sb-stat, .home-sapling .sb-stat { margin-top: 28px; }
@media (max-width: 640px) { #saplingExperience .sb, .home-sapling .sb { min-height: 440px; } }
