/* OfficeSwap site. Clean white product-page style. */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #e5e5ea;
  --pill: #f2f2f4;
  --brass: #9c6e21;
  --green: #34c759;
  --panel-2: #f2f2f4;
  --ink-soft: #424245;
  --ink-faint: #6e6e73;
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mr-sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mr-serif: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 var(--sf); -webkit-font-smoothing: antialiased; letter-spacing: -0.005em;
}
img { max-width: 100%; }
a { color: var(--ink); }
em { font-style: italic; }

/* ---------- Top nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  padding-top: env(safe-area-inset-top, 0px);
}
.topnav-in { max-width: 1180px; margin: 0 auto; padding: 12px 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.topnav .brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.topnav .brand img { width: 26px; height: 26px; border-radius: 7px; background: #000; }
.pills { display: flex; gap: 4px; }
.pills a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.pills a:hover { color: var(--ink); }
.pills a.active { background: var(--pill); color: var(--ink); }
.pill-btn {
  justify-self: end; display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 999px;
  transition: transform .15s, background .2s;
}
.pill-btn:hover { background: #000; transform: translateY(-1px); }
.pill-btn.lg { font-size: 16px; padding: 13px 26px; }
@media (max-width: 760px) { .pills { display: none; } .topnav-in { grid-template-columns: 1fr auto; } }

/* ---------- Document pages (privacy, terms, support) ---------- */
.wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px 72px; }
body.wide .wrap { max-width: 1120px; }
.wrap h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 8px; }
.wrap h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 600; margin: 40px 0 8px; }
.wrap h3 { font-size: 17px; font-weight: 600; margin: 22px 0 4px; }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.summary { background: var(--bg-2); border-radius: 18px; padding: 20px 24px; margin: 0 0 8px; }
.summary p { margin: 0 0 8px; }
.summary ul { margin: 0; padding-left: 20px; }
.wrap a { color: var(--brass); }
.wrap ul { padding-left: 22px; }
.wrap li { margin: 5px 0; }

