/* My Duuka - website theme.
 *
 * Deliberately restrained: one accent colour, generous whitespace, few borders, no gradients
 * except where they carry the brand. The product being sold is calm and legible, and a loud
 * marketing site would contradict it.
 *
 * Palette matches the app exactly (mobile/tailwind.config.js and the logo kit), so the site and
 * the first screen of the app feel like one product.
 */

:root {
  --brand:        #ff5a0a;
  --brand-600:    #cc5803;
  --brand-700:    #a54703;
  --brand-50:     #fff4ec;
  --amber:        #ffb627;

  --ink-900:      #1a1a1a;
  --ink-700:      #3f3f3f;
  --ink-500:      #6b6b6b;
  --ink-300:      #b4b4b4;
  --ink-100:      #ececec;
  --ink-50:       #f7f7f7;

  --radius:       18px;
  --radius-lg:    26px;
  --shadow:       0 10px 40px rgba(26, 26, 26, .08);
  --shadow-lift:  0 18px 60px rgba(204, 88, 3, .18);
}

* { -webkit-tap-highlight-color: transparent; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.02em; }
p { color: var(--ink-700); line-height: 1.7; }
a { text-decoration: none; }

.container { max-width: 1140px; }

/* ------------------------------------------------------------------------------------ splash */
/* Painted before anything else so the brand is the first thing on screen, and removed by JS.
   Uses opacity+visibility rather than display so the fade-out is smooth. */
.splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: #fff;
  transition: opacity .45s ease, visibility .45s ease;
}
.splash--done { opacity: 0; visibility: hidden; }
.splash__logo { width: 180px; height: auto; animation: splash-rise .7s cubic-bezier(.2,.8,.2,1) both; }
.splash__bar {
  width: 132px; height: 4px; border-radius: 99px;
  background: var(--ink-100); overflow: hidden;
}
.splash__bar span {
  display: block; height: 100%; width: 40%; border-radius: 99px;
  background: linear-gradient(90deg, var(--amber), var(--brand));
  animation: splash-slide 1.15s ease-in-out infinite;
}
@keyframes splash-rise { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes splash-slide {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(330%); }
}
/* Respect a stated preference for less motion: no sliding bar, no rise. */
@media (prefers-reduced-motion: reduce) {
  .splash__logo, .splash__bar span { animation: none; }
}

/* ------------------------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ink-100);
}
.navbar { padding: .85rem 0; }
.nav-link { color: var(--ink-700); font-weight: 500; padding: .5rem .9rem; border-radius: 10px; }
.nav-link:hover { color: var(--brand-600); background: var(--brand-50); }
.nav-link.active { color: var(--brand-600); font-weight: 600; }
.navbar-toggler { border: 0; padding: .35rem .5rem; }
.navbar-toggler:focus { box-shadow: none; }

/* ------------------------------------------------------------------------------------ buttons */
.btn { border-radius: 12px; font-weight: 600; padding: .7rem 1.25rem; border: 0; transition: transform .15s ease, box-shadow .2s ease; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-brand:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink-900); border: 1.5px solid var(--ink-100); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-600); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }

/* --------------------------------------------------------------------------------------- hero */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); }
.hero h1 {
  font-size: clamp(2.15rem, 5.4vw, 3.9rem);
  line-height: 1.06;
  margin-bottom: 1.15rem;
}
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-500); max-width: 38ch; }
/* The hero card is WHITE, lifted off the page by a warm orange glow rather than by a border or
   a tinted fill. Three stacked shadows do the work: a wide soft brand-coloured halo, a tighter
   one for definition, and a neutral shadow underneath so the card still reads as a physical
   object rather than as a coloured blur. The hairline ring keeps its edge crisp on white. */
.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  background: #fff;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow:
    0 0 0 1px rgba(255, 90, 10, .10),
    0 8px 28px rgba(255, 90, 10, .16),
    0 28px 80px rgba(255, 90, 10, .22),
    0 18px 50px rgba(26, 26, 26, .07);
  transition: box-shadow .35s ease, transform .35s ease;
}
.hero-art:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(255, 90, 10, .16),
    0 10px 34px rgba(255, 90, 10, .20),
    0 34px 96px rgba(255, 90, 10, .28),
    0 22px 60px rgba(26, 26, 26, .09);
}

