/* World Code: home page. Signature motif: one-time-code cells (.otp) reused for the first screen, step markers, chips. */

.sec { padding: 52px 0; position: relative; }
.sec--tint { background: var(--tint); }
.sec-head { max-width: 760px; margin-bottom: 32px; }
.sec-head .lead { margin-top: 14px; font-size: 19px; color: var(--ink); font-weight: 600; line-height: 1.7; }
.sec h3 { margin: 40px 0 12px; }
.sec-lead-p { margin-top: 14px; }

/* First screen */
.masthead { position: relative; overflow: hidden; padding: 36px 0 56px; background:
  radial-gradient(520px 320px at 90% 8%, rgba(255, 100, 137, .16), transparent 70%),
  radial-gradient(520px 360px at 6% 96%, rgba(159, 112, 237, .16), transparent 70%), #fff; }
.masthead::before { content: ""; position: absolute; width: 760px; height: 760px; right: -280px; top: -120px; border-radius: 50%; border: 1px solid rgba(159, 112, 237, .28); pointer-events: none; }
.masthead::after { content: ""; position: absolute; width: 520px; height: 520px; right: -170px; top: 0; border-radius: 50%; border: 1px solid rgba(255, 100, 137, .28); pointer-events: none; }
.masthead-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.masthead h1 { font-size: 30px; line-height: 1.3; }
.updated { margin-top: 14px; font-size: 15px; color: var(--muted); }
.masthead-copy p { margin-top: 18px; }
.masthead-copy .updated + p { margin-top: 22px; }

.facts { list-style: none; position: relative; z-index: 1; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.facts li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.facts .ico { grid-row: 1 / span 2; width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--rose), var(--violet-deep)); }
.facts b { white-space: nowrap; font-family: var(--mono); font-size: 22px; line-height: 1.2; color: var(--ink); font-weight: 700; }
.facts span { font-size: 15px; color: var(--muted); line-height: 1.4; }

