/* TeamStays — site styles (no external resources) */
:root {
  --navy: #0f2d55;
  --navy-2: #163d70;
  --teal: #13a3a3;
  --teal-2: #0c7f86;
  --bg: #f6f9fc;
  --bg-alt: #eaf2f8;
  --card: #ffffff;
  --fg: #142235;
  --muted: #51607a;
  --line: #d6e0ea;
  --link: #0b5c8f;
  --shadow: 0 10px 30px rgba(15, 45, 85, .10);
  --radius: 18px;
  --max: 1140px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1520; --bg-alt: #121d2b; --card: #162334; --fg: #e7eef6; --muted: #a7b5c7;
    --line: #26384d; --link: #7cc9ef; --shadow: 0 10px 30px rgba(0,0,0,.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1520; --bg-alt: #121d2b; --card: #162334; --fg: #e7eef6; --muted: #a7b5c7;
  --line: #26384d; --link: #7cc9ef; --shadow: 0 10px 30px rgba(0,0,0,.35); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 24px; } }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--card); padding: .5rem 1rem; border-radius: 8px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--teal-2); margin-bottom: .6rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--teal); } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--fg); font-weight: 800; letter-spacing: .02em; }
.brand img { width: 42px; height: 42px; border-radius: 10px; background: #fff; }
.brand span small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .08em; }
.nav-links { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { display: block; padding: .5rem .8rem; border-radius: 10px; text-decoration: none; color: var(--fg); font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--bg-alt); color: var(--link); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--card); border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem .6rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.3rem; border-radius: 12px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #04252a; }
.btn-primary:hover { background: #18b9b9; box-shadow: 0 8px 20px rgba(19,163,163,.35); }
.btn-dark { background: #0b1220; color: #fff; }
.btn-dark:hover { box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn svg { width: 22px; height: 22px; flex: none; }
.play-btn { line-height: 1.1; padding: .65rem 1.2rem; }
.play-btn small { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,30,58,.94) 0%, rgba(10,30,58,.8) 45%, rgba(10,30,58,.35) 100%); }
.hero .container { position: relative; z-index: 1; padding-top: clamp(4rem, 10vw, 7.5rem); padding-bottom: clamp(4rem, 10vw, 7.5rem); }
.hero h1 { max-width: 16ch; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 44ch; color: #d9e6f3; }
.hero .eyebrow { color: #6fe0dc; }

/* Sections */
section.block { padding: clamp(3rem, 8vw, 5.5rem) 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-top: .2rem; }
.card p:last-child { margin-bottom: 0; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: .9rem;
  background: linear-gradient(135deg, var(--teal), var(--navy-2)); color: #fff; }
.icon-tile svg { width: 24px; height: 24px; }

/* App showcase */
.app-card { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center; }
.app-card .app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .app-card { grid-template-columns: 1fr; } }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 1rem; padding: 0; list-style: none; }
.tags li { font-size: .8rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }

.app-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .app-hero { grid-template-columns: 1fr; } }
.app-hero .phone { justify-self: center; width: min(300px, 78vw); border-radius: 34px; border: 8px solid #0b1220; box-shadow: 0 30px 60px rgba(0,0,0,.35); overflow: hidden; background: #0b1220; }
.app-title { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.app-title img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.app-title h1 { margin: 0; font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.app-title p { margin: 0; color: #bcd0e6; }

/* Screenshot gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 1rem; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: .5rem 4px 1.2rem; -webkit-overflow-scrolling: touch; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 9 / 20; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: .5rem; }
.gallery-controls { display: flex; gap: .5rem; justify-content: flex-end; margin-bottom: .6rem; }
.gallery-controls button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; font-size: 1.2rem; }
.gallery-controls button:hover { border-color: var(--teal); }

/* Facts list */
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.check { list-style: none; padding: 0; margin: 0; }
.check li { padding-left: 1.9rem; position: relative; margin-bottom: .7rem; }
.check li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304252a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, var(--teal-2) 100%); color: #fff; border-radius: 24px; padding: clamp(2rem, 5vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta h2 { margin-bottom: .3rem; }
.cta p { margin: 0; color: #d4e4f2; }

/* Legal / policy pages */
.page-head { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 70%, var(--teal-2) 100%); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem); }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin-bottom: .4rem; }
.page-head p { color: #cfe0f0; margin: 0; }
.breadcrumb { font-size: .88rem; margin-bottom: .8rem; color: #bcd0e6; }
.breadcrumb a { color: #fff; }
.legal-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; padding: 2.5rem 0 4rem; align-items: start; }
@media (max-width: 900px) { .legal-wrap { grid-template-columns: 1fr; } }
.toc { position: sticky; top: 88px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; font-size: .92rem; }
@media (max-width: 900px) { .toc { position: static; } }
.toc strong { display: block; margin-bottom: .5rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin: .25rem 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.legal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.5rem); min-width: 0; }
.legal section { scroll-margin-top: 90px; }
.legal h2 { font-size: 1.25rem; margin: 1.8rem 0 .5rem; padding-top: .2rem; }
.legal section:first-child h2 { margin-top: 0; }
.legal p, .legal li { overflow-wrap: anywhere; }
.legal ul { padding-left: 1.3rem; }
.legal-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; }
.policy-links { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.policy-links a { display: block; padding: 1.1rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--fg); font-weight: 700; }
.policy-links a span { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); margin-top: .2rem; }
.policy-links a:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 2.8rem; margin-bottom: 1.1rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.05rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--teal); color: #04252a; font-weight: 800; display: grid; place-items: center; }
.note { background: var(--bg-alt); border-left: 4px solid var(--teal); padding: 1rem 1.2rem; border-radius: 10px; }

/* Footer */
.site-footer { background: #0a1a30; color: #c6d4e4; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: #e8f1fa; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #6fe0dc; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; color: #fff; font-weight: 800; }
.footer-brand img { width: 44px; height: 44px; border-radius: 10px; background: #fff; }
.footer-bottom { border-top: 1px solid #1d3352; margin-top: 2.5rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .85rem; }
.theme-toggle { background: none; border: 1px solid #2b4566; color: #c6d4e4; border-radius: 8px; padding: .3rem .7rem; cursor: pointer; font: inherit; }

/* Reveal animation (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .toc, .skip { display: none !important; }
  .page-head { background: none; color: #000; }
  .legal { border: 0; padding: 0; }
  .legal-wrap { display: block; }
}