/* The inner tiles sit on the white card, so they take the faint tint the card gave up. */
.hero-art .stat-tile {
  background: var(--ink-50);
  border: 1px solid rgba(255, 90, 10, .08);
  border-radius: 14px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--brand-50); color: var(--brand-700);
  font-size: .84rem; font-weight: 600;
  padding: .45rem .9rem; border-radius: 99px; margin-bottom: 1.15rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ------------------------------------------------------------------------------------ sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--ink-50); }
.section-head { max-width: 46ch; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .8rem; }
.section-head p { font-size: 1.06rem; color: var(--ink-500); }

/* --------------------------------------------------------------------------------------- cards */
.f-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 1.65rem;
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.f-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.f-card h3 { font-size: 1.12rem; margin: .95rem 0 .5rem; }
.f-card p { font-size: .96rem; margin: 0; color: var(--ink-500); }
.f-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600);
}
.f-card--flag { border-color: var(--brand); background: linear-gradient(160deg, var(--brand-50), #fff 70%); }
.f-flag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--brand-700);
  background: #fff; border: 1px solid var(--brand); border-radius: 99px;
  padding: .2rem .6rem; margin-bottom: .9rem;
}

/* --------------------------------------------------------------------------------------- steps */
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 34px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem;
}

/* --------------------------------------------------------------------------------------- forms */
.form-card {
  background: #fff; border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}
.form-label { font-weight: 600; font-size: .94rem; margin-bottom: .35rem; }
.form-control, .form-select {
  border: 1.5px solid var(--ink-100); border-radius: 12px;
  padding: .8rem 1rem; font-size: 1rem; background: var(--ink-50);
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 90, 10, .12); background: #fff;
}
.form-control.is-invalid, .form-select.is-invalid { border-color: #d64545; background: #fef6f6; }
.field-error { color: #d64545; font-size: .875rem; margin-top: .35rem; display: none; }
.field-error.show { display: block; }
.form-text { color: var(--ink-500); font-size: .875rem; }

.alert { border: 0; border-radius: 12px; padding: .95rem 1.1rem; font-size: .96rem; }
.alert-danger  { background: #fdecec; color: #a32020; }
.alert-success { background: #e9f7ee; color: #1c6b38; }
.alert-info    { background: var(--brand-50); color: var(--brand-700); }

/* ----------------------------------------------------------------------------------- accordion */
.accordion-item { border: 1px solid var(--ink-100); border-radius: var(--radius) !important; margin-bottom: .75rem; overflow: hidden; }
.accordion-button { font-weight: 600; padding: 1.15rem 1.35rem; background: #fff; }
.accordion-button:not(.collapsed) { background: var(--brand-50); color: var(--brand-700); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: transparent; }
.accordion-body { color: var(--ink-700); padding: 0 1.35rem 1.3rem; line-height: 1.7; }

/* --------------------------------------------------------------------------------------- store */
.store-btn {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--ink-900); color: #fff;
  border-radius: 14px; padding: .7rem 1.2rem; min-width: 190px;
  transition: transform .15s ease, opacity .2s ease;
}
.store-btn:hover { color: #fff; transform: translateY(-2px); }
.store-btn small { display: block; font-size: .68rem; opacity: .75; line-height: 1.1; }
.store-btn strong { display: block; font-size: 1.02rem; line-height: 1.2; }
.store-btn.is-pending { opacity: .55; cursor: default; }
.store-btn.is-pending:hover { transform: none; }

/* ---------------------------------------------------------------------------------------- prose */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.42rem; margin: 2.4rem 0 .85rem; }
.prose h3 { font-size: 1.1rem; margin: 1.8rem 0 .6rem; }
.prose ul { color: var(--ink-700); line-height: 1.8; padding-left: 1.15rem; }
.prose li { margin-bottom: .45rem; }
.prose .updated { color: var(--ink-500); font-size: .92rem; }

/* --------------------------------------------------------------------------------------- footer */
.site-footer { background: var(--ink-900); color: #fff; padding: 3.5rem 0 1.75rem; margin-top: 2rem; }
.footer-tag { color: var(--ink-300); font-size: .96rem; max-width: 30ch; }
.footer-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-300); margin-bottom: .9rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .55rem; }
.footer-list a { color: #e9e9e9; font-size: .95rem; }
.footer-list a:hover { color: var(--brand); }
.footer-base {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2.5rem; padding-top: 1.5rem;
  color: var(--ink-300); font-size: .88rem;
}

/* ------------------------------------------------------------------------------ whatsapp bubble */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 1040;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 8px 26px rgba(37, 211, 102, .38);
  transition: transform .18s ease;
}
.wa-float:hover { color: #fff; transform: scale(1.06); }

/* --------------------------------------------------------------------------------------- reveal */
/* Content starts slightly lowered and fades in as it scrolls into view. Skipped entirely when
   reduced motion is requested, and never applied before JS runs so nothing can stay invisible. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================================ SVG patterns
 *
 * Four decorative layers, all inline SVG as data URIs so they cost no extra requests and cannot
 * 404. Every one is pinned behind content with a low opacity - they are texture, not artwork,
 * and if a visitor notices them individually they are too strong.
 *
 * All are `pointer-events: none` and `aria-hidden` by construction (CSS backgrounds are not
 * exposed to assistive technology), so none of them can interfere with reading or tapping.
 */

.pattern { position: relative; isolation: isolate; }
.pattern > * { position: relative; z-index: 1; }
.pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Dot grid - the quietest of the four. Used behind tinted sections. */
.pattern--dots::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%23ff5a0a' fill-opacity='.20'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  /* Faded at the edges so the grid never collides with the section boundary. */
  -webkit-mask-image: radial-gradient(ellipse 78% 68% at 50% 42%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 78% 68% at 50% 42%, #000 55%, transparent 100%);
}

/* Diagonal hairlines - a little more structure, for the hero. */
.pattern--lines::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M-4 4L4 -4M0 40L40 0M36 44L44 36' stroke='%23ff5a0a' stroke-opacity='.14' stroke-width='1.1'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 78% 18%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 70% 70% at 78% 18%, #000 0%, transparent 72%);
}

/* Soft brand glow. Pure gradient, no pattern - carries the warmth behind the hero card. */
.pattern--glow::before {
  background:
    radial-gradient(560px 380px at 82% 12%, rgba(255, 90, 10, .13), transparent 68%),
    radial-gradient(460px 340px at 8% 78%, rgba(255, 182, 39, .13), transparent 70%);
}

/* Concentric arcs, anchored bottom-right. Used once, on the closing call to action. */
.pattern--arcs::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' fill='none' stroke='%23ff5a0a' stroke-opacity='.16'%3E%3Ccircle cx='420' cy='420' r='120'/%3E%3Ccircle cx='420' cy='420' r='190'/%3E%3Ccircle cx='420' cy='420' r='260'/%3E%3Ccircle cx='420' cy='420' r='330'/%3E%3C/svg%3E");
  background-position: right -60px bottom -60px;
  background-repeat: no-repeat;
}

/* A thin brand rule that fades out at both ends. Separates stacked sections without a hard line. */
.rule-fade {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 10, .35), transparent);
}

