/*
 * Beam's site, drawn with Beam's own design system: the palette, type scale and shapes are the
 * app's (shared/kotlin/.../ui/theme/Theme.kt), so the page looks like the thing it is selling.
 * Flat surfaces, hairlines, one purple. No glass, no gradients, no glow.
 */

:root {
  --canvas: #FFFFFF;
  --surface: #F5F5F8;
  --card: #FFFFFF;
  --ink: #17161C;
  --on-ink: #FFFFFF;
  --muted: #83828F;
  --hair: #ECECF1;
  --accent: #8E7CF3;
  --on-accent: #FFFFFF;
  --accent-soft: #EDE8FF;
  --green: #52C98B;
  --yellow: #F5C443;
  --blue: #5B93F5;
  --danger: #F2545B;
  --bezel: #17161C;
  --scrim: rgba(23, 22, 28, 0.06);

  --r-card: 24px;
  --r-tile: 18px;
  --r-badge: 14px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #101015; --surface: #1A1A21; --card: #1A1A21; --ink: #F2F1F6; --on-ink: #101015;
    --muted: #918FA0; --hair: #27262F; --accent: #A797FF; --on-accent: #17132B; --accent-soft: #272238;
    --green: #5BD79A; --yellow: #FFD35C; --blue: #78A9FF; --danger: #FF6B70; --bezel: #2A2932;
    --scrim: rgba(0, 0, 0, 0.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #101015; --surface: #1A1A21; --card: #1A1A21; --ink: #F2F1F6; --on-ink: #101015;
  --muted: #918FA0; --hair: #27262F; --accent: #A797FF; --on-accent: #17132B; --accent-soft: #272238;
  --green: #5BD79A; --yellow: #FFD35C; --blue: #78A9FF; --danger: #FF6B70; --bezel: #2A2932;
  --scrim: rgba(0, 0, 0, 0.3); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font);
  font-weight: 500; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* Material Symbols Rounded, filled: the same glyph set as the app's Icons.Rounded. */
.ms {
  font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; line-height: 1;
  font-size: 22px; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; user-select: none;
  display: inline-block; flex: none;
}
/* Device glyphs read better outlined: filled, a laptop is a solid slab at badge size. */
.ms.o { font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24; }

/* ---------- the app's parts ---------- */

.card { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-card); }
.tile { background: var(--surface); border-radius: var(--r-tile); }

.badge {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--accent); flex: none;
}
.badge .ms { font-size: 21px; }
.badge.sq { width: 38px; height: 38px; border-radius: var(--r-badge); }
.badge.sq .ms { font-size: 18px; }
.badge.soft { background: var(--surface); color: var(--ink); }
.k-image { background: var(--yellow); } .k-pdf { background: var(--danger); }
.k-video { background: var(--green); } .k-doc { background: var(--blue); } .k-audio { background: var(--accent); }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px;
  padding: 0 24px; border-radius: 999px; background: var(--ink); color: var(--on-ink);
  font: 700 15px/1 var(--font); letter-spacing: -0.01em; text-decoration: none; border: 0;
  cursor: pointer; transition: transform .14s cubic-bezier(.16,.84,.24,1), background .14s;
  white-space: nowrap;
}
.pill:active { transform: scale(.96); }
.pill .ms { font-size: 20px; }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hair); }
.pill.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.pill.small { height: 36px; padding: 0 16px; font-size: 13.5px; }
.pill[aria-disabled="true"] { background: var(--hair); color: var(--muted); pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px;
  border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }

