/* gabby.talk: shared styles for the landing page, privacy policy and support page. */
@font-face { font-family: Fredoka; src: url(fonts/fredoka.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Atkinson; src: url(fonts/atkinson-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Atkinson; src: url(fonts/atkinson-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --sun: #FFD24A;
  --sun-soft: #FFE48F;
  --plum: #2A1838;
  --plum-soft: #4A3658;
  --tangerine: #FF8A3D;
  --white: #FFFFFF;
  --page: #FFFBEF;
  --display: Fredoka, "Avenir Next Rounded", system-ui, sans-serif;
  --body: Atkinson, system-ui, -apple-system, sans-serif;
  --measure: 38rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sun); color: var(--plum); font: 1.0625rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 10; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }

.wrap { width: min(72rem, 100% - 32px); margin-inline: auto; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.6rem/1 var(--display); }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.top nav { display: flex; gap: 22px; font-weight: 700; }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; }

/* Buttons: one kind, the install action */
.install {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--plum); color: var(--sun); text-decoration: none;
  font: 600 1.25rem/1 var(--display); padding: 16px 26px; border-radius: 999px;
  box-shadow: 4px 5px 0 var(--tangerine);
  transition: transform .15s ease, box-shadow .15s ease;
}
.install:hover { transform: translate(-1px, -1px); box-shadow: 6px 7px 0 var(--tangerine); text-decoration: none; }
.install:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--tangerine); }
.install svg { width: 22px; height: 22px; }

/* Hero: the headline, and Gabby in a speech bubble */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding-block: 48px 96px; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
.hero .lede { font-size: 1.3rem; max-width: 26rem; margin: 22px 0 32px; }
.hero .note { font-size: .95rem; margin-top: 18px; color: var(--plum-soft); }
.bubble { position: relative; }
.bubble .frame {
  border: 5px solid var(--plum); border-radius: 30px; overflow: hidden; background: #EBB873;
  box-shadow: 12px 14px 0 var(--plum); aspect-ratio: 1120 / 756;
}
.bubble .frame img { width: 100%; height: 100%; object-fit: cover; }
.bubble .frame { position: relative; background: var(--edge, #EBB873); }
.bubble video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.bubble .play {
  position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px;
  border: 3px solid var(--plum); border-radius: 999px; background: var(--sun); color: var(--plum);
  font: 600 1.15rem/1 var(--display); padding: 12px 20px 12px 14px; cursor: pointer;
  box-shadow: 3px 4px 0 var(--plum); transition: opacity .2s ease, transform .15s ease;
}
.bubble .play svg { width: 22px; height: 22px; }
.bubble .play:hover { transform: translate(-1px, -1px); box-shadow: 4px 5px 0 var(--plum); }
.bubble.playing .play { opacity: 0; pointer-events: none; }
.who { display: flex; justify-content: center; gap: 14px; margin-top: 30px; padding-left: 0; flex-wrap: wrap; }
.who button {
  display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0;
  font: 700 .92rem/1.1 var(--body); color: var(--plum); cursor: pointer; width: 74px;
}
.who img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--plum); object-fit: cover; transition: transform .15s ease; }
.who button:hover img { transform: translateY(-2px); }
.who button[aria-pressed="true"] img { outline: 4px solid var(--tangerine); outline-offset: 2px; }
.bubble .tail { position: absolute; left: -44px; top: 22%; width: 54px; height: 60px; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) .15s both; transform-origin: 0% 30%; }
  @keyframes pop { from { opacity: 0; transform: scale(.82) rotate(-2deg); } to { opacity: 1; transform: none; } }
}

