/* Functions guide, aligned with the approved public landing and wiki. */
.features-page {
  --features-night: #071a20;
  --features-width: 1280px;
  --features-gutter: clamp(20px, 5.55vw, 80px);
  background: var(--features-night);
}
.features-page :is(.legal-site-header, .legal-site-footer, .public-back-row) {
  width: min(calc(100% - var(--features-gutter) * 2), var(--features-width));
}
.features-page .public-back-row { margin-top: 0; padding-top: 12px; }
.features-page .public-back { color: #d9e9e7; background: transparent; border-color: #456067; }
.features-page .public-back:hover { background: #16343b; }
.features-page .legal-site-header { gap: 32px; padding-block: 12px 24px; color: #c5d9d7; }
.features-page .legal-brand { flex: 0 0 auto; }
.features-page .legal-brand img { width: 124px; height: 72px; object-fit: contain; }
.features-page .legal-nav { align-items: center; }
.features-page .legal-nav a { color: #c5d9d7; text-decoration: none; }
.features-page .legal-nav a:hover { color: #fff; text-decoration: underline; }
.features-page .legal-nav [aria-current] { color: #88e2c4; text-decoration: underline; text-underline-offset: 8px; }
.features-page .legal-main {
  width: 100%;
  padding: 56px max(var(--features-gutter), calc((100% - var(--features-width)) / 2)) 80px;
  background: var(--ds-canvas);
}
.features-page .features-guide { padding: 0; border: 0; border-radius: 0; background: transparent; overflow-wrap: anywhere; }
.features-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.features-guide h1 { max-width: 15ch; font-size: clamp(2.5rem, 4.4vw, 4rem); text-wrap: balance; line-height: 1.1; }
.features-guide .legal-eyebrow { font-size: .75rem; letter-spacing: .12em; }
.features-guide .legal-lead { max-width: 58ch; font-size: 1.125rem; line-height: 1.7; }
.features-intro-copy > p { max-width: 60ch; line-height: 1.7; }
.features-guide a { text-underline-offset: 4px; }
.features-guide .features-download { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; padding: 12px 24px; margin-top: 12px; border-radius: 999px; color: #071a20; background: #88e2c4; text-decoration: none; font-weight: 700; }
.features-guide .features-download:hover { background: #a1eed4; }
.features-preview { min-width: 0; padding: 28px 28px 20px; border-radius: 24px; background: var(--features-night); }
.features-demo { margin: 48px 0 0; color: #c5d9d7; text-align: center; font-size: .8125rem; }
.features-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; padding-block: 24px; margin-top: 56px; border-block: 1px solid var(--ds-line); }
.features-index a { display: flex; align-items: center; gap: 12px; min-height: 56px; font-size: .875rem; line-height: 1.5; text-decoration: none; }
.features-index a:hover { text-decoration: underline; }
.features-index span { color: var(--ds-muted); font-size: .75rem; }
.feature-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; padding-block: 48px; border-bottom: 1px solid var(--ds-line); scroll-margin-top: 24px; }
.feature-number { color: var(--ds-accent); font-size: .875rem; font-weight: 700; }
.features-guide .feature-section h2 { max-width: 20ch; margin: 16px 0 0; font-size: clamp(1.75rem, 2.6vw, 2.5rem); text-wrap: balance; line-height: 1.2; }
.feature-section ul { max-width: 65ch; margin: 0; padding-left: 24px; }
.feature-section li { padding-left: 4px; line-height: 1.75; }
.feature-section li + li { margin-top: 16px; }
.feature-section li::marker { color: var(--ds-accent); }
.features-end { max-width: 85ch; padding-top: 24px; line-height: 1.75; }
.features-end a { display: inline-flex; align-items: center; min-height: 44px; }
.features-page .legal-site-footer { color: #c5d9d7; padding-block: 32px; }
.features-page .legal-footer-links a { color: #c5d9d7; }

/* Same original device frames and screenshot geometry as the landing. */
.features-preview .device-showcase { display: flex; justify-content: center; align-items: center; gap: 48px; width: 100%; min-width: 0; }
.features-preview .device-mockup { --device-frame: url('/brand/devices/iphone-18-pro.png'); position: relative; flex: 0 1 260px; width: 260px; max-width: calc((100% - 48px) / 2); aspect-ratio: 389 / 800; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; transform: none; }
.features-preview .device-mockup::after { content: ''; position: absolute; z-index: 2; inset: 0; background: var(--device-frame) center / 100% 100% no-repeat; border-radius: 0; box-shadow: none; pointer-events: none; }
.features-preview .device-galaxy { --device-frame: url('/brand/devices/galaxy-s26-ultra.png'); aspect-ratio: 385 / 800; }
.features-preview .device-viewport { position: absolute; inset: 1.8% 4.1% 1.8% 4.35%; overflow: hidden; border-radius: 12% / 5.5%; color: #10131d; background: #f0f2f8; }
.features-preview .device-galaxy .device-viewport { inset: .8% 3% .8% 2.8%; border-radius: 6% / 2.8%; }
.features-preview .device-status { position: absolute; top: 1.8%; right: 8%; left: 8%; display: flex; align-items: center; justify-content: space-between; height: 4.5%; font-size: 10px; font-weight: 750; }
.features-preview .device-status svg { width: 25%; height: auto; }
.features-preview .device-mockup .device-screen-image { position: absolute; top: 8%; left: 0; display: block; width: 100%; height: 88%; object-fit: contain; object-position: center; border: 0; border-radius: 0; box-shadow: none; }
.features-preview .device-home-indicator { position: absolute; bottom: 1.6%; left: 33%; width: 34%; height: .5%; border-radius: 10px; background: #10131d; }
.features-preview .device-label { position: absolute; top: calc(100% + 14px); left: -10px; right: -10px; color: #c5d9d7; font-size: 14px; line-height: 1.5; text-align: center; }
.features-preview .device-showcase { gap: 24px; }
.features-preview .device-mockup { flex-basis: 220px; max-width: calc((100% - 24px) / 2); }
@media (max-width: 1100px) {
  .features-page { --features-gutter: 32px; }
  .features-intro { gap: 32px; }
  .feature-section { gap: 32px; }
  .features-preview { padding-inline: 20px; }
}
@media (max-width: 800px) {
  .features-intro { grid-template-columns: minmax(0, 1fr); }
  .features-guide h1 { max-width: 18ch; }
  .features-preview { max-width: 580px; width: 100%; justify-self: center; }
  .features-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-section { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .features-guide .feature-section h2 { max-width: 26ch; }
}
@media (max-width: 700px) {
  .features-page { --features-gutter: 20px; }
  .features-page .legal-site-header { flex-wrap: wrap; gap: 8px; padding-bottom: 16px; }
  .features-page .legal-nav { width: 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .features-page .legal-nav a { flex: 0 0 auto; }
  .features-page .legal-nav [aria-current] { order: -1; }
  .features-page .language-select { order: -2; }
  .features-page .legal-main { padding-top: 32px; }
  .features-index { gap: 0 20px; margin-top: 32px; }
  .features-index a { padding-block: 10px; }
  .feature-section { padding-block: 32px; }
  .features-preview { padding: 20px 12px; }
  .features-preview .device-showcase { gap: 16px; }
  .features-preview .device-mockup { flex-basis: 180px; max-width: calc((100% - 16px) / 2); }
  .features-preview .device-status { font-size: 6px; }
  .features-preview .device-label { font-size: 10px; }
  .features-demo { margin-top: 60px; }
}
