/* Center the website content without changing the app inside each iPhone. */
.fn-page {
  --fn-paper: #fcfcfa;
  --fn-ink: #17201b;
  --fn-muted: #59645b;
  --fn-line: #dce2d7;
  color: var(--fn-ink);
  background: var(--fn-paper);
}
.fn-page * { box-sizing: border-box; }
.fn-page [hidden] { display: none !important; }
.fn-page ::selection { background: #d9ef9c; color: #17201b; }
.fn-page :is(a, button, input):focus-visible { outline: 2px solid #527510; outline-offset: 5px; }
.fn-page a { text-underline-offset: 4px; }
.fn-page .container { width: min(1040px, calc(100% - 64px)); }
.fn-sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

.fn-hero-copy,
.fn-directory,
.fn-explanation,
.fn-questions,
.fn-related,
.fn-next { text-align: center; }
:is(.fn-hero-copy, .fn-directory, .fn-explanation, .fn-questions, .fn-related, .fn-next) :is(h1, h2, h3, h4) {
  font-family: Instrument, Geist, sans-serif;
  font-weight: 500;
  letter-spacing: -.025em;
  text-wrap: balance;
  margin: 0;
}
:is(.fn-directory, .fn-explanation, .fn-questions, .fn-related, .fn-next) h2 {
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.2;
}
:is(.fn-directory, .fn-explanation, .fn-related) :is(h3, h4) { font-size: 20px; line-height: 1.3; }
:is(.fn-directory, .fn-explanation, .fn-questions, .fn-related, .fn-next) p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fn-muted);
  margin: 12px auto 0;
  max-width: 60ch;
}
.fn-text-link,
.fn-back { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 500; line-height: 1.5; border-bottom: 1px solid #b4bfac; padding: 8px 0; }
.fn-text-link .arrow, .fn-back .arrow { width: 16px; height: 16px; }
.fn-text-link:hover, .fn-back:hover { text-decoration: underline; }
.fn-hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 24px; margin: 24px 0 0; }
.fn-hero-actions .button { font-size: 14px; }

/* Three app views are visible together, with captions outside the phones. */
.fn-feature-hero { padding: 34px 0 72px; }
.fn-breadcrumb { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; font-size: 12px; line-height: 1.5; color: var(--fn-muted); }
.fn-breadcrumb a:hover { text-decoration: underline; }
.fn-hero-copy { max-width: 760px; margin: 0 auto; }
.fn-hero-copy h1 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.12; max-width: 24ch; margin-inline: auto; }
.fn-hero-copy .fn-intro { font-size: 18px; line-height: 1.6; color: var(--fn-muted); max-width: 52ch; margin: 18px auto 0; text-wrap: pretty; }
.fn-plan { font-size: 12px; line-height: 1.5; color: var(--fn-muted); margin: 16px 0 0; }
.fn-hero-demo { width: 100%; min-width: 0; margin: 40px auto 0; text-align: left; scroll-margin-top: 110px; }
.fn-hero-demo .fn-device-demo { text-align: left; }
.fn-phone-gallery { --phone-width: 224px; --phone-height: 485px; --phone-scale: .64; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 820px; margin: 0 auto; }
.fn-phone-tile { min-width: 0; margin: 0; }
.fn-phone-viewport { position: relative; width: var(--phone-width); height: var(--phone-height); margin-inline: auto; }
.fn-phone-viewport > .fn-device-demo { width: 350px; transform: scale(var(--phone-scale)); transform-origin: top left; }
.fn-phone-viewport .fn-demo-stage { width: 350px; max-width: 350px; margin: 0; }
.fn-phone-caption { margin: 20px 0 0; text-align: center; font-family: Instrument, Geist, sans-serif; font-size: 18px; font-weight: 500; line-height: 1.35; letter-spacing: -.015em; text-wrap: balance; }
.fn-gallery-disclosure { max-width: 58ch; margin: 24px auto 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--fn-muted); }