/* The cast, on plum */
.cast { background: var(--plum); color: var(--white); padding-block: 88px 96px; }
.cast h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--sun); }
.cast .intro { font-size: 1.2rem; max-width: var(--measure); margin: 14px 0 48px; color: #E9DDF1; }
.people { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.person { display: flex; flex-direction: column; }
.person img { border-radius: 24px 24px 0 0; aspect-ratio: 1; object-fit: cover; width: 100%; }
.person .says {
  position: relative; background: var(--white); color: var(--plum); padding: 18px 18px 20px;
  border-radius: 0 0 24px 24px; flex: 1;
}
.person h3 { font-size: 1.35rem; }
.person .about { font-size: .92rem; color: var(--plum-soft); margin: 2px 0 12px; }
.person q { display: block; font-size: 1.02rem; line-height: 1.45; quotes: "“" "”"; }

/* How it works: a real sequence */
.how { padding-block: 88px; }
.how h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 40px 0 0; padding: 0; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--plum); color: var(--sun); font: 600 1.6rem/1 var(--display); margin-bottom: 16px;
}
.steps h3 { font-size: 1.5rem; margin-bottom: 8px; }
.steps p { margin: 0; max-width: 22rem; }

/* Small things worth knowing, on white */
.facts { background: var(--page); padding-block: 80px; }
.facts .grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.facts h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.facts dl { margin: 0; display: grid; gap: 22px; }
.facts dt { font: 600 1.3rem/1.2 var(--display); }
.facts dd { margin: 4px 0 0; max-width: var(--measure); }
.facts .window { border: 4px solid var(--plum); border-radius: 22px; overflow: hidden; box-shadow: 9px 10px 0 var(--plum); }

/* Closing call to install */
.again { padding-block: 96px; text-align: center; }
.again h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 28px; }
.again .faces { display: flex; justify-content: center; margin-bottom: 30px; }
.again .faces img { width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--plum); margin-inline: -8px; object-fit: cover; background: var(--white); }

/* Footer */
.foot { background: var(--plum); color: #E9DDF1; padding-block: 40px; font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot p { margin: 0; max-width: 34rem; }

/* Text pages: privacy policy and support */
.doc { background: var(--page); padding-block: 64px 96px; }
.doc .wrap { width: min(44rem, 100% - 32px); }
.doc h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 10px; }
.doc .updated { color: var(--plum-soft); margin: 0 0 36px; }
.doc h2 { font-size: 1.7rem; margin: 44px 0 10px; }
.doc h3 { font-size: 1.25rem; margin: 26px 0 6px; }
.doc p, .doc li { max-width: var(--measure); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-block: 6px; }
.doc .mail {
  display: inline-block; font: 600 clamp(1.5rem, 4vw, 2rem)/1.2 var(--display); background: var(--sun);
  padding: 14px 22px; border-radius: 18px; border: 3px solid var(--plum); box-shadow: 5px 6px 0 var(--plum);
  text-decoration: none; margin: 8px 0 12px; word-break: break-word;
}
.doc .mail:hover { text-decoration: underline; }
.doc details { border-top: 2px solid #EADFC0; padding-block: 14px; }
.doc details:last-of-type { border-bottom: 2px solid #EADFC0; }
.doc summary { cursor: pointer; font: 600 1.2rem/1.3 var(--display); }
.doc details p { margin: 10px 0 0; }

/* Narrow screens */
@media (max-width: 960px) {
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .hero, .facts .grid { grid-template-columns: 1fr; }
  .hero { padding-block: 24px 72px; gap: 40px; }
  .demo { margin-left: 34px; }
  .who { margin-left: -34px; }
  .bubble .tail { left: -40px; top: 18%; width: 46px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .person .says { padding: 14px; }
  .top nav { gap: 14px; font-size: .95rem; }
  .brand { font-size: 1.35rem; }
  .brand img { width: 36px; height: 36px; }
  .bubble .frame { box-shadow: 8px 9px 0 var(--plum); border-radius: 22px; }
  .bubble .play { right: 10px; bottom: 10px; font-size: 1rem; padding: 9px 15px 9px 11px; }
  .who { gap: 6px; }
  .who button { width: 62px; font-size: .82rem; }
  .who img { width: 54px; height: 54px; }
}
@media (max-width: 380px) {
  .top nav a.hide-narrow { display: none; }
}