/* Counting figures.
 *
 * Tabular numerals are the whole trick: with proportional digits a '1' is narrower than a '8',
 * so a number counting upward visibly jitters and shifts the layout on every frame. Fixed-width
 * digits make it climb in place. `min-height` reserves the line so the card does not resize as
 * the figure gains digits on its way to seven.
 */
.stat-figure {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  min-height: 1.5em;
}

/* ========================================================================== responsive
 *
 * The layout is fluid by default (clamp() type, Bootstrap's grid, percentage widths), so this
 * block is not "the mobile stylesheet" - it fixes the specific things that do NOT scale on their
 * own, and each rule below is here because something concretely broke without it.
 */

/* A hard floor against sideways scrolling.
 *
 * `clip` rather than `hidden`: overflow-x:hidden on <body> silently makes position:sticky stop
 * working in some browsers, which would break the header. `clip` contains the overflow without
 * creating a scroll container. */
html, body { overflow-x: clip; max-width: 100%; }

/* Nothing may exceed its column - images, embeds, or a stray wide element. */
img, svg, video { max-width: 100%; height: auto; }

/* Long unbroken strings (email addresses, URLs) must break rather than push the layout wide.
   `developers@sunactl.com` in a narrow footer column is the real case. */
.footer-list a, .prose a, .accordion-body a { overflow-wrap: anywhere; }

