/* ============================================================
   Rapt — marketing sections

   Carries the 2025 site's language forward: full-bleed panels with
   40px radii, two-tone headings (muted phrase, then the navy one),
   small gold eyebrows, and the sand / navy / gold / sage card family.
   The product proof is native screenshots in device frames, cropped
   to one interaction at a time.

   Depends on the tokens in preview.css.
   ============================================================ */

/* ---------- bands ---------- */
.band { padding: 128px 0; }
.band--cream { background: var(--cream); border-radius: 40px; }
.band--navy  { background: var(--navy);  border-radius: 40px; }
.band--sand  { background: var(--cream-2); border-radius: 40px; }

.kicker--light { color: var(--gold); }

.band-h {
  font-size: 46px; font-weight: 700; line-height: 1.06; letter-spacing: -0.022em;
  margin-top: 18px;
}
.band-h .muted { color: var(--stone); }
.band-h .ink   { color: var(--navy); }
.band-h--light .muted { color: #8fa0cc; }
.band-h--light .ink   { color: #fff; }

.band-lede {
  font-family: var(--serif); font-size: 23px; line-height: 1.55;
  color: var(--stone-2); max-width: 56ch; margin-top: 26px;
}
.band-lede--light { color: var(--periwinkle); }

/* ---------- device frame ---------- */
.device {
  position: relative;
  border-radius: 44px;
  padding: 9px;
  background: linear-gradient(158deg, #46464b 0%, #1a1a1d 42%, #0e0e10 100%);
  /* Offset to the right as well as down, so the light reads as coming from
     the upper left rather than straight overhead. */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .10) inset,
    16px 30px 58px -26px rgba(20, 28, 60, .55);
}
.device img { display: block; width: 100%; height: auto; border-radius: 36px; }
/* dynamic island, sitting where the real one does on these captures */
.device::after {
  content: "";
  position: absolute; top: 1.5%; left: 50%; transform: translateX(-50%);
  width: 27%; height: 3.6%; min-height: 12px;
  background: #08080a; border-radius: 999px;
}
.device--sm { border-radius: 34px; padding: 7px; }
.device--sm img { border-radius: 28px; }
.device--sm::after { width: 29%; border-radius: 999px; }

/* ============================================================
   How it works
   ============================================================ */
.steps {
  list-style: none; margin: 76px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px;
}
.steps > li { text-align: center; }
.steps .device { max-width: 268px; margin: 0 auto 34px; }
.step-n {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-label);
}
.steps h3 {
  font-size: 26px; font-weight: 700; letter-spacing: -0.012em; color: var(--navy);
  margin-top: 12px;
}
.steps p {
  font-family: var(--serif); font-size: 18.5px; line-height: 1.6; color: var(--stone-2);
  margin-top: 12px; max-width: 34ch; margin-left: auto; margin-right: auto;
}

/* ============================================================
   Why it's different
   ============================================================ */
.claims {
  margin-top: 76px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px;
}
.claims h3 {
  font-size: 24px; font-weight: 700; color: #fff; letter-spacing: -0.012em;
  padding-top: 22px; border-top: 2px solid rgba(255, 255, 255, .16);
}
.claims p {
  font-family: var(--serif); font-size: 18.5px; line-height: 1.62;
  color: var(--periwinkle); margin-top: 14px;
}
.claims em { color: #fff; font-style: italic; }
/* One proof strip per claim, all three cropped to the same 980x420 so the
   columns line up regardless of how much copy sits above them. */
/* Bottom-align the strips: the copy above them runs to different lengths,
   so `margin-top: auto` keeps the three images on one line. */
.claims article { display: flex; flex-direction: column; }
/* The paragraph carries the minimum gap; `margin-top: auto` on the figure
   then absorbs whatever slack is left so all three strips bottom-align. */
.claims article p { margin-bottom: 34px; }
.proof { margin: 0; margin-top: auto; }
.proof {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .55);
}
.proof img {
  display: block; width: 100%; height: auto;
  /* Each strip is framed so its payload sits in the top ~83%; the tail is
     genuinely continuing text, so soften the last sliver rather than slicing
     it flat. Kept shallow and stopping short of transparent, so it reads as
     a soft edge rather than the content dissolving. */
  -webkit-mask-image: linear-gradient(to bottom, #000 91%, rgba(0, 0, 0, .55) 100%);
  mask-image: linear-gradient(to bottom, #000 91%, rgba(0, 0, 0, .55) 100%);
}

/* ============================================================
   Inside a part — horizontal rail of native cards
   ============================================================ */
.rail-wrap { position: relative; margin-top: 66px; }
.cardrail {
  /* Modest padding only. Shell-width padding here would inflate scrollWidth
     and make the row look scrollable even when it comfortably fits. */
  list-style: none; margin: 0; padding: 0 40px 24px;
  display: flex; gap: 32px;
  /* `safe` centres the row when it fits and falls back to flex-start when it
     overflows, so the first card never becomes unreachable. */
  justify-content: safe center;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cardrail::-webkit-scrollbar { display: none; }
.cardrail > li { flex: 0 0 234px; scroll-snap-align: center; }
.cardrail .device { margin-bottom: 20px; }
.cardrail p {
  text-align: center; font-size: 15.5px; font-weight: 600; color: var(--stone);
}

/* Trackpads can scroll this sideways but mice can't, so give it buttons.
   Hidden entirely when the row already fits. */
.rail-btn {
  position: absolute; top: 42%; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid #e3dbc9; background: rgba(255, 255, 255, .94);
  color: var(--navy); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 8px 22px -8px rgba(20, 28, 60, .35);
  transition: opacity .2s, background .18s, transform .18s;
}
.rail-btn svg { width: 22px; height: 22px; }
.rail-btn:hover { background: #fff; transform: scale(1.06); }
.rail-btn[hidden] { display: none; }
.rail-btn[disabled] { opacity: .3; cursor: default; transform: none; }
.rail-prev { left: 18px; }
.rail-next { right: 18px; }

/* ============================================================
   Beyond your studies — bento
   ============================================================ */
.bento {
  margin-top: 66px;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 26px;
}
.tile {
  border-radius: 32px; padding: 44px 44px 0;
  display: flex; flex-direction: column; overflow: hidden;
}
.tile--sand  { background: var(--sand); }
.tile--navy  { background: var(--navy); }
.tile--gold  { background: var(--gold); }
.tile--sage  { background: var(--sage); }
.tile--cream { background: #ece7f4; }

.tile h3 {
  font-size: 27px; font-weight: 700; letter-spacing: -0.014em; line-height: 1.18;
  color: var(--navy);
}
.tile p {
  font-family: var(--serif); font-size: 18.5px; line-height: 1.6;
  color: var(--stone-2); margin-top: 12px; max-width: 40ch;
}
.tile--navy h3 { color: #fff; }
.tile--navy p  { color: var(--periwinkle); }
.tile--gold h3, .tile--gold p { color: var(--gold-ink); }
.tile--sage h3, .tile--sage p { color: var(--sage-ink); }

.tile-a { grid-column: span 5; }
.tile-b { grid-column: span 7; }
.tile-c { grid-column: span 6; }
.tile-d { grid-column: span 6; }
.tile-e { grid-column: span 12; }

/* Screens sit low in their tile and run off the bottom edge, so the tile
   reads as a window onto the app rather than a boxed thumbnail. */
.tile .device--sm { width: 216px; margin: 34px auto -60px; }

/* Text left, device right. */
.tile-b { flex-direction: row; align-items: flex-start; gap: 34px; padding-bottom: 0; }
.tile-b .tile-text { flex: 1; padding-bottom: 44px; }
.tile-b .device--sm { margin: 8px 0 -70px; flex: none; }

/* The library is the one screen worth showing whole — both shelves and the
   spines are the point — so it sits fully inside its tile rather than
   bleeding off the bottom like the others. */
.tile-e {
  flex-direction: row; align-items: center; gap: 56px;
  padding: 52px 52px 52px 44px;
}
.tile-e .tile-text { flex: 0 1 44ch; }
.tile-e .device--sm { width: 258px; margin: 0 0 0 auto; flex: none; }

/* Cropped screens are pinned to a single height and bleed off the tile's
   bottom edge, so every tile in a row ends the same way and a tall capture
   can't stretch the row. The tile's own overflow does the corner clipping. */
.tile-shot { margin: 34px -44px 0; }
.tile-shot img {
  display: block; width: calc(100% - 60px); margin: 0 auto;
  height: 340px; object-fit: cover; object-position: top center;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .06), 0 24px 48px -28px rgba(20, 28, 60, .5);
}

/* ============================================================
   Conversion
   ============================================================ */
.convert { background: var(--cream-2); padding: 76px 0 128px; text-align: center; border-radius: 40px; }
.convert-icon {
  width: 112px; height: 112px; margin: 0 auto 34px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .22));
}
.convert h2 {
  font-size: 46px; font-weight: 700; line-height: 1.08; letter-spacing: -0.022em;
}
.convert h2 .muted { color: var(--sage-ink); }
.convert h2 .ink   { color: var(--navy-deep); }
.convert > .shell > p {
  font-family: var(--serif); font-size: 21px; color: var(--stone-2); margin-top: 20px;
}
.convert .cta { margin-top: 34px; display: flex; justify-content: center; }
.convert-note { font-size: 15px; color: var(--stone); margin-top: 24px; }
.convert-note a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Footer
   ============================================================ */
.site-foot {
  background: var(--navy); border-radius: 40px 40px 0 0;
  padding: 96px 0 0; margin-top: -40px; position: relative; overflow: hidden;
}
.news {
  background: var(--cream-3); border-radius: 30px; padding: 52px 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.news h2 { font-size: 30px; font-weight: 700; color: var(--navy); letter-spacing: -0.014em; }
.news-copy p {
  font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--stone); margin-top: 10px;
}
.news-form { margin: 0; display: flex; flex-wrap: wrap; gap: 12px; position: relative; }
.field {
  flex: 1 1 180px; min-width: 0; height: 62px; padding: 0 26px;
  border: 0; border-radius: 31px; background: var(--cream-2);
  font-family: inherit; font-size: 17px; font-weight: 600; color: var(--navy);
  outline: none; transition: box-shadow .18s;
}
.field::placeholder { color: var(--stone); opacity: 1; }
.field:focus-visible { box-shadow: 0 0 0 3px rgba(31, 58, 118, .35); }
.news-form .btn { height: 62px; padding: 0 34px; flex: none; }
.news-status {
  flex: 1 0 100%; font-size: 15px; color: var(--sage-ink);
  opacity: 0; transition: opacity .25s;
}
.news-status.is-shown { opacity: 1; }

.foot-links {
  display: flex; align-items: center; gap: 38px; flex-wrap: wrap;
  margin-top: 56px; font-size: 17px; font-weight: 700;
}
.foot-links a { color: var(--periwinkle-2); transition: color .18s; }
.foot-links a:hover { color: #fff; }
.foot-links .copyright { margin-left: auto; color: var(--periwinkle-3); }

.site-foot .disclaimer {
  margin: 34px 0 0; max-width: 70ch; text-align: left;
  font-size: 13.5px; line-height: 1.6; color: #7d8cba;
}
.site-foot .wordmark {
  width: 100%; height: auto; margin: 44px 0 -6%;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .25));
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .band { padding: 96px 0; }
  .band-h, .convert h2 { font-size: 38px; }
  .steps { grid-template-columns: 1fr; gap: 64px; }
  .steps .device { max-width: 240px; }
  .claims { grid-template-columns: 1fr; gap: 40px; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile-a, .tile-b, .tile-c, .tile-d, .tile-e { grid-column: span 6; }
  .tile-b { flex-direction: column; gap: 0; padding-right: 44px; }
  .tile-b .tile-text { padding-bottom: 0; }
  .tile-b .device--sm { margin: 34px auto -60px; }
  .tile-e { flex-direction: column; align-items: stretch; gap: 0; padding: 44px 44px 48px; }
  .tile-e .tile-text { max-width: none; }
  .tile-e .device--sm { margin: 34px auto 0; }
  .news { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .band { padding: 72px 0; }
  .band-h, .convert h2 { font-size: 31px; }
  .band-lede { font-size: 19px; }
  .tile { padding: 32px 28px 0; }
  .tile-shot { margin: 26px -28px 0; }
  .cardrail { padding-left: 32px; padding-right: 32px; gap: 22px; }
  .cardrail > li { flex-basis: 200px; }
  .news { padding: 34px 26px; }
  .news-form .btn { flex: 1 0 100%; }
  .foot-links { gap: 22px; font-size: 15.5px; }
  .foot-links .copyright { margin-left: 0; flex: 1 0 100%; }
}
