/* /features (CZ-6638). Loaded only by the Features page, after site.css, built on its tokens. Every class starts with "ft-" so nothing collides
   with another page (site.css already uses ".feature" for the news feature card, which is why this page does not).
   The page is flat (see ".page--flat" in site.css): full-width bands on the one page background, content held to a readable measure.

   Small system used on every band:
   - type: display serif (--font-display, navy) for headings 34-64px; system sans for body 17-19px; 12-13px caps for kickers and eyebrows.
   - space: bands are 64px apart (44px on a phone); inside a band the gap is 24-40px.
   - surfaces: warm paper (#FCFAF6 / #F3EDE2), deep navy (#10214A) for the two dark bands, white cards with a 1px warm line, 8px radius.
   - images: every phone screen is an untouched frame of Kyle's real screen recording (wwwroot/img/app-real, cropped only) in a pure-CSS shell (.ft-phone), never stretched
     or redrawn; the panels are 1:0.92 and the phones stand on their bottom edge, the lower one cut a little by it. */
:root {
  --ft-navy: #10214A;
  --ft-navy-2: #1B2F6B;
  --ft-paper: #FCFAF6;
  --ft-sand: #F3EDE2;
  --ft-line: #E4DED2;
  --ft-have: #2E7D32;      /* the app's own mark colors (Have green, Need blue, Trade orange) */
  --ft-need: #1565C0;
  --ft-trade: #EF6C00;
  --ft-pad: calc(50cqw - 50%);   /* side padding that puts a full-bleed band's content on the page shell's own edges (CZ-6670: the same left/right edges as every other flat page, at every width) */
}

.page { min-height: 0; }