/* ---------- Home: shared ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.display {
  font-weight: 500; letter-spacing: -0.034em; line-height: 1.05; margin: 0; text-align: center; text-wrap: balance;
  font-size: clamp(42px, 6.4vw, 80px);
}
.h2 { font-weight: 500; letter-spacing: -0.028em; line-height: 1.08; margin: 0; font-size: clamp(34px, 4.6vw, 60px); text-wrap: balance; }
.center { text-align: center; }
.lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; letter-spacing: -0.005em; margin: 18px auto 0; max-width: 34em; text-align: center; }
section.band { padding: 110px 0; }
section.band.gray { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Realistic iPhone ---------- */
.iphone {
  --w: 300px;
  position: relative; width: var(--w); max-width: 100%; aspect-ratio: 1206 / 2622;
  padding: calc(var(--w) * 0.035); border-radius: calc(var(--w) * 0.175);
  background: #0a0a0b;
  box-shadow:
    0 0 0 calc(var(--w) * 0.009) #d9dbe0,
    0 0 0 calc(var(--w) * 0.016) #a9adb4,
    0 0 0 calc(var(--w) * 0.019) #6c7077,
    0 40px 80px -24px rgba(0,0,0,.35),
    0 18px 36px -18px rgba(0,0,0,.25);
  box-sizing: content-box;
}
.iphone > img, .iphone .screen {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: calc(var(--w) * 0.14); background: #f2f2f7;
}
.iphone .screen { position: relative; overflow: hidden; }
.iphone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.iphone .screen img.on { opacity: 1; }
/* side buttons */
.iphone::before, .iphone::after {
  content: ""; position: absolute; width: calc(var(--w) * 0.012);
  background: linear-gradient(90deg, #8e9299, #d6d8dc 55%, #9da1a8);
  border-radius: 2px;
}
.iphone::before { left: calc(var(--w) * -0.03); top: 22%; height: 17%; box-shadow: 0 calc(var(--w) * -0.14) 0 0 #b9bcc2; }
.iphone::after { right: calc(var(--w) * -0.03); top: 28%; height: 11%; }
.iphone.sm { --w: 240px; }
.iphone.lg { --w: 330px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; text-align: center; overflow: hidden; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.ghost-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 600; padding: 13px 22px; border-radius: 999px; background: var(--pill); }
.ghost-btn:hover { background: #e8e8ed; }
.phones { position: relative; height: clamp(520px, 62vw, 740px); margin-top: 64px; }
.phones .iphone { position: absolute; left: 50%; top: 0; }
.phones .p-center { --w: clamp(250px, 26vw, 330px); transform: translateX(-50%); z-index: 3; }
.phones .p-left { --w: clamp(210px, 22vw, 280px); transform: translateX(-128%) translateY(70px) rotate(-6deg); z-index: 2; }
.phones .p-right { --w: clamp(210px, 22vw, 280px); transform: translateX(28%) translateY(70px) rotate(6deg); z-index: 2; }
.phones::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(transparent, var(--bg)); z-index: 4; }
@media (max-width: 700px) {
  .phones { height: 560px; }
  .phones .p-left, .phones .p-right { display: none; }
  .phones .p-center { --w: 250px; }
}

/* ---------- Activity marquee ---------- */
.activity { position: relative; padding: 30px 0 10px; overflow: hidden; }
.activity::before, .activity::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18%; z-index: 2; pointer-events: none; }
.activity::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.activity::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.lane { display: flex; gap: 14px; width: max-content; padding: 7px 0; animation: slide 60s linear infinite; }
.lane.rev { animation-direction: reverse; animation-duration: 70s; }
.lane.slow { animation-duration: 80s; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lane { animation: none; } }
.chip {
  display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: center;
  width: 230px; padding: 12px 14px 10px; background: #fff; border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.06);
}
.chip .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.chip .ic svg { width: 17px; height: 17px; }
.chip b { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; display: block; line-height: 1.25; }
.chip span { font-size: 12px; color: var(--muted); display: block; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip i { grid-column: 1 / -1; display: block; height: 3px; border-radius: 3px; background: #e9e9ee; margin-top: 10px; overflow: hidden; }
.chip i::after { content: ""; display: block; height: 100%; width: var(--p, 100%); background: var(--green); border-radius: 3px; }
.ic.green { background: #e7f8ec; color: #1f9d48; }
.ic.blue { background: #e6f0ff; color: #1a6ff2; }
.ic.amber { background: #fff4de; color: #c27c00; }
.ic.purple { background: #f1eaff; color: #7a4ddb; }
.ic.pink { background: #ffe9ef; color: #d6345f; }
.ic.gray { background: #efeff4; color: #515154; }
.tada { text-align: center; padding: 40px 0 0; }
.tada .pill-btn { margin-top: 24px; }

/* ---------- Made for (card rail) ---------- */
.rail-wrap { position: relative; margin-top: 48px; }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 24px 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.card {
  flex: none; width: 272px; height: 400px; border-radius: 22px; position: relative; overflow: hidden;
  scroll-snap-align: start; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
}
.card .art { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 110px; }
.card .art svg { width: 96px; height: 96px; opacity: .92; filter: drop-shadow(0 10px 24px rgba(0,0,0,.18)); }
.card .txt { position: relative; padding: 18px 18px 20px; background: linear-gradient(transparent, rgba(0,0,0,.28)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card h3 { margin: 0 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.9); }
.g1 { background: linear-gradient(160deg, #3a7bd5, #1e3c72); }
.g2 { background: linear-gradient(160deg, #f7b267, #c0582b); }
.g3 { background: linear-gradient(160deg, #56ab91, #1d5c4c); }
.g4 { background: linear-gradient(160deg, #a18cd1, #5b3f99); }
.g5 { background: linear-gradient(160deg, #ee9ca7, #b24a6a); }
.g6 { background: linear-gradient(160deg, #4b6cb7, #182848); }
.g7 { background: linear-gradient(160deg, #c79a4a, #6f4e16); }
.g8 { background: linear-gradient(160deg, #6a7385, #2b303b); }
.rail-nav { display: flex; justify-content: flex-end; gap: 8px; max-width: 1180px; margin: 14px auto 0; padding: 0 24px; }
.rail-nav button { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--pill); color: var(--ink); font-size: 18px; cursor: pointer; }
.rail-nav button:hover { background: #e8e8ed; }

/* ---------- Showcase split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .h2 { font-size: clamp(34px, 4vw, 52px); }
.split .lede { text-align: left; margin-left: 0; }
.points { list-style: none; padding: 0; margin: 28px 0 30px; display: flex; flex-direction: column; gap: 10px; }
.points li { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 8px 16px 8px 8px; font-size: 14.5px; color: var(--ink-soft); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.05); }
.points li .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.points li .ic svg { width: 14px; height: 14px; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.seg { display: inline-flex; background: #ebebef; border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: none; background: transparent; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--muted); padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .h2, .split .lede { text-align: center; margin-left: auto; margin-right: auto; } .points { align-items: center; } .points li { align-self: center; } .split .copy { text-align: center; } }

/* ---------- Details grid ---------- */
.panel { background: var(--bg-2); border-radius: 28px; padding: clamp(24px, 4vw, 48px); margin-top: 48px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: #fff; border-radius: 20px; padding: 24px; }
.tile .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.tile .ic svg { width: 20px; height: 20px; }
.tile h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr; } }

/* ---------- Privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.priv { border-top: 1px solid var(--line); padding-top: 18px; }
.priv b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 6px; }
.priv p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ---------- At a glance (specs) ---------- */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 24px; overflow: hidden; margin-top: 48px; }
.spec { background: #fff; padding: 30px 28px; }
.spec b { display: block; font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.spec span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .specs { grid-template-columns: 1fr 1fr; } }

/* ---------- Home FAQ (centered accordion) ---------- */
.qa-list { max-width: 740px; margin: 44px auto 0; display: flex; flex-direction: column; gap: 10px; }
details.q { background: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.05); }
details.q summary { list-style: none; cursor: pointer; padding: 18px 50px 18px 22px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; position: relative; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid var(--faint); border-bottom: 1.6px solid var(--faint); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details.q[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details.q p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.see-all { display: block; text-align: center; margin-top: 22px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); }
.see-all:hover { text-decoration: underline; }

/* ---------- Download CTA ---------- */
.download { text-align: center; padding: 120px 0 100px; background: radial-gradient(60% 60% at 50% 100%, #f1ece2, var(--bg)); }
.download .logo-big { width: 84px; height: 84px; border-radius: 20px; background: #000; box-shadow: 0 16px 40px -12px rgba(0,0,0,.35); }
.download .h2 { margin-top: 26px; }
.download .cta-row { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; align-items: center; }

/* ---------- FAQ page (MirRehab accordion) ---------- */
.faq { padding: 24px 0 40px; font-family: var(--mr-sans); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-head h1 { font-family: var(--mr-serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.1; font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; text-wrap: balance; }
.faq-head p { color: var(--ink-soft); font-size: 16px; margin: 0; }
.faq-head a { color: var(--brass); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
@media (max-width: 620px) { .faq-cols { grid-template-columns: 1fr; } }
.faq-col { display: flex; flex-direction: column; gap: 12px; }
.accordion { background: var(--panel-2); border-radius: 12px; overflow: hidden; }
.accordion-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: none; border: none; text-align: left; cursor: pointer; font: inherit; padding: 16px 18px; font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.6; transition: background-color .15s ease; }
.accordion-q:hover { background: color-mix(in srgb, var(--brass) 6%, transparent); }
.accordion-q .chev { width: 16px; height: 16px; flex: none; color: var(--ink-faint); transition: transform .2s ease; }
.accordion-q[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--brass); }
.accordion-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.accordion-a p { margin: 0 18px 16px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.accordion-a a { color: var(--brass); }
@media (prefers-reduced-motion: reduce) { .accordion-a { transition: none; } }

/* ---------- Footer (MirRehab layout) ---------- */
footer.mr { font-family: var(--mr-sans); line-height: 1.6; padding: 56px 0 32px; border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); color: var(--ink-faint); font-size: 13.5px; background: var(--bg); }
footer.mr .mr-wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
footer.mr a { color: var(--ink-soft); text-decoration: none; font-weight: 600; transition: color .15s; }
footer.mr a:hover { color: var(--brass); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.foot-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; font-size: 18px; color: var(--ink-faint); }
.foot-logo .mk { width: 32px; height: 32px; border-radius: 8px; flex: none; display: block; object-fit: contain; background: #000; box-shadow: 0 1px 3px rgba(14,53,62,.18), inset 0 0 0 1px color-mix(in srgb, var(--line) 60%, transparent); }
.foot-download { margin: -6px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 4px; letter-spacing: .01em; }
.foot-bottom { padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-social { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; flex: none; color: var(--ink-soft); border: 1px solid var(--line); transition: color .15s, border-color .15s, background-color .15s; }
footer.mr a.foot-social:hover { color: var(--brass); border-color: color-mix(in srgb, var(--brass) 40%, var(--line)); background: color-mix(in srgb, var(--brass) 8%, transparent); }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.appstore { display: inline-flex; align-items: center; gap: 10px; background: #111; color: #fff !important; text-decoration: none; padding: 8px 16px 8px 14px; border-radius: 10px; line-height: 1.05; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.appstore svg { width: 22px; height: 22px; flex: none; }
.appstore small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .02em; opacity: .9; }
.appstore strong { display: block; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
