:root {
  --paper: #f3eee4;
  --paper-2: #fffdf8;
  --ink: #211c16;
  --muted: #5e564c;
  --line: rgba(33, 28, 22, 0.16);
  --red: #9d342c;
  --red-deep: #7d261f;
  --green: #1c6a43;
  --serif: "Noto Serif Bengali", "Noto Sans Bengali", serif;
  --sans: "Anek Bangla", "Noto Sans Bengali", "Nirmala UI", sans-serif;
  --latin: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --shadow: 0 18px 50px rgba(70, 48, 20, 0.07);
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  background:
    radial-gradient(900px 420px at -10% -20%, rgba(157, 52, 44, 0.08), transparent 55%),
    radial-gradient(700px 380px at 110% 0%, rgba(141, 107, 58, 0.1), transparent 50%),
    var(--paper);
  color-scheme: light;
}

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--red-deep);
  outline-offset: 3px;
}

img, svg { display: block; }

button, input, textarea { font: inherit; color: inherit; }

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.spine {
  position: fixed;
  inset: 0 auto 0 0;
  width: 52px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  background: #e7dfd0;
  border-right: 2px solid var(--red);
}

.spine span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #f8f4ec, #cfc4b2 72%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.page {
  margin-left: 52px;
  padding: 8px clamp(20px, 4vw, 64px) 88px;
}

.wrap { max-width: 1120px; margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  margin: 0 0 12px;
  background: rgba(243, 238, 228, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--latin);
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-size: 1.08rem;
}

.nav { display: flex; align-items: center; gap: 18px; }

.nav a {
  text-decoration: none;
  font-weight: 600;
}

.nav-cta {
  border: 1px solid var(--ink);
  padding: 8px 12px;
}

.nav-cta:hover { background: var(--ink); color: var(--paper); }

.hero { padding: 28px 0 64px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.78fr);
  gap: 48px;
  align-items: start;
}

.kicker {
  margin: 0 0 14px;
  color: var(--red-deep);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero .kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero .kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
}

h1 { margin: 0; font-weight: inherit; }

.domain {
  display: block;
  font-family: var(--latin);
  font-optical-sizing: auto;
  font-weight: 650;
  font-size: clamp(2.5rem, 5.5vw, 5.15rem);
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.domain .name,
.domain .tld { display: inline-block; }

.domain .tld {
  font-style: italic;
  font-weight: 560;
  color: var(--red);
}

.bn-title {
  display: block;
  margin-top: 0.28em;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.25;
}

.lead {
  max-width: 38rem;
  margin: 18px 0 0;
  font-size: 1.18rem;
}

.en-line {
  max-width: 38rem;
  margin: 8px 0 0;
  font-family: var(--latin);
  font-style: italic;
  font-weight: 560;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.btn.secondary { background: transparent; color: var(--ink); }

.btn:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}

.btn.secondary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.more { margin: 14px 0 0; }

.more a {
  color: var(--red-deep);
  font-weight: 700;
  text-underline-offset: 3px;
}

.trust {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.slip {
  position: relative;
  margin-top: 12px;
  padding: 18px 22px 8px 26px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  box-shadow: var(--shadow);
}

.stamp {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--red);
  background: rgba(255, 253, 248, 0.94);
  box-shadow:
    inset 0 0 0 2px var(--red),
    inset 0 0 0 5px #fffdf8,
    inset 0 0 0 7px var(--red);
  transform: rotate(-11deg);
  text-align: center;
  line-height: 1.05;
}

.stamp strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
}

.stamp span { font-size: 0.78rem; font-weight: 700; }

.stamp em {
  font-family: var(--latin);
  font-size: 0.68rem;
  font-style: italic;
  letter-spacing: 0.08em;
}

.slip-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  min-height: 108px;
  padding: 0 124px 8px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.slip-head strong { color: var(--ink); }

.rows { list-style: none; margin: 0; padding: 0; }

.rows li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px dashed rgba(33, 28, 22, 0.22);
}

.rows span { color: var(--muted); }

.rows b {
  font-weight: 650;
  text-align: right;
}

.is-open { color: var(--green); }

.block {
  padding: 68px 0;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 0.35em;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 700;
  line-height: 1.25;
}