.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.row + .row { border-top: 1px solid var(--hair); }
.row .txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.row b, .t-row { font-weight: 700; font-size: 15px; letter-spacing: -0.012em; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row i, .t-cap { font-style: normal; font-size: 12.5px; color: var(--muted); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric { font-weight: 800; font-size: 15px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.track { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; margin: 0 14px 14px; }
.track > span { display: block; height: 100%; width: 4%; background: var(--ink); border-radius: 999px; }

/* ---------- nav ---------- */

.nav { position: sticky; top: 0; z-index: 10; background: var(--canvas); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800;
  font-size: 20px; letter-spacing: -0.03em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav .links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; font-weight: 600; }
.nav .links a { text-decoration: none; color: var(--muted); }
.nav .links a:hover { color: var(--ink); }
.nav.scrolled { box-shadow: 0 1px 0 var(--hair); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); cursor: pointer; flex: none;
  transition: transform .14s cubic-bezier(.16,.84,.24,1);
}
.icon-btn:active { transform: scale(.92); }
.icon-btn .ms { font-size: 19px; }
.nav .icon-btn { margin-right: -16px; }

/* ---------- hero ---------- */

.hero { padding: 56px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 4.9vw, 68px); line-height: 0.98; letter-spacing: -0.048em; margin: 22px 0 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 19px; color: var(--muted); max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.fine { margin-top: 18px; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fine span { display: inline-flex; align-items: center; gap: 6px; }
.fine .ms { font-size: 17px; color: var(--green); }

/* The live demo: a phone sending to a PC, both drawn with the app's own parts. */
/* The stage is positioned out of flow so its fixed layout width never widens the column. */
.stage-fit { width: 100%; min-width: 0; position: relative; }
/* Laid out at 700×620 and scaled to fit its column, so it keeps its proportions at every width. */
.stage { position: absolute; top: 0; left: 0; width: 700px; height: 620px; transform-origin: top left; }
.stage.narrow { width: 276px; height: 556px; }
.stage.narrow .win { display: none; }

.win {
  position: absolute; top: 0; right: 0; width: 404px; border-radius: 14px; overflow: hidden;
  background: var(--canvas); border: 1px solid var(--hair); box-shadow: 0 30px 60px -30px var(--scrim), 0 2px 8px var(--scrim);
}
.win-bar { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 0 0 14px; font-size: 12px;
  font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--hair); }
.win-bar img { width: 16px; height: 16px; border-radius: 4px; }
.win-bar .ctl { margin-left: auto; display: flex; }
.win-bar .ctl span { width: 44px; height: 36px; display: grid; place-items: center; font-size: 16px; }
.win-body { padding: 18px 18px 20px; display: grid; gap: 14px; }
.screen-title { font-weight: 800; font-size: 26px; letter-spacing: -0.035em; line-height: 1; }
.sect { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; margin: 2px 4px -6px; }

.phone {
  position: absolute; left: 0; bottom: 0; width: 276px; height: 556px; border-radius: 46px;
  background: var(--canvas); border: 9px solid var(--bezel); overflow: hidden;
  box-shadow: 0 40px 70px -35px var(--scrim);
}
.phone::before { content: ""; position: absolute; top: 10px; left: 50%; width: 12px; height: 12px;
  margin-left: -6px; border-radius: 50%; background: var(--bezel); }
.phone-body { padding: 42px 14px 14px; display: grid; gap: 12px; }
.phone .send-card { position: absolute; left: 14px; right: 14px; bottom: 14px; }
.phone .screen-title { font-size: 25px; }
.phone .row { padding: 11px 11px; gap: 10px; }
.phone .row b { font-size: 14px; }
.phone .row i { font-size: 11.5px; }
.phone .badge { width: 36px; height: 36px; }
.phone .badge .ms { font-size: 18px; }
.phone .pill.small { height: 30px; padding: 0 12px; font-size: 12.5px; }

.dev-card .state { display: flex; align-items: center; gap: 8px; }
.ok { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.ok .ms { font-size: 18px; }
.send-card { background: var(--accent); color: var(--on-accent); border-radius: var(--r-card); }
.send-card .row i { color: color-mix(in srgb, var(--on-accent) 75%, transparent); }
.send-card .badge { background: var(--on-accent); color: var(--accent); }

.toast {
  position: absolute; left: 18px; right: 18px; bottom: 16px; background: var(--ink); color: var(--on-ink);
  border-radius: var(--r-tile); padding: 12px 14px; font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: opacity .22s, transform .22s cubic-bezier(.16,.84,.24,1);
}
.toast.on { opacity: 1; transform: none; }
.fresh { animation: fresh .5s cubic-bezier(.16,.84,.24,1); }
@keyframes fresh { from { opacity: 0; transform: translateY(-6px); } }
.tap { animation: tap .28s cubic-bezier(.16,.84,.24,1); }
@keyframes tap { 50% { transform: scale(.92); } }

/* ---------- sections ---------- */

section { padding: 96px 0; }
.band { background: var(--surface); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.02; letter-spacing: -0.04em; margin-top: 12px; }
.intro { max-width: 640px; }
.intro p { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.plat { padding: 22px; display: grid; gap: 14px; align-content: start; }
.plat h3 { font-size: 19px; letter-spacing: -0.025em; }
.plat p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.plat .how { font-size: 13px; font-weight: 600; color: var(--ink); background: var(--surface); border-radius: 12px; padding: 10px 12px; line-height: 1.45; }
.plat .badge { background: var(--ink); color: var(--on-ink); }

/* Any file */
.anyfile .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.anyfile .art { border-radius: 32px; background: var(--canvas); overflow: hidden; aspect-ratio: 3 / 2; }
.anyfile .art img { width: 100%; height: 100%; object-fit: cover; }
.kinds { margin-top: 30px; overflow: hidden; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.pledge { padding: 22px; display: grid; gap: 18px; align-content: start; }
.pledge h3 { font-size: 21px; letter-spacing: -0.03em; }
.pledge p { font-size: 15px; color: var(--muted); }
.demo { background: var(--surface); border-radius: var(--r-tile); padding: 4px 0; }
.demo .row + .row { border-color: var(--hair); }
.switch { width: 46px; height: 28px; border-radius: 999px; background: var(--ink); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--canvas); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.honest { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); max-width: 760px; }
.honest .ms { font-size: 19px; margin-top: 1px; }
.honest a { color: var(--ink); font-weight: 600; }

/* Steps */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { display: flex; gap: 14px; padding: 22px; }
.step + .step { border-left: 1px solid var(--hair); }
.num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; flex: none; }
.step b { display: block; font-weight: 700; font-size: 16px; letter-spacing: -0.015em; }
/* Scoped to the text column: a bare `.step span` also caught the number circle and greyed its digit out. */
.step div > span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--muted); }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.dl { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.dl.mine { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.dl h3 { font-size: 21px; letter-spacing: -0.03em; }
.dl dl { margin: 0; display: grid; gap: 6px; font-size: 13.5px; }
.dl dl div { display: flex; justify-content: space-between; gap: 12px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.dl .pill { margin-top: auto; width: 100%; }
.dl .badge { background: var(--ink); color: var(--on-ink); }
.dl .yours { font-size: 12px; font-weight: 700; color: var(--accent); margin-left: auto; align-self: center; }
.dl-top { display: flex; gap: 12px; }

/* FAQ page */
.faq { max-width: 760px; margin-top: 36px; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: 22px 4px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ms { margin-left: auto; color: var(--muted); transition: transform .22s cubic-bezier(.16,.84,.24,1); }
.faq details[open] summary .ms { transform: rotate(45deg); }
.faq .a { padding: 0 4px 24px; color: var(--muted); display: grid; gap: 12px; max-width: 64ch; }
.faq .a a { color: var(--ink); font-weight: 600; }

/* Footer */
footer { padding: 40px 0 56px; border-top: 1px solid var(--hair); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; font-size: 14px; color: var(--muted); }
footer a { text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--ink); }
footer .brand { color: var(--ink); font-size: 17px; margin-right: auto; }
footer .brand img { width: 24px; height: 24px; border-radius: 6px; }

/* ---------- narrower screens ---------- */

@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .platforms, .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anyfile .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav .links a:not(.keep) { display: none; }
  .hero { padding: 28px 0 64px; }
  section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--hair); }
  .lede { font-size: 17px; }
}
@media (max-width: 560px) {
  .platforms, .downloads { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