@media (max-width: 991.98px) {
  /* The hero headline is broken into three deliberate lines for the desktop composition. At
     tablet width and below those breaks produce short ragged lines, so the text wraps naturally
     instead. */
  .hero-title br { display: none; }

  /* Collapsed menu: the call to action becomes a full-width row rather than a stray pill. */
  .navbar-collapse { padding-bottom: .5rem; }
  .nav-cta { margin-top: .5rem; }
  .nav-link { padding: .65rem .9rem; }
}

@media (min-width: 992px) {
  .nav-cta { width: auto !important; margin-top: 0; }
}

@media (max-width: 767.98px) {
  /* Header logo: 48px crowds the toggler on a phone. */
  .site-header .brand-logo { height: 38px !important; }

  /* THE OVERFLOW BUG: two store buttons at min-width 190px are 380px+ before the gap, which
     is wider than a 320px screen. Full width and stacked instead. */
  .store-btn { min-width: 0; width: 100%; justify-content: center; }

  /* The hero card's glow is large and soft; at phone width it reads as a smudge off the edges,
     so it tightens up. */
  .hero-art {
    box-shadow:
      0 0 0 1px rgba(255, 90, 10, .10),
      0 6px 20px rgba(255, 90, 10, .14),
      0 16px 44px rgba(255, 90, 10, .18),
      0 10px 30px rgba(26, 26, 26, .06);
  }
  .hero-art:hover { transform: none; }

  /* The floating WhatsApp bubble sits over content on a small screen, so it shrinks and tucks
     closer to the corner. */
  .wa-float { width: 48px; height: 48px; right: 14px; bottom: 14px; }
  .wa-float svg { width: 23px; height: 23px; }

  /* Footer: four link columns at col-6 are cramped; give them breathing room. */
  .site-footer { padding-top: 2.75rem; }
  .footer-h { margin-bottom: .6rem; }

  .section-head { margin-bottom: 2rem; }
  .accordion-button { padding: 1rem 1.1rem; font-size: .98rem; }
  .accordion-body { padding: 0 1.1rem 1.1rem; }
}

@media (max-width: 575.98px) {
  /* Splash artwork scales with the viewport so it can never overflow a small phone. */
  .splash__logo { width: min(180px, 55vw); }

  /* Buttons go full width and stack - a half-width button on a 320px screen is unusable. */
  .hero .btn-lg, .form-card .btn-lg { width: 100%; }
  .hero .d-flex.flex-wrap.gap-2 { flex-direction: column; }

  /* The counting figures are the largest numbers on the page and gain digits as they climb;
     trimmed so a seven-figure amount cannot burst its tile. */
  .stat-figure { font-size: 1.25rem !important; }

  .f-card { padding: 1.35rem; }
  .form-card { padding: 1.35rem; }
  .prose h2 { font-size: 1.28rem; }
}

/* Landscape phones: the splash is full-height, so a short viewport must not clip the logo. */
@media (max-height: 480px) {
  .splash { gap: 16px; }
  .splash__logo { width: min(140px, 30vh); }
}

/* ===================================================================== header height trim
 *
 * The header used a logo asset that was 68% white padding (1536x1024 canvas holding a 1340x347
 * mark), so a 48px image rendered a ~16px wordmark and the bar was sized by empty space rather
 * than by the brand.
 *
 * The trimmed transparent mark is all content, so a much smaller box shows a LARGER wordmark
 * while the bar itself gets shorter. The padding below is what actually sets the bar height now.
 */
.navbar { padding: .5rem 0; }
.site-header .brand-logo { height: 30px; width: auto; display: block; }
.navbar-brand { padding-top: 0; padding-bottom: 0; margin-right: 0; }

@media (max-width: 767.98px) {
  .site-header .brand-logo { height: 26px !important; }
  .navbar { padding: .45rem 0; }
}
