/* YarnAxis website. Brand navy and saffron, a woven texture in the hero, no external assets. */
:root {
  --navy: #13304d;
  --navy-2: #0e2540;
  --brand: #1f4e79;
  --brand-2: #2c6aa3;
  --gold: #f2a900;
  --gold-2: #ffbf2e;
  --ink: #0f1b2a;
  --muted: #536273;
  --line: #e2e8ef;
  --bg: #ffffff;
  --soft: #f4f7fa;
  --cream: #fbf8f1;
  --ok: #1f9d55;
  --bad: #d64545;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 42, .06), 0 8px 24px rgba(15, 27, 42, .08);
  --shadow-lg: 0 2px 4px rgba(15, 27, 42, .06), 0 24px 48px rgba(15, 27, 42, .16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Tamil", "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: 84px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; font-family: inherit; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--navy-2); box-shadow: 0 6px 16px rgba(242, 169, 0, .28); }
.btn-gold:hover { background: var(--gold-2); }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-light:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.top.scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(15, 27, 42, .06); }
.top-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav .nav-signin { display: none; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, #2a5f93 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); padding: 88px 0 104px; }
.weave { position: absolute; inset: 0; opacity: .09; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.9) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 2px, transparent 2px 14px);
  -webkit-mask-image: linear-gradient(115deg, transparent 30%, #000 75%); mask-image: linear-gradient(115deg, transparent 30%, #000 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px; }
.hero .eyebrow, .eyebrow-gold { color: var(--gold); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--gold); white-space: nowrap; }
.lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: rgba(255, 255, 255, .82); max-width: 580px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.facts b { color: #fff; font-weight: 600; }

.hero-visual { position: relative; padding: 24px 0 40px; }
.card { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.order-card { padding: 22px 22px 18px; max-width: 470px; margin-left: auto; }
.oc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.oc-head > div { display: flex; flex-direction: column; min-width: 0; }
.oc-tag { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.oc-head strong { font-size: 17px; margin-top: 2px; }
.oc-sub { font-size: 13px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-ok { background: #e6f6ec; color: var(--ok); }
.pill-off { background: #fff4d6; color: #8a5a00; }
.stages { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.stages li { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 12px; font-size: 14px; }
.stages span { color: var(--muted); }
.stages i { position: relative; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.stages i::after { content: ""; position: absolute; inset: 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform-origin: left; animation: grow 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.stages li:nth-child(n+3) i::after { background: linear-gradient(90deg, #d69500, var(--gold)); }
.stages b { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@keyframes grow { from { transform: scaleX(0); } }
.chip { position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 14px; white-space: nowrap; }
.chip b { font-variant-numeric: tabular-nums; }
.chip-line { left: -8px; bottom: 6px; }
.chip-ewb { right: -10px; top: -4px; }
.chip-ewb svg { width: 18px; height: 18px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 157, 85, .18); }

/* sections */
section { padding: 96px 0; }
.section-h { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.025em; max-width: 760px; }
.section-sub { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 680px; }

/* flow */
.flow { background: var(--cream); padding: 80px 0; }
.flow-list { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 2px solid #e8dfc9; }
.flow-list li { position: relative; padding: 24px 22px 8px 0; }
.flow-list li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--cream); }
.flow-list li:nth-child(n+5) { margin-top: 28px; border-top: 2px solid #e8dfc9; }
.flow-list .n { font-size: 13px; font-weight: 700; color: #a77a00; letter-spacing: .06em; }
.flow-list h3 { font-size: 18px; margin: 4px 0 6px; }
.flow-list p { font-size: 15px; color: var(--muted); }

/* modules */
.grid-cards { margin-top: 44px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.mcard { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.mcard:hover { border-color: #c9d6e4; box-shadow: var(--shadow); transform: translateY(-2px); }
.ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eaf1f8; color: var(--brand); margin-bottom: 16px; }
.ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mcard h3 { font-size: 18px; margin-bottom: 6px; }
.mcard p { font-size: 15px; color: var(--muted); }

/* floor */
.floor { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.floor .section-sub { color: rgba(255, 255, 255, .78); }
.floor-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; color: rgba(255, 255, 255, .82); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(242, 169, 0, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2a900' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ticks b { color: #fff; }
.phone-wrap { display: flex; justify-content: center; }
.phone { width: 100%; max-width: 330px; background: #fff; color: var(--ink); border-radius: 30px; padding: 18px 16px 16px; box-shadow: 0 0 0 10px #0a1a2e, 0 0 0 11px rgba(255, 255, 255, .12), var(--shadow-lg); }
.ph-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 0 4px 12px; flex-wrap: wrap; }
.ph-scan { display: flex; align-items: center; gap: 10px; justify-content: center; border: 2px dashed #b9c8d8; border-radius: 14px; padding: 18px; color: var(--brand); font-weight: 600; font-size: 15px; background: #f5f9fd; }
.ph-scan svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ph-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ph-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 13px; }
.ph-list b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.ph-list span { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-list em { font-style: normal; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 99px; }
.ph-list .ok { background: #e6f6ec; color: var(--ok); }
.ph-list .no { background: #fde8e8; color: var(--bad); }
.ph-total { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 14px; font-weight: 600; gap: 8px; }
.ph-btn { background: var(--brand); color: #fff; border-radius: 10px; padding: 9px 14px; font-size: 14px; white-space: nowrap; }

/* connect */
.grid-3 { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--soft); border: 1px solid transparent; transition: background .2s, border-color .2s; }
.feature:hover { background: #fff; border-color: var(--line); }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--muted); }

/* trust */
.trust { background: var(--soft); }
.trust-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trust-list li { background: #fff; border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.trust-list b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* steps */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.steps .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; margin-bottom: 16px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--muted); }

/* faq */
.faq { padding-top: 24px; }
.faq-wrap details { max-width: 860px; }
.faq .section-h { margin-bottom: 28px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { padding: 0 0 20px; color: var(--muted); }

/* demo */
.demo { background: radial-gradient(900px 500px at 10% 0%, #2a5f93 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.demo .section-sub { color: rgba(255, 255, 255, .78); }
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.ticks-light li { color: rgba(255, 255, 255, .85); }
.demo-form { padding: 28px; display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.demo-form input, .demo-form select { height: 48px; }
.demo-form select { appearance: none; -webkit-appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23536273' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.demo-form input, .demo-form select, .demo-form textarea { width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background-color: #fff; border: 1px solid #cdd7e1; border-radius: 10px; padding: 11px 12px; transition: border-color .15s, box-shadow .15s; }
.demo-form textarea { resize: vertical; min-height: 88px; }
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 78, 121, .15); }
.demo-form [aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(214, 69, 69, .12); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.form-status { font-size: 15px; text-align: center; min-height: 1px; }
.form-status.err { color: var(--bad); font-weight: 600; }
.thanks { text-align: center; padding: 40px 12px; display: grid; gap: 12px; justify-items: center; }
.thanks svg { width: 56px; height: 56px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.thanks h3 { font-size: 24px; }
.thanks p { color: var(--muted); }

/* footer */
.foot { background: #0a1b30; color: rgba(255, 255, 255, .7); padding: 44px 0; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.brand-light { color: #fff; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-nav a { color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 15px; }
.foot-nav a:hover { color: #fff; text-decoration: underline; }
.copy { margin-left: auto; font-size: 14px; }

/* reveal on scroll (only when scripts run and motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stages i::after { animation: none; }
  .btn, .mcard, .feature { transition: none; }
}

@media (max-width: 1100px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
}

/* tablet */
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(15, 27, 42, .1); }
  .nav.open a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--soft); border-radius: 0; }
  .nav.open .nav-signin { display: block; color: var(--brand); font-weight: 600; border-bottom: 0; }
  .hero-grid, .floor-grid, .trust-grid, .demo-grid { grid-template-columns: 1fr; gap: 40px; }
  .order-card { margin: 0 auto; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .flow-list { grid-template-columns: 1fr 1fr; }
  .flow-list li:nth-child(n+3) { margin-top: 28px; border-top: 2px solid #e8dfc9; }
}

/* phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top-row { gap: 12px; height: 62px; }
  .nav.open { top: 62px; }
  .top-actions .btn-ghost { display: none; }
  .top-actions .btn-gold { padding: 9px 14px; font-size: 14px; }
  .brand { font-size: 18px; }
  .brand svg { width: 30px; height: 30px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
  .cta .btn { width: 100%; }
  .hero h1 em { white-space: normal; }
  .stages li { grid-template-columns: 84px 1fr 40px; gap: 10px; font-size: 13px; }
  .chip { position: static; margin-top: 12px; width: fit-content; max-width: 100%; white-space: normal; }
  .hero-visual { padding: 0; }
  .grid-3, .steps, .trust-list, .row2, .flow-list, .grid-cards { grid-template-columns: 1fr; }
  .flow-list li:nth-child(n+2) { margin-top: 20px; border-top: 2px solid #e8dfc9; }
  .demo-form { padding: 20px; }
  .copy { margin-left: 0; }
}