/* Shared type */
.ft-title, .ft-h2, .ft-tool__title { font-family: var(--font-display); color: var(--ft-navy); font-weight: 700; letter-spacing: -0.015em; }
.ft-h2 { font-size: clamp(28px, 3.1vw, 42px); line-height: 1.1; text-wrap: balance; }
.ft-h2--light, .ft-eyebrow--light { color: #fff; }
.ft-eyebrow, .ft-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.ft-eyebrow--light { color: #F4C95D; }

/* Every band runs the full width of the window */
.ft-hero, .ft-marks, .ft-story, .ft-tools, .ft-cta { margin-inline: calc(50% - 50cqw); padding-inline: var(--ft-pad); }

/* Store badges (the two store URLs are set once, in the page) */
.ft-stores { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.ft-stores a { display: block; border-radius: 8px; }
.ft-stores img { display: block; height: 58px; width: auto; }
.ft-stores a:hover img { filter: brightness(1.08); }

/* Hero: the pitch on the left, two real app screens standing on a deep stage on the right */
.ft-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px 56px; align-items: center; padding-block: 48px 56px;
  background: linear-gradient(100deg, var(--ft-paper) 0%, #F5F0E6 100%); border-bottom: 1px solid var(--ft-line); }
.ft-title { font-size: clamp(38px, 4.4vw, 68px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.ft-lede { margin: 20px 0 28px; max-width: 34em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--ink-2); }
.ft-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 18px 0 0; padding: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.ft-meta span + span::before { content: "·"; margin-right: 20px; color: var(--outline); }

.ft-stage { position: relative; aspect-ratio: 1 / 0.88; border-radius: 12px; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 38%, #3A58B8 0%, var(--ft-navy-2) 45%, var(--ft-navy) 100%); box-shadow: 0 18px 40px rgba(16, 33, 74, 0.28); }
.ft-stage::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; height: 12%; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: rgba(255, 255, 255, 0.07); }
/* The phone shell: a plain dark bezel around one real frame. The frame sets the shape (660 x 1359), the bezel only pads it. */
.ft-phone { position: absolute; display: block; box-sizing: border-box; padding: 6px; border-radius: 13% / 6.3%; background: #0E0F14;
  box-shadow: inset 0 0 0 1px #3B3D47, 0 14px 22px rgba(0, 0, 0, 0.4); }
.ft-phone img { display: block; width: 100%; height: auto; border-radius: 11% / 5.3%; background: #fff; }
/* Frames cropped lower than the status bar (07: the card; 04: the item) are shorter than 1359, so the vertical radii grow by 1359 / height to keep the corners round. */
.ft-phone--f07 { border-radius: 13% / 7.55%; }
.ft-phone--f07 img { border-radius: 11% / 6.35%; }
.ft-phone--f04 { border-radius: 13% / 6.45%; }
.ft-phone--f04 img { border-radius: 11% / 5.43%; }
.ft-stage__phone { bottom: -3%; width: 42%; }
.ft-stage__phone--a { left: 8%; z-index: 1; }
.ft-stage__phone--b { right: 6%; z-index: 2; bottom: -15%; }

/* The three marks (Have, Need, Trade) */
.ft-marks { padding-block: 56px 48px; background: var(--ft-navy); }
.ft-marks__head { max-width: 760px; }
.ft-marks__grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ft-mark { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; border-radius: 8px; background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16); border-top: 6px solid var(--mark, #fff); color: #E6EBF7; }
.ft-mark--have { --mark: #5FBF66; }
.ft-mark--need { --mark: #5AA2F0; }
.ft-mark--trade { --mark: #FF9A3D; }
.ft-mark__name { font-family: var(--font-display); font-size: 30px; line-height: 1; font-weight: 700; color: #fff; }
.ft-mark__name::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; border-radius: 50%; background: var(--mark); vertical-align: 2px; }
.ft-mark__text { font-size: 16px; line-height: 1.5; }
.ft-marks__note { margin: 20px 0 0; font-size: 14px; color: #B8C3DF; }
/* Keyboard focus on the navy bands and the dark stage: the site ring (--link, #3B4FA3) is 2.1:1 on #10214A, under the 3:1 WCAG 1.4.11 asks for.
   A white ring is about 15:1 on the navy and 8:1 on the lightest end of the stage gradient. Scoped to this page's dark surfaces only. */
.ft-marks :focus-visible, .ft-cta :focus-visible, .ft-stage :focus-visible { outline-color: #fff; }

/* Product stories: a panel of real screens beside the copy; the second story flips sides */
.ft-story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; padding-block: 64px; border-bottom: 1px solid var(--ft-line); }
.ft-story--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--ft-paper); }
.ft-story--flip .ft-story__media { order: 2; }
.ft-story__media { position: relative; aspect-ratio: 1 / 0.92; border-radius: 12px; overflow: hidden; background: var(--ft-sand); border: 1px solid var(--ft-line); }
.ft-story--check .ft-story__media { background: #E6EEF9; }
.ft-story--hub .ft-story__media { background: #F6E9E4; }
.ft-story__phone { bottom: -3%; width: 37%; }
.ft-story__phone--a { left: 8%; }
.ft-story__phone--b { right: 8%; bottom: -10%; }
.ft-story .ft-h2 { max-width: 14em; }
.ft-story__text { margin: 18px 0 20px; max-width: 32em; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--ink-2); }
.ft-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ft-points li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.ft-points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--action);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8.2 14.3 4.4 10.5l1.4-1.4 2.4 2.4 6-6 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8.2 14.3 4.4 10.5l1.4-1.4 2.4 2.4 6-6 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* More tools: plain cards, no pictures (there is no real screen for them) */
.ft-tools { padding-block: 64px 56px; background: var(--ft-sand); border-bottom: 1px solid var(--ft-line); }
.ft-tools__head { max-width: 760px; }
.ft-tools__grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 920px; }
.ft-tool { padding: 22px 22px 24px; background: #fff; border: 1px solid var(--ft-line); border-top: 4px solid var(--ft-navy); border-radius: 8px; }
.ft-tool__title { font-size: 22px; line-height: 1.2; }
.ft-tool__text { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.ft-fine { margin-top: 22px; font-size: 13px; font-style: italic; color: var(--muted); }

/* Closing call to action */
.ft-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: 48px; background: var(--ft-navy); }
.ft-cta__text { margin-top: 10px; font-size: 18px; color: #D5DCEE; }
.ft-cta__more { margin-top: 14px; }
.ft-cta__more a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ft-stores--cta img { height: 56px; }

/* Tablet */
@media (max-width: 1000px) {
  .ft-hero { grid-template-columns: minmax(0, 1fr); padding-block: 36px 40px; }
  .ft-stage { aspect-ratio: 1 / 0.8; }
  .ft-story, .ft-story--flip { grid-template-columns: minmax(0, 1fr); padding-block: 48px; }
  .ft-story--flip .ft-story__media { order: 0; }
}
/* Phone */
@media (max-width: 640px) {
  .ft-hero { gap: 28px; padding-block: 28px 32px; }
  .ft-stores img { height: 48px; }
  .ft-stage { aspect-ratio: 1 / 1; }
  .ft-marks { padding-block: 44px 36px; }
  .ft-tools__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ft-marks__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ft-mark { padding: 16px 14px 18px; gap: 8px; }
  .ft-mark__name { font-size: 26px; }
  .ft-mark__name::before { width: 11px; height: 11px; margin-right: 8px; }
  .ft-mark__text { font-size: 15px; }
  .ft-stage__phone { width: 44%; }
  .ft-stage__phone--a { left: 4%; }
  .ft-stage__phone--b { right: 3%; bottom: -12%; }
  .ft-phone { padding: 4px; }
  .ft-story__phone { width: 40%; }
  .ft-story__phone--a { left: 6%; }
  .ft-story__phone--b { right: 6%; bottom: -8%; }
  .ft-story, .ft-story--flip { padding-block: 40px; gap: 24px; }
  .ft-story__media { aspect-ratio: 1 / 1; }
  .ft-tools { padding-block: 44px 40px; }
  .ft-cta { padding-block: 40px; }
}
