/* index.html owns the front-facing cards; the saved flip component keeps its own styles. */
.other-features {
  padding: var(--space-128) var(--page-gutter) var(--space-128);
  background: var(--color-how-it-works-canvas);
  scroll-margin-top: var(--header-block);
}

.other-features__inner { width: min(100%, var(--section-track)); margin-inline: auto; }
.other-features__heading { margin-bottom: var(--space-88); }
.other-features__eyebrow {
  margin: 0 0 var(--space-16);
  color: var(--color-other-features-eyebrow);
}
.other-features__heading h2 { margin: 0; }
.other-features__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-24); }
.other-features__built-in { margin-top: var(--space-128); }
.other-features__built-in-title {
  margin: 0 auto var(--space-48);
  color: var(--color-other-features-eyebrow);
  text-align: center;
}
.other-features__built-in-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-32) var(--space-24);
  margin: 0;
  padding: 0;
  list-style: none;
}
.other-features__built-in-item {
  display: grid;
  grid-template-columns: var(--space-64) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-24);
  min-width: 0;
}
.other-features__built-in-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--space-64);
  aspect-ratio: 1;
  border-radius: var(--space-8);
  background: var(--color-white);
}
.other-features__built-in-icon img { display: block; width: var(--space-24); height: var(--space-24); }
.other-features__built-in-copy { margin: 0; font: var(--type-body-1-font); }

.feature-card {
  position: relative;
  min-width: 0;
  color: var(--color-black);
  text-align: left;
  font: var(--type-body-1-font);
}
.feature-card__surface { position: absolute; inset: 0; border-radius: var(--space-8); background: var(--color-white); }
.feature-card__face {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-16);
  height: 100%;
  padding: var(--space-32);
}
.feature-card__label {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin: 0 0 var(--space-8);
  color: var(--color-deep-ocean);
  font: var(--type-body-1-font);
}
/* Card-label SVG variants keep a 1.5px stroke at both rendered icon sizes. */
.feature-card__label img { flex: none; }
.feature-card__title {
  margin: 0;
  font: var(--type-h4-font);
  letter-spacing: -0.024em;
}
.feature-card__description { margin: 0; font: var(--type-body-1-font); }
.feature-card__badge {
  display: inline-block;
  padding-inline: var(--space-8);
  border-radius: var(--space-4);
  background: color-mix(in srgb, var(--color-light-sky) 25%, transparent);
  color: var(--color-deep-ocean);
  font: 500 var(--font-size-16) / var(--line-height-24) var(--font-text);
}
.feature-card__badge--dark { background: var(--color-feature-badge-dark-surface); color: var(--color-feature-badge-dark-ink); }
.feature-card__badge--green {
  background: color-mix(in srgb, var(--color-success) 14%, var(--color-white));
  color: var(--color-success);
}
.feature-card__badge--quiet {
  background: var(--color-quiet-grey);
  color: var(--color-lp-label);
}

/* The final illustration is the default: copy and meaning survive without JavaScript or motion. */
.feature-visual {
  --feature-line: color-mix(in srgb, var(--color-deep-ocean) 12%, var(--color-white));
  --feature-muted: color-mix(in srgb, var(--color-soft-black) 65%, var(--color-white));
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  min-height: 240px;
  margin: auto 0 0;
  border: 1px solid var(--feature-line);
  border-radius: var(--space-8);
  background: color-mix(in srgb, var(--color-light-sky) 8%, var(--color-white));
  color: var(--color-soft-black);
  font: var(--type-body-3-font);
}
.feature-card__description + .feature-visual { margin-top: auto; }
.feature-card__description { margin-bottom: var(--space-16); }
.feature-visual__heading { display: flex; align-items: center; gap: var(--space-8); min-height: var(--space-32); font-weight: 600; }
.feature-visual__heading > span:last-child:not(:first-child) { margin-left: auto; color: var(--feature-muted); font-weight: 400; }
.feature-visual small { display: block; margin-top: var(--space-4); font: inherit; color: var(--feature-muted); }

/* Frame 2147236595: 32px inset, 24px between copy and picture.
   The copy is its own 12px stack, so the taller picture cannot stretch those gaps.
   Title is 40/40; body is 16/24 medium. The shared h4 token would shrink this at 960px. */
.feature-card--todo .feature-card__face {
  display: grid;
  grid-template-columns: minmax(0, 266fr) minmax(0, 353fr);
  column-gap: 24px;
  align-items: start;
  padding: 32px;
}
.feature-card--todo .feature-card__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.feature-card--todo .feature-card__label {
  margin: 0;
  color: var(--color-deep-ocean);
  font: 500 16px / 24px var(--font-text);
}
.feature-card--todo .feature-card__label img { width: 24px; height: 24px; }
.feature-card--todo .feature-card__title {
  font: var(--type-h4-font);
  letter-spacing: -0.96px;
}
.feature-card--todo .feature-card__description {
  margin: 0;
}
.feature-card--todo .feature-visual--todo {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  /* The frame radius from Figma. .feature-visual sets var(--space-8) and would otherwise win over :host. */
  border-radius: 10px;
  background: transparent;
}