.intro {
  max-width: 38rem;
  margin: 0 0 28px;
  color: var(--muted);
}

.meanings, .steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.meanings article, .step {
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}

.meanings h3, .step h3 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
}

.gloss {
  margin: 2px 0 8px;
  font-family: var(--latin);
  font-style: italic;
  color: var(--muted);
}

.meanings p:last-child, .step p { margin: 0; }

.step .n {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--red);
  font-weight: 700;
}

.buyer {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 16rem) minmax(0, 1fr);
  gap: 8px 20px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.buyers { border-bottom: 1px solid var(--line); }

.idx {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--red-deep);
  font-weight: 700;
}

.buyer h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 700;
}

.buyer .gloss { margin: 0; }

.buyer p:last-child { margin: 0; }

.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.15fr);
  gap: 42px;
  align-items: start;
}

.price-line { margin: 18px 0; }

.price-line strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
}

.assure { margin: 0; padding: 0; list-style: none; }

.assure li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.channels { margin-top: 18px; }

.form-card {
  position: relative;
  padding: 22px 22px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  box-shadow: var(--shadow);
}

.form-card h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 1.45rem;
}

.field { display: block; margin: 0 0 12px; }

.field > span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(33, 28, 22, 0.35);
  border-radius: 0;
  padding: 10px 0;
}

.field textarea {
  min-height: 110px;
  padding: 12px;
  border: 1px solid rgba(33, 28, 22, 0.28);
  background: rgba(255, 255, 255, 0.45);
  resize: vertical;
}

.field input:focus,
.field textarea:focus { border-color: var(--red); outline: none; }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--red); }

.field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fffdf8 inset;
  -webkit-text-fill-color: var(--ink);
}

.err {
  display: block;
  min-height: 1.15em;
  color: var(--red-deep);
  font-size: 0.82rem;
}

.amount-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.currency {
  display: flex;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(33, 28, 22, 0.35);
  min-height: 46px;
}

.currency label {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 14px;
  cursor: pointer;
}

.currency input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}

.currency label:has(input:checked) {
  background: var(--ink);
  color: var(--paper);
}

.currency label:has(input:focus-visible) { outline: 2px solid var(--red-deep); outline-offset: 2px; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.fine {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ready {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.ready h3 { margin-bottom: 8px; }

.ready pre {
  margin: 0 0 14px;
  padding: 14px 16px;
  font-family: inherit;
  white-space: pre-wrap;
  background: rgba(243, 238, 228, 0.65);
  border-left: 3px solid var(--red);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--latin);
  font-weight: 650;
}

.dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--paper);
}

.dock strong {
  display: block;
  font-family: var(--latin);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.dock span { color: #d9cbb8; font-size: 0.85rem; }

.dock .btn {
  min-height: 42px;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.dock .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

@media (max-width: 980px) {
  .spine { display: none; }
  .page { margin-left: 0; }
  body { border-top: 6px solid var(--red); padding-bottom: 86px; }
  .hero-grid, .offer-grid { grid-template-columns: 1fr; }
  .dock { display: flex; }
  body.at-offer .dock { transform: translateY(110%); }
  .hero { padding-top: 18px; }
}

@media (max-width: 800px) {
  .meanings, .steps { grid-template-columns: 1fr; }
  .block { padding: 48px 0; }
}

@media (max-width: 700px) {
  .nav a:not(.nav-cta) { display: none; }
  .buyer { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .buyer p:last-child { grid-column: 2; }
  .slip-head { min-height: 96px; padding-right: 108px; }
}

@media (max-width: 560px) {
  .amount-row { grid-template-columns: 1fr; }
  .domain { font-size: clamp(2.35rem, 12vw, 3.3rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dock { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: settle 0.7s ease both; }
  .dock { transition: transform 0.2s ease; }
  .btn { transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
}

@keyframes settle {
  from { opacity: 0; transform: rotate(-18deg) scale(0.96); }
  to { opacity: 1; transform: rotate(-11deg) scale(1); }
}

@media print {
  .spine, .dock, .nav, .form-card, .stamp { display: none !important; }
  .page { margin: 0; padding: 0; }
  body { border: 0; background: #fff; padding: 0; }
}
