/* ==========================================================================
   Flexibud — site styles
   Colours are taken from the app itself so the site and the product look
   like the same thing:
     #0A1838  the navy behind the launcher icon (adaptive_icon_background)
     #4B39EF  FlutterFlowTheme.primary
     #39D2C0  FlutterFlowTheme.secondary
     #EE8B60  FlutterFlowTheme.tertiary
   ========================================================================== */

:root {
  --navy: #0a1838;
  --navy-soft: #142449;
  --indigo: #4b39ef;
  --indigo-lift: #6553f2;
  --teal: #39d2c0;
  --amber: #ee8b60;
  --ink: #14181b;
  --ink-soft: #57636c;
  --line: #e0e3e7;
  --page: #f1f4f8;
  --card: #ffffff;
  --radius: 14px;
  --wrap: 1080px;
  --shadow: 0 1px 2px rgba(10, 24, 56, .06), 0 8px 24px rgba(10, 24, 56, .06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p  { margin: 0 0 1em; }

/* ------------------------------------------------------------------ header */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 24, 56, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.brand span { color: #fff; font-weight: 750; font-size: 1.05rem; letter-spacing: -.01em; }
.nav a.link { color: #c9d3e8; font-size: .93rem; }
.nav a.link:hover { color: #fff; text-decoration: none; }
.nav a.link[aria-current="page"] { color: #fff; font-weight: 650; }
/* The one action the whole site exists to produce — so it is a button, not
   another grey link, and it sits apart from the navigation items. */
.nav a.nav-get {
  background: var(--indigo); color: #fff; font-weight: 650;
  padding: 7px 15px; border-radius: 8px; margin-left: 4px; white-space: nowrap;
}
.nav a.nav-get:hover { background: var(--indigo-lift); color: #fff; }
.nav-toggle { display: none; }

/* -------------------------------------------------------------------- hero */
.hero { background: linear-gradient(170deg, var(--navy) 0%, var(--navy-soft) 100%); color: #fff; }
.hero .wrap { padding-top: 68px; padding-bottom: 68px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { font-size: clamp(1.02rem, 2.1vw, 1.2rem); color: #c9d3e8; max-width: 56ch; }
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 5px 13px; border-radius: 999px;
  background: rgba(57, 210, 192, .13); border: 1px solid rgba(57, 210, 192, .34);
  color: var(--teal); font-size: .76rem; font-weight: 650; letter-spacing: .07em;
  text-transform: uppercase;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 11px; font-weight: 650; font-size: .96rem;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-lift); text-decoration: none; }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .6); text-decoration: none; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }

/* Store button. Two stacked lines, the way every app site does it — small
   "GET IT ON" over the store name. Deliberately NOT Google's official badge
   image: that artwork comes with brand rules about spacing, minimum size and
   never altering it, and a hand-placed copy is easy to get wrong. If you want
   the real badge, download it from Google's brand guidelines page and drop it
   in here instead. */
.btn-play { flex-direction: column; align-items: flex-start; gap: 0; padding: 9px 26px; line-height: 1.2; }
.btn-play .play-sub { font-size: .62rem; letter-spacing: .1em; font-weight: 600; opacity: .8; }
.btn-play .play-main { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }

/* ------------------------------------------------------------- placeholders
   Deliberately loud. Nothing here should survive to a public launch, so it is
   meant to be impossible to publish by accident without noticing.            */
.slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 22px 16px;
  border: 2px dashed rgba(238, 139, 96, .75); border-radius: var(--radius);
  background: rgba(238, 139, 96, .07); color: var(--amber);
  font-size: .8rem; font-weight: 600; line-height: 1.45;
}
.slot small { display: block; font-weight: 500; opacity: .85; }
.slot--phone { aspect-ratio: 9 / 19.5; max-width: 260px; margin: 0 auto; }
.slot--wide { aspect-ratio: 16 / 9; }

/* Real screenshots. Every capture is a full portrait phone screen and is
   always shown WHOLE — never cropped — as a phone-shaped image on a soft
   card. Cropping to 16:9 cut the screens in half; this keeps them readable. */
.shot { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 18px 44px rgba(10, 24, 56, .22); }
.shot--phone { max-width: 260px; margin: 0 auto; }
.shot-card {
  display: flex; align-items: center; justify-content: center;
  padding: 28px 20px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(75, 57, 239, .10), rgba(57, 210, 192, .12));
}
.shot-card .shot { max-width: 240px; }
.shot-card figcaption { margin-top: 14px; font-size: .9rem; color: var(--ink-soft); text-align: center; }
.shot-card figure { margin: 0; display: flex; flex-direction: column; align-items: center; }

/* ----------------------------------------------------------------- sections */
section { padding: 62px 0; }
section.tight { padding: 44px 0; }
.section-head { max-width: 60ch; margin-bottom: 34px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 0; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: .96rem; }
.card .ico {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 15px;
  display: grid; place-items: center; font-size: 1.15rem;
  background: rgba(75, 57, 239, .1); color: var(--indigo);
}

.band { background: var(--navy); color: #fff; }
.band h2 { color: #fff; }
.band p { color: #c9d3e8; }

/* --------------------------------------------------------------- long copy */
.doc { background: var(--card); }
.doc .wrap { max-width: 780px; padding-top: 52px; padding-bottom: 72px; }
.doc h2 { margin-top: 2.1em; padding-top: .2em; }
.doc h2:first-of-type { margin-top: 1em; }
.doc h3 { margin-top: 1.7em; }
.doc ul, .doc ol { margin: 0 0 1.1em; padding-left: 1.25em; }
.doc li { margin-bottom: .45em; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .93rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--page); font-weight: 650; }
.updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 2em; }

.callout {
  border-left: 3px solid var(--indigo); background: rgba(75, 57, 239, .05);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.5em;
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: var(--amber); background: rgba(238, 139, 96, .08); }

/* --------------------------------------------------------------- contact
   mailto: alone is unreliable — it opens whatever the machine has registered
   as a mail handler, which on a PC with no mail client set up is often just a
   browser doing nothing. So every address is offered three ways: straight into
   Gmail, copied to the clipboard, or handed to the system mail app.          */
.addr {
  display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(.95rem, 2.4vw, 1.18rem); color: #fff; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px;
  padding: 10px 16px; word-break: break-all; user-select: all;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.btn-sm { padding: 9px 16px; font-size: .89rem; border-radius: 9px; }
.btn-copy { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-copy:hover { background: rgba(255, 255, 255, .18); text-decoration: none; }
.btn-copy.done { background: var(--teal); border-color: var(--teal); color: #08312c; }

.card .ways { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; margin-top: 14px; }
.card .ways a { font-size: .9rem; font-weight: 600; }
.card .ways a.alt { color: var(--ink-soft); font-weight: 500; }
.hint { color: var(--ink-soft); font-size: .84rem; margin: 6px 0 0; }

/* ------------------------------------------------------------------ footer */
footer.foot { background: var(--navy); color: #8fa0c0; padding: 46px 0 34px; font-size: .9rem; }
footer.foot .cols { display: flex; flex-wrap: wrap; gap: 40px 64px; margin-bottom: 30px; }
footer.foot h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
footer.foot ul { list-style: none; margin: 0; padding: 0; }
footer.foot li { margin-bottom: 8px; }
footer.foot a { color: #8fa0c0; }
footer.foot a:hover { color: #fff; }
footer.foot .rule { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; }

/* ------------------------------------------------------------------ mobile */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  section { padding: 46px 0; }
  .nav .wrap { gap: 15px; }
  .nav a.link { font-size: .86rem; }
}
@media (max-width: 540px) {
  .nav .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .brand { width: 100%; margin-bottom: 4px; }
  /* Five links plus a button will not fit one phone line. The four navigation
     links share a row and the store button takes its own full-width row
     underneath, where it reads as the call to action rather than a fifth link
     that happened to wrap. */
  .nav a.nav-get {
    width: 100%; margin: 8px 0 2px; text-align: center; padding: 10px 15px;
  }
  .cta-row .btn { width: 100%; justify-content: center; }
  /* .btn-play is a column with left-aligned text, so a full-width version
     would push "GET IT ON / Google Play" against the left edge. Centre it. */
  .cta-row .btn-play { align-items: center; }
  .doc table, .doc thead, .doc tbody, .doc th, .doc td, .doc tr { display: block; }
  .doc thead { display: none; }
  .doc td { border: none; padding: 3px 0; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .doc td::before { content: attr(data-label); display: block; font-weight: 650; font-size: .82rem; color: var(--ink-soft); }
}
