/* Legends Connect website. Colours come from the logo: ink navy, violet, blue, sky and cyan. */
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-wght.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-grotesque-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --ink: #050A3A;       /* "LEGENDS" navy */
  --violet: #7A14F0;    /* left link */
  --blue: #1C3AEC;      /* middle of "CONNECT" */
  --sky: #007FF1;
  --cyan: #00C3F2;      /* right link */
  --paper: #F5F6FD;
  --line: #E1E4F4;
  --muted: #4F5680;
  --grad: linear-gradient(100deg, var(--violet) 0%, var(--blue) 48%, var(--sky) 72%, var(--cyan) 100%);
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --r: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; max-width: 22ch; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.center { text-align: center; }
.fine { font-size: .9rem; color: var(--muted); }
.section-lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; margin-bottom: 2.2rem; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 0; font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  color: #fff; background: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset; }
.btn:hover { color: #fff; background: #11186a; }
.btn-big { min-height: 56px; padding: 0 28px; font-size: 1.06rem; border-radius: 16px; }
.btn-small { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: .95rem; }
.btn-quiet { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-quiet:hover { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--violet); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(245, 246, 253, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.site-head { border-bottom-color: rgba(225, 228, 244, .9); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand img { height: 30px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.site-nav a:hover { color: var(--blue); background: rgba(28, 58, 236, .07); }
.site-nav a.btn { color: #fff; margin-left: 6px; padding: 0 16px; }
.site-nav a.btn:hover { background: #11186a; color: #fff; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; margin: auto; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ''; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(5, 10, 58, .25); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; font-size: 1.05rem; }
  .site-nav a.btn { margin: 8px 0 0; min-height: 50px; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 32px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy h1 { max-width: 13ch; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 46ch; margin-bottom: 1.6rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-art { position: relative; height: 580px; }
.device { margin: 0; background: #fff; overflow: hidden; }
.phone { border-radius: 34px; padding: 7px; background: #0B0F33; box-shadow: 0 40px 70px -30px rgba(5, 10, 58, .55), 0 0 0 1px rgba(5, 10, 58, .08); }
.phone img { border-radius: 28px; }
.hero-art .phone { position: absolute; width: min(250px, 42%); }
.phone-a { left: 2%; top: 0; transform: rotate(-3deg); z-index: 2; }
.phone-b { right: 2%; top: 64px; transform: rotate(3deg); z-index: 1; }
.hero-art .phone img { aspect-ratio: 600 / 1100; object-fit: cover; object-position: top; }
.link { position: absolute; left: 50%; top: 44%; width: 46%; transform: translate(-50%, -50%) rotate(-28deg); z-index: 3; filter: drop-shadow(0 14px 22px rgba(28, 58, 236, .35)); }
.tag { position: absolute; z-index: 4; margin: 0; font-weight: 650; font-size: .88rem; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 999px; box-shadow: 0 10px 24px -12px rgba(5, 10, 58, .4); }
.tag-a { left: 6%; top: 448px; }
.tag-b { right: 3%; top: 516px; }
.trades { list-style: none; padding: 0; margin-top: 44px; display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; }
.trades li { font-size: .92rem; font-weight: 550; color: var(--muted); padding: 6px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { height: 450px; max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-art .phone { width: 47%; }
  .tag-a { top: auto; bottom: 46px; left: 0; } .tag-b { top: auto; bottom: 0; right: 0; }
}

/* Bands (dark sections) */
.band { padding: clamp(64px, 9vw, 110px) 0; }
.how { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.how::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.how h2 { color: #fff; }
.how .section-lead { color: rgba(255, 255, 255, .72); }
.steps { list-style: none; margin: 0; padding: 4px max(20px, calc((100vw - 1180px) / 2)) 24px; scroll-padding-inline: max(20px, calc((100vw - 1180px) / 2)); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 270px); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
.step { scroll-snap-align: start; }
.step .phone { background: #1a2160; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); margin-bottom: 22px; }
.step .phone img { aspect-ratio: 600 / 1100; object-fit: cover; object-position: top; }
.step h3 { color: #fff; display: flex; align-items: center; gap: 12px; font-size: 1.22rem; }
.step .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--body); font-size: .95rem; font-weight: 700; color: #fff; background: var(--grad); }
.step p { color: rgba(255, 255, 255, .75); font-size: .98rem; }

/* Features */
.features { padding: clamp(64px, 9vw, 110px) 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.grid article { background: #fff; padding: 26px 26px 22px; }
.grid article p { color: var(--muted); font-size: .98rem; margin: 0; }
.grid h3 { position: relative; padding-left: 18px; }
.grid h3::before { content: ''; position: absolute; left: 0; top: .32em; width: 6px; height: .9em; border-radius: 3px; background: var(--grad); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid { grid-template-columns: 1fr; } }

/* Teams */
.teams { background: #fff; border-block: 1px solid var(--line); }
.teams-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.teams p { color: var(--muted); font-size: 1.08rem; }
.laptop { border-radius: 14px; box-shadow: 0 40px 80px -40px rgba(5, 10, 58, .5), 0 0 0 1px var(--line); }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 500; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); }
.ticks li::after { content: ''; position: absolute; left: 7px; top: calc(.2em + 6px); width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
@media (max-width: 900px) { .teams-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Pricing */
.pricing { padding: clamp(64px, 9vw, 110px) 0; }
.switch { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.05rem; cursor: pointer; margin-bottom: 30px; user-select: none; padding: 12px 20px 12px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--blue), 0 14px 30px -20px rgba(28, 58, 236, .8); }
.switch b { color: var(--violet); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.track { width: 50px; height: 30px; border-radius: 999px; background: #CDD2EC; position: relative; transition: background .2s; flex: none; }
.track::after { content: ''; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(5,10,58,.25); transition: transform .2s; }
.switch input:checked + .track { background: var(--blue); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid var(--sky); outline-offset: 3px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; margin-bottom: 22px; }
.plan { background: #fff; border-radius: var(--r); padding: 26px 24px; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.plan h3 { font-size: 1.35rem; margin-bottom: .3em; }
.price { margin: 0 0 .4em; }
.price b { font-family: var(--display); font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; }
.price span { color: var(--muted); font-size: .95rem; }
.who { color: var(--muted); font-size: .95rem; min-height: 3em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; font-size: .95rem; flex: 1; align-content: start; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 9px; height: 5px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.plan.best { box-shadow: 0 0 0 2px var(--blue), 0 30px 60px -36px rgba(28, 58, 236, .6); }
.flag { position: absolute; top: -13px; left: 24px; margin: 0; font-size: .8rem; font-weight: 700; color: #fff; background: var(--grad); padding: 4px 12px; border-radius: 999px; }
@media (max-width: 1040px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .plans { grid-template-columns: 1fr; } .who { min-height: 0; } }

/* Phone install */
.phone-steps { background: linear-gradient(160deg, #0A1150 0%, var(--ink) 60%); color: #fff; }
.phone-steps h2 { color: #fff; }
.phone-steps p { color: rgba(255, 255, 255, .78); }
.phone-steps .fine { color: rgba(255, 255, 255, .6); }
.phone-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; }
.os-tabs { display: inline-flex; background: rgba(255, 255, 255, .08); padding: 4px; border-radius: 14px; margin: 8px 0 18px; }
.os-tabs button { border: 0; background: transparent; color: rgba(255, 255, 255, .8); font: 600 .95rem var(--body); padding: 10px 16px; border-radius: 10px; cursor: pointer; }
.os-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.how-list { margin: 0 0 18px; padding-left: 1.3em; display: grid; gap: 10px; max-width: 54ch; }
.how-list li::marker { color: var(--cyan); font-weight: 700; }
.phone-steps .btn { background: #fff; color: var(--ink); }
.phone-steps .btn:hover { color: var(--violet); }
.app-icon { width: min(260px, 70%); margin: 0 auto; border-radius: 22%; box-shadow: 0 40px 80px -30px rgba(0, 195, 242, .45), 0 0 0 1px rgba(255,255,255,.1); }
@media (max-width: 860px) { .phone-grid { grid-template-columns: 1fr; } .app-icon { width: 160px; grid-row: 1; margin: 0; } }

/* Privacy */
.privacy { padding: clamp(64px, 9vw, 110px) 0; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.privacy p { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr; gap: 20px; } }

/* FAQ */
.faq { padding: 0 0 clamp(64px, 9vw, 110px); }
.faq h2 { margin-bottom: 1rem; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-weight: 650; font-size: 1.08rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { color: var(--muted); padding-bottom: 8px; max-width: 64ch; }

/* Final call to action */
.final { padding: 0 0 clamp(64px, 9vw, 100px); }
.final-inner { background: var(--grad); color: #fff; border-radius: 28px; padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.final-inner h2 { color: #fff; margin-inline: auto; }
.final-inner p { color: rgba(255, 255, 255, .9); font-size: 1.1rem; max-width: 48ch; margin: 0 auto 1.6rem; }
.final-mark { width: 84px; margin: 0 auto 18px; filter: brightness(0) invert(1); opacity: .95; }

/* Footer */
.site-foot { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 56px 0 28px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h3 { color: #fff; font-family: var(--body); font-size: .95rem; font-weight: 700; margin-bottom: .8em; letter-spacing: 0; }
.foot-grid a, .foot-grid span { display: block; color: rgba(255, 255, 255, .8); text-decoration: none; padding: 3px 0; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.foot-grid .muted { color: rgba(255, 255, 255, .55); }
.foot-logo { width: 200px; margin-bottom: 12px; }
.legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; font-size: .82rem; color: rgba(255, 255, 255, .55); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* Help button */
.help-btn { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 50; width: 58px; height: 58px; border-radius: 50%; border: 0; color: #fff; background: var(--grad); cursor: pointer; display: grid; place-items: center; box-shadow: 0 16px 30px -12px rgba(28, 58, 236, .7); }
.help-panel { position: fixed; right: 18px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 50; width: min(320px, calc(100vw - 36px)); background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 30px 60px -20px rgba(5, 10, 58, .45), 0 0 0 1px var(--line); display: grid; gap: 10px; }
.help-panel h3 { margin: 0; }
.help-panel p { margin: 0 0 4px; color: var(--muted); font-size: .95rem; }
.help-panel[hidden] { display: none; }

/* video */
.watch { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 48px); }
.watch-video { display: block; width: 100%; max-width: 1040px; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r); background: var(--ink); box-shadow: 0 30px 60px -30px rgba(5, 10, 58, .45); }

/* share strip under prices */
.share-strip { margin: 36px auto 0; max-width: 820px; padding: 24px 26px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -28px rgba(5, 10, 58, .35); position: relative; overflow: hidden; }
.share-strip::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.share-strip h3 { margin: 0 0 8px; font-family: var(--display); font-size: 1.4rem; letter-spacing: -0.02em; }
.share-strip ul { margin: 12px 0; padding-left: 20px; } .share-strip li { margin: 6px 0; color: var(--muted); } .share-strip li b { color: var(--ink); }

.plan-wide { display: grid; grid-template-columns: 1fr 2fr auto; gap: 18px 28px; align-items: center; margin-bottom: 22px; }
.plan-wide ul { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 22px; } .plan-wide .who { margin: 0; min-height: 0; }
@media (max-width: 760px) { .plan-wide { grid-template-columns: 1fr; } }