/* Phone illustration */
.phone-stage { position: relative; min-height: 440px; display: grid; place-items: center; }
.phone { position: relative; width: min(290px, 74vw); border-radius: 40px; padding: 12px; background: #2a2340; box-shadow: 0 2px 4px rgba(42, 35, 64, .3), 0 40px 60px -24px rgba(106, 67, 196, .6); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 76px; height: 18px; margin-left: -38px; border-radius: 12px; background: #2a2340; z-index: 2; }
.phone-screen { border-radius: 30px; background: linear-gradient(180deg, #fff3f6 0%, #f4eeff 100%); padding: 52px 16px 28px; min-height: 420px; }
.sms-head { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.sms-head .ico { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: #fff; color: var(--rose); box-shadow: var(--shadow-card); }
.sms-line { height: 8px; border-radius: 4px; background: rgba(106, 67, 196, .16); }
.sms-head .sms-line { width: 90px; }
.sms-bubble { margin-top: 16px; padding: 16px 14px; background: #fff; border-radius: 20px 20px 20px 6px; box-shadow: var(--shadow-card); }
.sms-bubble .sms-line + .sms-line { margin-top: 8px; width: 70%; }
.sms-bubble .otp { margin-top: 14px; }
.otp { display: flex; gap: 6px; }
.otp span { flex: 1 1 0; max-width: 40px; aspect-ratio: 3 / 4; display: grid; place-items: center; border-radius: 10px; border: 2px solid var(--line-soft); background: #fff; font: 700 22px/1 var(--mono); color: var(--ink); animation: cell-in .6s var(--ease) both; }
.otp span:nth-child(1) { animation-delay: .15s; }
.otp span:nth-child(2) { animation-delay: .3s; }
.otp span:nth-child(3) { animation-delay: .45s; }
.otp span:nth-child(4) { animation-delay: .6s; }
.otp span:nth-child(5) { animation-delay: .75s; }
.otp span:nth-child(6) { animation-delay: .9s; border-color: var(--blush); box-shadow: 0 0 0 4px rgba(255, 100, 137, .18); }
.sms-reply { margin: 18px 0 0 auto; width: 60%; height: 34px; border-radius: 17px 17px 6px 17px; background: linear-gradient(135deg, var(--rose), var(--violet-deep)); opacity: .9; }
.sms-reply--short { width: 38%; height: 28px; }
.sms-bubble--small { width: 72%; padding: 12px 14px; }
.sms-bubble--small .sms-line { width: 100%; }
.float-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-card); font: 700 16px/1 var(--mono); color: var(--violet-deep); animation: bob 7s ease-in-out infinite; }
.float-chip:nth-of-type(1) { left: 0; top: 70px; }
.float-chip:nth-of-type(2) { right: 0; top: 140px; animation-delay: -2s; color: var(--rose); }
.float-chip:nth-of-type(3) { left: 4%; bottom: 80px; animation-delay: -4s; }
.float-chip:nth-of-type(4) { right: 2%; bottom: 40px; animation-delay: -1s; color: var(--rose); }
@keyframes cell-in { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Numbered steps (real sequences): icon + OTP-cell number */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 22px; }
.steps li { counter-increment: step; position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 56px; bottom: -22px; border-left: 2px dashed #cdb8f7; }
.step-ico { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--rose), var(--violet-deep)); box-shadow: 0 10px 18px -8px rgba(106, 67, 196, .6); }
.step-ico .ico { width: 26px; height: 26px; }
.step-ico::after { content: counter(step); position: absolute; right: -8px; top: -8px; width: 24px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #fff; border: 2px solid var(--blush); color: var(--ink); font: 700 14px/1 var(--mono); }
.step-text { padding-top: 10px; color: var(--ink); }
.steps--card li { padding: 18px 18px 18px 18px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.steps--card li:not(:last-child)::before { display: none; }

/* How it works */
.how-grid { display: grid; gap: 32px; align-items: center; margin-bottom: 36px; }
.how-grid > .how-text > p { margin-bottom: 22px; font-weight: 600; color: var(--ink); }
.photo-frame { position: relative; padding: 0 14px 14px 0; }
.photo-frame::before { content: ""; position: absolute; inset: 14px 0 0 14px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--blush), var(--violet)); opacity: .4; }
.photo-frame img { position: relative; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: 0 24px 40px -20px rgba(42, 35, 64, .5); aspect-ratio: 3 / 2; object-fit: cover; }
.compare th, .compare td { vertical-align: middle; }
.compare td { white-space: normal; }
.cmp { display: inline-flex; align-items: center; gap: 8px; }
.cmp .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; stroke-width: 2.4; }
.cmp--yes .ico { color: #fff; background: var(--violet-deep); }
.cmp--no .ico { color: var(--rose); background: #fde8ee; }

/* Four reasons: a real table shown as cards */
.cards4 { border: 0; background: transparent; box-shadow: none; overflow: visible; }
.cards4 table, .cards4 tbody { display: block; }
.cards4 thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.cards4 tbody { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cards4 tr { display: block; padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: background-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.cards4 tr:hover { background: var(--hover); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.cards4 th, .cards4 td { display: block; padding: 0; border: 0; }
.cards4 th { display: flex; align-items: center; gap: 12px; font-size: 21px; }
.cards4 th .ico { width: 46px; height: 46px; padding: 11px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--rose), var(--violet-deep)); }
.cards4 td { margin-top: 14px; color: var(--muted); }
.reason-notes { display: grid; gap: 14px; margin-top: 32px; }
.reason-notes p { margin: 0; padding: 16px 18px; border-left: 4px solid var(--blush); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }

/* Countries and projects: tables with chips */
.dual { display: grid; gap: 24px; margin-top: 24px; }
.dual .tbl-cap { margin: 0 0 12px; font-weight: 600; color: var(--ink); }
.chips td:last-child { white-space: nowrap; }
.chip { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--tint); border: 1px solid #d7c6fb; color: var(--violet-deep); font-weight: 600; font-size: 15px; }
.chip--code { font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--rose); background: #fff4f7; border-color: #f6c4d1; }
.dual-wrap { margin-top: 18px; }

/* Problem to solution cards (real table) */
.fixes { border: 0; background: transparent; box-shadow: none; overflow: visible; }
.fixes table, .fixes tbody { display: block; }
.fixes thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.fixes tbody { display: grid; gap: 14px; }
.fixes tr { display: grid; gap: 10px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.fixes th, .fixes td { display: flex; gap: 12px; align-items: flex-start; padding: 0; border: 0; }
.fixes th { font-size: 18px; color: var(--ink); }
.fixes th .ico { width: 30px; height: 30px; padding: 6px; border-radius: 10px; color: var(--rose); background: #fde8ee; margin-top: 1px; }
.fixes td .ico { width: 30px; height: 30px; padding: 6px; border-radius: 10px; color: #fff; background: var(--violet-deep); margin-top: 1px; }
.fixes td { color: var(--text); }

/* Card lists: risks, tips, checklist */
.cardlist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cardlist li { display: grid; gap: 12px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: background-color .3s var(--ease), transform .3s var(--ease); }
.cardlist li:hover { background: var(--hover); transform: translateY(-3px); }
.cardlist .ico { width: 44px; height: 44px; padding: 10px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--rose), var(--violet-deep)); }
.cardlist--risk .ico { background: #fde8ee; color: var(--rose); }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .ico { width: 26px; height: 26px; padding: 4px; margin-top: 3px; border-radius: 50%; color: #fff; background: var(--violet-deep); stroke-width: 2.4; }
.after-list { margin-top: 22px; }

/* Pricing */
.price-grid { display: grid; gap: 28px; align-items: start; }
.prices td:last-child { white-space: nowrap; }
.cardlist--tight { margin-top: 0; grid-template-columns: 1fr; gap: 10px; }
.cardlist--tight li { grid-template-columns: auto 1fr; align-items: start; padding: 16px 18px; gap: 14px; }
.cardlist--tight .ico { width: 38px; height: 38px; padding: 8px; }
.cardlist--tight p { margin: 0; }

/* Summary band with photo */
.band { position: relative; overflow: hidden; color: #fff; background: linear-gradient(100deg, #80183a 0%, #54248f 55%, #2a1747 100%); padding: 64px 0 72px; }
.band-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 55%; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(60, 24, 120, .84); }
.band .wrap { position: relative; z-index: 2; }
.band h2, .band p { color: #fff; }
.band .band-copy { max-width: 640px; }
.band .cta-block { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .4); box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .5); }

.masthead-actions { margin-top: 28px; }

@media (min-width: 768px) {
  .price-grid { grid-template-columns: .85fr 1.15fr; gap: 40px; }
  .reason-notes { grid-template-columns: 1fr 1fr; }
  .fixes tbody { grid-template-columns: 1fr 1fr; }
  .facts b { font-size: 26px; }
  .sec { padding: 80px 0; }
  .masthead { padding: 64px 0 80px; }
  .masthead h1 { font-size: 40px; }
  .masthead-grid { grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .facts { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
  .how-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .dual { grid-template-columns: 1fr 1fr; gap: 28px; }
  .steps--row { grid-template-columns: repeat(var(--n), 1fr); gap: 16px; }
  .steps--row li { display: block; }
  .steps--row li:not(:last-child)::before { left: 66px; right: -6px; top: 26px; bottom: auto; border-left: 0; border-top: 2px dashed #cdb8f7; }
  .steps--row .step-text { display: block; padding-top: 16px; }
  .steps--row.steps--card li:not(:last-child)::before { display: block; left: auto; right: -14px; width: 12px; top: 44px; }
  .steps--card.steps--row li { padding: 20px 16px; }
  .band { padding: 96px 0; }
  .band-photo { left: auto; right: 0; width: 66%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%); }
  .band::before { background: linear-gradient(90deg, rgba(128, 24, 58, .55) 0%, rgba(84, 36, 150, .25) 55%, rgba(42, 23, 71, 0) 100%); }
}
@media (max-width: 767px) {
  .phone-stage { min-height: 400px; }
  .float-chip { font-size: 14px; padding: 6px 10px; }
}
