/* Vistellar — get.vistellar.app. Same look as vistellar.app: dark only, neutral gray; the app icon and the footage are the only colour. */

:root {
  --bg: #111111;
  --surface: #1e1e1e;
  --line: #3a3a3a;
  --ink: #ffffff;
  --ink-soft: #9a9a9a;
  --button: #2a2a2a;
  /* the app's main button: a faint bright rim plus a touch of highlight along the top edge */
  --button-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);

  /* Every Fraunces rule pins the smallest optical size, as in the App Store screenshots: left on auto, large titles
     switch to the high-contrast display cut, whose narrow letters and tight fit read cramped. Write it after the
     `font` shorthand in the same rule: the shorthand resets both properties. */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; }
h1, p, figure { margin: 0; }
i { font-style: normal; }

.page { --col: min(480px, 100vw - 40px); width: var(--col); margin: 0 auto; }

/* ---------- first screen (phones): top bar, title, two lines of copy, video card, button ---------- */
/* Exactly one screen tall so the moving picture and the button are both in view; the card absorbs the slack. */
.screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  min-height: 580px;
  padding: calc(12px + env(safe-area-inset-top)) 0 calc(12px + env(safe-area-inset-bottom));
}

/* Top bar: the app as the store lists it (icon, name, what it is) and a small download button on the right. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; -webkit-user-select: none; user-select: none; }
.brand img { flex: none; width: 40px; height: 40px; border-radius: 22.37%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand-name {
  font: 400 19px/1 var(--serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 9;
  letter-spacing: -0.01em;
}
.brand-sub { color: var(--ink-soft); font-size: 12.5px; line-height: 1.2; white-space: nowrap; }

.get {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--button);
  box-shadow: var(--button-edge);
  color: var(--ink);
  font: 600 14px/1 var(--sans);
  letter-spacing: 0.06em;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}
.get::after { content: ""; position: absolute; inset: -8px -6px; } /* a finger-sized target around the small pill */
.get:not(.is-soon):hover { background: #313131; }
.get:not(.is-soon):active { background: #363636; }
.get.is-soon { color: var(--ink-soft); font-weight: 500; letter-spacing: 0; cursor: default; }

h1 {
  margin-top: 20px;
  font: 400 clamp(38px, 11.5vw, 58px)/1.02 var(--serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 9;
  letter-spacing: -0.02em;
}

/* What it makes, then one line of feeling. */
.sub { margin-top: 12px; color: var(--ink-soft); font-size: 14px; line-height: 1.45; text-wrap: balance; }
.feel { margin-top: 6px; font-size: 15px; font-weight: 600; line-height: 1.45; }

/* ---------- video card ---------- */
/* Vertical footage, cropped top and bottom to whatever height is left on a phone (never wider than 9:16,
   which would crop the sides instead). The gray card shows only if neither the video nor its poster loads. */
.media {
  position: relative;
  flex: 1 1 0;
  min-height: 240px;
  max-height: calc(var(--col) * 16 / 9);
  margin-top: 16px;
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  pointer-events: none;
}
.media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit; /* Safari does not always clip a playing video to the parent's rounded corners */
}

/* ---------- main download button: the app's gray capsule ---------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: none;
  width: 100%;
  min-height: 54px;
  margin-top: 14px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--button);
  box-shadow: var(--button-edge);
  color: var(--ink);
  font: 600 clamp(15px, 4.4vw, 17px)/1.2 var(--sans); /* "Coming soon on the App Store" stays on one line on a 360 px phone */
  white-space: nowrap;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}
.cta svg { width: 20px; height: 20px; flex: none; }
.cta:not(.is-soon):hover { background: #313131; }
.cta:not(.is-soon):active { background: #363636; }
.cta.is-soon { cursor: default; }

.assure {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.3;
}
.assure i { color: var(--ink); margin-right: 2px; }

/* Short phones (an in-app browser below the ad's chrome): tighter type and gaps so the card keeps most of its height. */
@media (max-width: 899px) and (max-height: 720px) {
  .top { gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  h1 { margin-top: 14px; font-size: min(10.5vw, 42px); }
  .sub { margin-top: 8px; line-height: 1.4; }
  .feel { margin-top: 4px; font-size: 14px; line-height: 1.4; }
  .media { margin-top: 12px; }
  .cta { min-height: 50px; margin-top: 12px; }
  .assure { margin-top: 8px; font-size: 12.5px; }
}

/* ---------- below the first screen: three short points ---------- */
.more { padding: 28px 0 calc(40px + env(safe-area-inset-bottom)); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.points li { padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.points b { display: block; font-weight: 600; font-size: 16px; }
.points span { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 14px; }

/* ---------- desktop: text on the left, the whole 9:16 card on the right ---------- */
@media (min-width: 900px) {
  .page {
    --col: min(1040px, 100vw - 64px);
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr auto auto auto auto auto auto 1fr;
    grid-template-areas:
      "top    top"
      ".      media"
      "title  media"
      "sub    media"
      "feel   media"
      "cta    media"
      "assure media"
      "points media"
      ".      media";
    column-gap: clamp(48px, 7vw, 104px);
    padding-bottom: 48px;
  }
  .screen, .more { display: contents; }
  .top { grid-area: top; padding: 28px 0 0; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 21px; }
  .brand-sub { font-size: 13px; }
  .get { height: 34px; min-width: 76px; }
  h1 { grid-area: title; margin: 0; font-size: clamp(48px, 4.9vw, 72px); }
  .sub { grid-area: sub; margin-top: 22px; max-width: 27em; font-size: 18px; }
  .feel { grid-area: feel; margin-top: 8px; font-size: 18px; }
  .cta { grid-area: cta; max-width: 440px; margin-top: 30px; }
  .assure { grid-area: assure; max-width: 440px; margin-top: 12px; font-size: 14px; }
  .points { grid-area: points; max-width: 440px; margin-top: 28px; }
  .media {
    grid-area: media;
    align-self: center;
    flex: none;
    height: min(100vh - 150px, 720px);
    min-height: 480px;
    max-height: none;
    aspect-ratio: 9 / 16;
    margin-top: 32px;
  }
}
