/* EmbroShare website. One stylesheet for the home page and the legal pages. */
:root {
  --orange: #ff7a00; --orange-dark: #e56c00; --orange-ink: #c25a00; --orange-soft: #fff1e2;
  --navy: #131f38; --navy-2: #1c2c4f; --text: #131f38; --muted: #5f6880; --line: #e4e7ef;
  --bg: #ffffff; --bg-2: #f6f7fb; --radius: 18px;
  --shadow: 0 1px 2px rgba(19, 31, 56, .05), 0 10px 30px rgba(19, 31, 56, .07);
  --shadow-lg: 0 24px 60px rgba(19, 31, 56, .16);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--orange-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; position: relative; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink);
           background: var(--orange-soft); padding: 6px 14px; border-radius: 99px; margin-bottom: 18px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin: 16px auto 0; }
.grad { background: linear-gradient(100deg, var(--orange) 0%, #ffb15c 45%, var(--orange) 90%); background-size: 200% auto;
        -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -200% center; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 700; padding: 14px 26px;
       border-radius: 14px; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn.primary { background: var(--orange); color: #fff; box-shadow: 0 10px 26px rgba(255, 122, 0, .32); }
.btn.primary:hover { background: var(--orange-dark); box-shadow: 0 14px 34px rgba(255, 122, 0, .42); }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--navy); }
.btn.light { background: #fff; color: var(--navy); }
.btn svg { width: 18px; height: 18px; flex: none; display: block; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(160%) blur(14px);
       border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.stuck { border-color: var(--line); box-shadow: 0 6px 24px rgba(19, 31, 56, .06); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 21px; color: var(--navy); letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: 46px; display: block; flex: none; }
.brand b { color: var(--orange); }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { color: var(--navy); font-weight: 600; font-size: 15px; opacity: .8; }
.nav nav a:hover { opacity: 1; text-decoration: none; color: var(--orange-ink); }
.nav .actions { display: flex; gap: 10px; }
.nav .btn { padding: 10px 18px; border-radius: 12px; font-size: 15px; }
.burger { display: none; background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .25s; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero .lead { margin: 22px 0 32px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero .note span::before { content: "✓"; color: var(--orange); font-weight: 800; margin-right: 6px; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: -1; animation: drift 16s ease-in-out infinite alternate; }
.blob.a { width: 520px; height: 520px; background: #ffd9b0; top: -180px; right: -120px; }
.blob.b { width: 380px; height: 380px; background: #dfe6ff; bottom: -160px; left: -140px; animation-delay: -6s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }

/* the picture: phone -> through the air -> device -> machine */
.scene { position: relative; display: grid; gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.scene .phone { padding: 18px; width: 78%; animation: float 7s ease-in-out infinite; }
.scene .machine { padding: 18px; width: 82%; margin-left: auto; animation: float 7s ease-in-out -3.5s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.scene .label { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
                display: flex; align-items: center; gap: 8px; }
.scene .dot { width: 8px; height: 8px; border-radius: 50%; background: #17b26a; box-shadow: 0 0 0 0 rgba(23, 178, 106, .5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(23, 178, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(23, 178, 106, 0); } }
.file { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--bg-2); font-weight: 700; font-size: 14.5px; }
.file small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.file .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--orange-soft); color: var(--orange-ink); display: grid; place-items: center; flex: none; }
.file .ico svg { width: 20px; height: 20px; display: block; }
.send { margin-top: 12px; height: 42px; border-radius: 11px; background: var(--orange); color: #fff; font-weight: 700; font-size: 14px;
        display: grid; place-items: center; position: relative; overflow: hidden; }
.send::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
               transform: translateX(-100%); animation: sweep 3.2s ease-in-out infinite; }
@keyframes sweep { 55%, 100% { transform: translateX(100%); } }
.air { height: 96px; position: relative; display: grid; place-items: center; }
.air svg { width: 132px; height: 82px; overflow: visible; display: block; }
.air .wave { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; opacity: 0; animation: wave 2.4s ease-out infinite; }
.air .wave:nth-child(2) { animation-delay: .35s; }
.air .wave:nth-child(3) { animation-delay: .7s; }
@keyframes wave { 15% { opacity: 1; } 70%, 100% { opacity: 0; } }
.air .parcel { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 12px; background: var(--navy); color: #fff;
               display: grid; place-items: center; box-shadow: 0 8px 20px rgba(19, 31, 56, .28); animation: travel 3.2s cubic-bezier(.6, .05, .3, 1) infinite; }
.air .parcel svg { width: 20px; height: 20px; }
@keyframes travel { 0% { transform: translateY(-46px) scale(.6); opacity: 0; } 18% { opacity: 1; transform: translateY(-30px) scale(1); }
                    82% { opacity: 1; transform: translateY(30px) scale(1); } 100% { opacity: 0; transform: translateY(46px) scale(.6); } }
.panel { background: var(--navy); border-radius: 12px; padding: 14px; color: #dfe5f5; font: 600 13px/1.9 ui-monospace, Consolas, monospace; }
.panel .row { display: flex; justify-content: space-between; opacity: .55; }
.panel .row.new { opacity: 1; color: #fff; background: rgba(255, 122, 0, .22); margin: 0 -8px; padding: 0 8px; border-radius: 7px; animation: arrive 3.2s infinite; }
@keyframes arrive { 0%, 80% { opacity: 0; transform: translateY(6px); } 90%, 100% { opacity: 1; transform: none; } }
.usb { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.usb img { width: 30px; height: 30px; display: block; flex: none; }

/* ---------- strips and grids ---------- */
.ways { padding: 28px 0; border-block: 1px solid var(--line); background: var(--bg-2); }
.ways .wrap { display: flex; flex-wrap: wrap; gap: 12px 34px; justify-content: center; align-items: center; color: var(--muted); font-weight: 600; font-size: 15px; }
.ways b { color: var(--navy); }
.ways i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); display: inline-block; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.split li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.split li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
                    background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c25a00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat; }
.stage { position: relative; background: linear-gradient(145deg, var(--navy), var(--navy-2)); border-radius: 28px; padding: 44px; overflow: hidden; box-shadow: var(--shadow-lg); }
.stage::before { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -140px; border-radius: 50%; background: rgba(255, 122, 0, .35); filter: blur(60px); }
.stage svg { position: relative; display: block; width: 100%; height: auto; }
.stage .arc { fill: none; stroke: #ff9a3d; stroke-width: 9; stroke-linecap: round; animation: wave 2.4s ease-out infinite; opacity: 0; }
.stage .arc:nth-of-type(2) { animation-delay: .35s; }
.stage .arc:nth-of-type(3) { animation-delay: .7s; }
.stage .led { animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; counter-reset: step; position: relative; }
.step { padding: 30px 26px; position: relative; counter-increment: step; transition: transform .3s, box-shadow .3s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step::before { content: counter(step); width: 46px; height: 46px; border-radius: 14px; background: var(--orange); color: #fff; font-weight: 800; font-size: 20px;
                display: grid; place-items: center; margin-bottom: 20px; box-shadow: 0 8px 20px rgba(255, 122, 0, .35); position: relative; }
.step p { color: var(--muted); margin-top: 10px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.feature { padding: 26px 24px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #ffc994; }
.feature .ico { width: 50px; height: 50px; border-radius: 15px; background: var(--orange-soft); color: var(--orange-ink); display: grid; place-items: center; margin-bottom: 18px;
                transition: background .3s, color .3s, transform .3s; }
.feature:hover .ico { background: var(--orange); color: #fff; transform: rotate(-6deg) scale(1.06); }
.feature .ico svg { width: 24px; height: 24px; display: block; }
.feature p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.alt { background: var(--bg-2); }

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.person { padding: 30px 26px; border-top: 4px solid var(--orange); }
.person p { color: var(--muted); margin-top: 10px; }

/* ---------- install the app ---------- */
.app { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.app .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.ways-in { display: grid; gap: 14px; }
.way { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; transition: transform .3s, box-shadow .3s; }
.way:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.way .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--orange-soft); color: var(--orange-ink); display: grid; place-items: center; flex: none; }
.way .ico svg { width: 22px; height: 22px; display: block; }
.way p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ---------- questions ---------- */
.faq { max-width: 820px; margin: 48px auto 0; display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: box-shadow .3s, border-color .3s; }
details[open] { box-shadow: var(--shadow); border-color: #ffc994; }
summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 17px; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; transition: transform .3s, background-color .3s;
                 background: linear-gradient(var(--orange-ink), var(--orange-ink)) center / 12px 2px no-repeat,
                             linear-gradient(var(--orange-ink), var(--orange-ink)) center / 2px 12px no-repeat, var(--orange-soft); }
details[open] summary::after { transform: rotate(45deg);
                 background: linear-gradient(#fff, #fff) center / 12px 2px no-repeat, linear-gradient(#fff, #fff) center / 2px 12px no-repeat, var(--orange); }
details p { color: var(--muted); padding: 0 0 22px; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- closing band, footer ---------- */
.band { padding: 96px 0; }
.band .box { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 30px; padding: 64px 40px; text-align: center; position: relative; overflow: hidden; }
.band .box::before, .band .box::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); }
.band .box::before { width: 380px; height: 380px; left: -120px; top: -160px; background: rgba(255, 122, 0, .45); animation: drift 12s ease-in-out infinite alternate; }
.band .box::after { width: 300px; height: 300px; right: -100px; bottom: -160px; background: rgba(120, 150, 255, .3); }
.band .box > * { position: relative; z-index: 1; }
.band .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.band p { color: rgba(255, 255, 255, .78); margin: 16px auto 30px; max-width: 560px; font-size: 18px; }
footer { background: var(--navy); color: rgba(255, 255, 255, .7); padding: 56px 0 30px; font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
footer .brand { color: #fff; }
footer .brand img { background: #fff; border-radius: 12px; padding: 4px; }
footer h4 { color: #fff; margin: 0 0 14px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
footer a { display: block; color: rgba(255, 255, 255, .7); padding: 4px 0; }
footer a:hover { color: #fff; }
footer .base { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- legal pages ---------- */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); }
.doc .updated { color: var(--muted); margin: 12px 0 36px; }
.doc h2 { font-size: 23px; margin: 40px 0 12px; letter-spacing: -.01em; }
.doc p, .doc li { color: #3b4560; }
.doc p { margin-bottom: 14px; }
.doc ul { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 8px; }
.doc .callout { background: var(--orange-soft); border-radius: 16px; padding: 18px 22px; margin: 0 0 30px; color: var(--navy); }
.fill { background: #fff3a8; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.contact-card { padding: 30px; display: grid; gap: 10px; margin-top: 24px; }

/* ---------- appear on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  section { padding: 72px 0; }
  .hero .wrap, .split, .app { grid-template-columns: 1fr; gap: 44px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps, .people { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .nav nav, .nav .actions { display: none; }
  .burger { display: block; }
  .nav.open nav, .nav.open .actions { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; background: #fff; padding: 8px 24px; }
  .nav.open nav { top: 74px; gap: 0; border-top: 1px solid var(--line); }
  .nav.open nav a { padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav.open .actions { top: calc(74px + var(--menu, 150px)); padding-bottom: 20px; box-shadow: 0 20px 30px rgba(19, 31, 56, .1); }
  .nav.open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav.open .burger span:nth-child(2) { opacity: 0; }
  .nav.open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .features { grid-template-columns: 1fr; }
  .scene .phone, .scene .machine { width: 100%; }
  .stage { padding: 26px; }
  .band .box { padding: 46px 22px; }
  footer .cols { grid-template-columns: 1fr; }
  .brand { font-size: 19px; }
  .brand img { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .air .wave, .stage .arc { opacity: 1; }
  .panel .row.new { opacity: 1; }
  html { scroll-behavior: auto; }
}