/* The directory starts close to its title instead of repeating the demo. */
.fn-index-hero { padding: 56px 0 24px; }
.fn-directory { padding: 32px 0 72px; background: #f1f4ed; scroll-margin-top: 100px; }
.fn-directory button { font: inherit; cursor: pointer; }
.fn-directory-heading { max-width: 600px; margin: 0 auto; }
.fn-search { display: flex; align-items: center; gap: 12px; width: min(100%, 400px); min-height: 48px; margin: 24px auto 0; padding: 0 15px; background: #fff; border: 1px solid #c5cfbd; border-radius: 8px; color: #526149; text-align: left; }
.fn-search:focus-within { border-color: #5e752e; outline: 2px solid var(--color-accent); outline-offset: 2px; }
.fn-search input { font: inherit; font-size: 16px; border: 0; padding: 12px 0; width: 100%; min-width: 0; outline: none !important; background: transparent; caret-color: #17201b; color: var(--fn-ink); }
.fn-search input::placeholder { color: #626e5a; }
.fn-search button { display: flex; align-items: center; min-height: 44px; border: 0; background: none; padding: 0 4px; color: inherit; }
.fn-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 40px; }
.fn-filters button { min-height: 42px; background: transparent; border: 1px solid #c6d0be; border-radius: 7px; padding: 9px 14px; color: #46553c; font-size: 14px; line-height: 1.5; }
.fn-filters button[aria-pressed=true] { background: #1c2617; border-color: #1c2617; color: #fff; }
.fn-directory-group { padding: 44px 0; border-top: 1px solid #d0d9c7; scroll-margin-top: 110px; }
.fn-directory-group-title { max-width: 640px; margin: 0 auto 24px; }
.fn-directory-group-title h3 { font-size: 26px; }
.fn-directory-group-title p { max-width: 48ch; }
.fn-directory-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; max-width: 960px; margin: 0 auto; }
.fn-directory-link { display: flex; flex-direction: column; align-items: center; gap: 12px; width: calc((100% - 64px) / 3); min-width: 0; padding: 22px 8px; color: inherit; text-decoration: none; }
.fn-directory-icon { display: flex; justify-content: center; align-items: center; color: #52683f; }
.fn-directory-link h4 { font-size: 20px; }
.fn-directory-link p { margin-top: 8px; max-width: 28ch; }
.fn-directory-link > .arrow { width: 16px; height: 16px; color: #52683f; transition: transform .2s; }
.fn-directory-link:hover h4 { text-decoration: underline; text-underline-offset: 4px; }
.fn-directory-link:hover > .arrow { transform: translateX(3px); }
.fn-empty { padding: 48px 0; }
.fn-empty button { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; border: 0; border-bottom: 1px solid #a0ae92; background: none; padding: 10px 0; font-size: 14px; min-height: 44px; }
.fn-empty .arrow { width: 16px; }

/* Three short instructions and one image, aligned on the same center line. */
.fn-explanation { padding: 72px 0; background: #f0f3eb; scroll-margin-top: 90px; }
.fn-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; padding: 0; margin: 36px 0 0; }
.fn-steps li { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.fn-step-number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #a6b39b; border-radius: 50%; font-size: 12px; font-variant-numeric: tabular-nums; color: #4d6040; margin-bottom: 16px; }
.fn-steps p { max-width: 32ch; }
.fn-editorial-photo { width: 100%; max-width: 640px; margin: 40px auto 18px; }
.fn-editorial-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: 12px; background: #e4e8dd; }
.fn-editorial-photo figcaption { margin-top: 10px; font-size: 12px; line-height: 1.5; color: #606d56; text-align: center; }
.fn-editorial-photo-compact { max-width: 280px; margin: 24px auto 0; }

.fn-questions { padding: 72px 0; }
.fn-faq { width: 100%; max-width: 680px; margin: 30px auto 0; border-top: 1px solid var(--fn-line); }
.fn-answer { padding: 28px 16px; border-bottom: 1px solid var(--fn-line); }
.fn-answer h3 { font-size: 20px; line-height: 1.35; }
.fn-answer p { max-width: 60ch; margin: 12px auto 0; }
.fn-related { padding: 64px 0; background: #f0f3eb; }
.fn-related-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin: 34px auto 24px; }
.fn-related-links > a { display: flex; flex-direction: column; align-items: center; color: inherit; }
.fn-related-links > a > .app-icon { color: #52683f; margin-bottom: 16px; }
.fn-related-links h3 { font-size: 20px; }
.fn-related-links p { max-width: 28ch; margin-top: 10px; }
.fn-related-links > a > .arrow { width: 16px; height: 16px; margin-top: 16px; }
.fn-related-links a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.fn-next { padding: 64px 0; }
.fn-next p { margin-top: 14px; }

@media (max-width: 860px) {
  .fn-phone-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 600px; gap: 30px 20px; }
  .fn-phone-tile:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .fn-page .container { width: calc(100% - 48px); }
  .fn-feature-hero { padding: 28px 0 56px; }
  .fn-breadcrumb { margin-bottom: 26px; }
  .fn-hero-copy .fn-intro { font-size: 16px; max-width: 42ch; margin-top: 16px; }
  .fn-hero-actions { gap: 20px; }
  .fn-hero-demo { margin-top: 32px; }
  .fn-index-hero { padding: 40px 0 16px; }
  .fn-directory, .fn-explanation, .fn-questions, .fn-related, .fn-next { padding: 52px 0; }
  .fn-directory-group { padding: 34px 0; }
  .fn-directory-link { width: calc((100% - 24px) / 2); }
  .fn-directory-links { gap: 8px 24px; }
  .fn-filters { gap: 7px; margin-bottom: 30px; }
  .fn-filters button { padding: 8px 12px; }
  .fn-steps, .fn-related-links { grid-template-columns: 1fr; gap: 30px; }
  .fn-steps { max-width: 440px; margin: 30px auto 0; }
  .fn-steps p { max-width: 38ch; }
  .fn-step-number { margin-bottom: 12px; }
  .fn-editorial-photo { margin-top: 32px; }
  .fn-editorial-photo-compact { margin-top: 22px; }
  .fn-related-links { margin-top: 30px; }
  .fn-answer { padding: 24px 4px; }
}
@media (max-width: 640px) {
  .fn-phone-gallery { --phone-width: 175px; --phone-height: 379px; --phone-scale: .5; max-width: 440px; gap: 26px 16px; }
  .fn-phone-caption { margin-top: 16px; font-size: 16px; }
}
@media (max-width: 420px) {
  .fn-directory-link { width: 100%; padding: 18px 0; }
  .fn-phone-gallery { --phone-width: 154px; --phone-height: 334px; --phone-scale: .44; }
  .fn-phone-caption { font-size: 14px; }
}
@media (max-width: 360px) {
  .fn-phone-gallery { --phone-width: 126px; --phone-height: 273px; --phone-scale: .36; }
}
@media (prefers-reduced-motion: reduce) {
  .fn-page * { scroll-behavior: auto !important; }
  .fn-directory-link > .arrow { transition: none; }
}