/* Frame 2147236604 stacks the copy, then busy-graph-, 24px apart.
   The 12px copy gaps belong to the text frame and must not grow with the card. */
.feature-card--blocking .feature-card__face {
  align-items: stretch;
  gap: 24px;
  padding: 32px;
}
.feature-card--blocking .feature-card__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.feature-card--blocking .feature-card__label {
  margin: 0;
  color: var(--color-deep-ocean);
  font: 500 16px / 24px var(--font-text);
}
.feature-card--blocking .feature-card__label img { width: 24px; height: 24px; }
.feature-card--blocking .feature-card__title {
  font: var(--type-h4-font);
  letter-spacing: -0.96px;
}
.feature-card--blocking .feature-card__description {
  margin: 0;
}
.feature-card--blocking .feature-visual--busy {
  flex: none;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--picture-radius, 10px);
  background: transparent;
}

/* Figma's 279 × 456 frame crops the 279 × 607 notification image at the bottom. */
.feature-card--notifications .feature-card__face {
  display: grid;
  grid-template-columns: minmax(0, 340fr) minmax(0, 279fr);
  column-gap: 24px;
  align-items: start;
  padding: 32px;
}
.feature-card--notifications .feature-card__copy { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.feature-card--notifications .feature-card__label { margin: 0; font: 500 16px / 24px var(--font-text); }
.feature-card--notifications .feature-card__label img { width: 24px; height: 24px; }
.feature-card--notifications .feature-card__title { font: var(--type-h4-font); letter-spacing: -0.96px; }
.feature-card--notifications .feature-card__description { margin: 0; }
.feature-card--notifications .feature-visual--notifications {
  min-height: 0;
  aspect-ratio: 279 / 456;
  margin: 0;
  overflow: hidden;
  border: 1px solid #aeb2c1;
  border-radius: 10px;
  background: #f5f7fa;
}
.feature-visual--notifications img { display: block; width: 100%; height: auto; }

/* Frame 2147236604 stacks the copy, then insights-graph-, 24px apart.
   The 12px copy gaps belong to the text frame and must not grow with the card.
   Title is 40/40; body is 16/24 medium. The picture is the 643×296 crop. */
.feature-card--insights .feature-card__face {
  align-items: stretch;
  gap: 24px;
  padding: 32px;
}
.feature-card--insights .feature-card__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.feature-card--insights .feature-card__label {
  margin: 0;
  color: var(--color-deep-ocean);
  font: 500 16px / 24px var(--font-text);
}
.feature-card--insights .feature-card__label img { width: 24px; height: 24px; }
.feature-card--insights .feature-card__title {
  font: var(--type-h4-font);
  letter-spacing: -0.96px;
}
.feature-card--insights .feature-card__description {
  margin: 0;
}
.feature-card--insights .feature-visual--insights {
  flex: none;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* Phones: every card picture sits 8 px inside the card's left, right and bottom edges, with square corners.
   The cards keep their 32 px face padding on phones (the copy does not move), so the pull-back is 24 px.
   To-do and Notifications turn square and crop their tall frames at the bottom; todo-graph.css squares its own border.
   Insights: the host is 485 / 643 of its width tall, so the picture is 1.25× its previous size.
   Blocking: the host keeps its 514.4 / 232 ratio, and the picture is cropped to the calendars in busy-graph.js. */
@media (max-width: 640px) {
  .feature-card--blocking .feature-visual--busy,
  .feature-card--insights .feature-visual--insights {
    width: auto;
    margin: 0 -24px -24px;
    border-radius: 0;
  }
  .feature-card--blocking .feature-visual--busy {
    aspect-ratio: 514.4 / 232;
  }
  .feature-card--insights .feature-visual--insights {
    aspect-ratio: 643 / 485;
  }
  /* The grid prefix outranks the later max-width: 800px caps (360 px / 279 px). */
  .other-features__grid .feature-card--todo .feature-visual--todo,
  .other-features__grid .feature-card--notifications .feature-visual--notifications {
    width: auto;
    max-width: none;
    aspect-ratio: 1;
    margin: 0 -24px -24px;
    border-radius: 0;
  }
  /* Phones drop the frame stroke on all four pictures; the three components drop theirs in their own CSS. */
  .other-features__grid .feature-card--notifications .feature-visual--notifications {
    border: 0;
  }
}

@media (max-width: 1100px) {
  .other-features__built-in-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .other-features__grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card--todo .feature-card__face, .feature-card--notifications .feature-card__face { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .feature-card--todo .feature-visual--todo { max-width: 360px; }
  .feature-card--notifications .feature-visual--notifications { max-width: 279px; }
}
@media (max-width: 640px) {
  .other-features { padding-block: calc(var(--space-80) + var(--space-80)) var(--space-80); }
  .other-features__heading { margin-bottom: var(--space-48); }
  .other-features__built-in-list { grid-template-columns: minmax(0, 1fr); gap: var(--space-24); }
  .other-features__built-in-item { gap: var(--space-16); }
  .other-features__built-in-title { margin-bottom: var(--space-32); }
  .feature-card__face { padding: var(--space-24); }
  .feature-card__label { flex-wrap: wrap; gap: var(--space-8); }
  .feature-card__label img { width: var(--space-16); height: var(--space-16); }
}
