/* Filo: a compact, quiet page with Classic Blue accents and readable text. */
:root {
  --blue: #0f4c81;
  --blue-deep: #123e62;
  --ink: #203748;
  --muted: #526978;
  --paper: #fff;
  --soft: #f7fafc;
  --line: #dfe8ee;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #2877b5;
  outline-offset: 4px;
  border-radius: 4px;
}
.container {
  width: min(1000px, calc(100% - 56px));
  margin-inline: auto;
}
/* The skip link and large language targets keep navigation easy by keyboard or touch. */
.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 20;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--blue-deep);
  color: white;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  position: relative;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  color: var(--blue-deep);
  font-size: 27px;
  letter-spacing: -1.1px;
  font-weight: 740;
  line-height: 1;
}
.logo-mark {
  display: block;
  width: 35px;
  height: 35px;
  flex: none;
}
.wordmark-dot {
  color: #6ba5cb;
}
.nav {
  display: flex;
  align-items: center;
  gap: 25px;
}
.nav a,
.footer-links a {
  color: #486173;
  font-size: 14px;
}
.nav a:hover,
.footer-links a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.lang {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 6px;
}
.lang a[aria-current=page] {
  color: var(--blue-deep);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.mobile-menu {
  display: none;
}
/* A small app symbol replaces the decorative hero illustration. */
.hero {
  padding: 60px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: 64px;
}
.eyebrow,
.kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  color: var(--ink);
  font-size: clamp(42px, 5.5vw, 62px);
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -.045em;
  margin-bottom: 21px;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
  background: linear-gradient(110deg, #0f4c81, #286c9d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.intro {
  max-width: 590px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 24px;
}
.buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  max-width: 100%;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  transition: background-color .15s, border-color .15s;
}
.button.primary {
  color: white;
  background: var(--blue);
}
.button.primary:hover:not(.disabled):not(:disabled) {
  background: #123e62;
}
.button.secondary {
  color: var(--blue);
  background: white;
  border-color: #cad9e4;
}
.button.secondary:hover:not(.disabled):not(:disabled) {
  background: #f0f6fa;
  border-color: #a9c3d6;
}
.button svg {
  width: 17px;
  height: 17px;
}
.button.disabled,
.button:disabled {
  color: #52697b;
  background: #edf2f6;
  border-color: #d2dee7;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
}
.micro,
.config-note,
.form-note,
.hero-caption,
.download-disclaimer,
.note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.micro {
  margin: 15px 0 0;
}
.hero-art {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  margin: 0;
}
.hero-symbol {
  display: block;
  width: 176px;
  height: 176px;
  max-width: 100%;
}
.hero-caption {
  margin: 0;
  text-align: center;
}
/* Plain sections and fine dividers keep the page compact and readable. */
.section {
  padding: 64px 0;
}
.section.alt {
  background: var(--soft);
  border-block: 1px solid #e9eff3;
}
.section-header {
  max-width: 660px;
  margin-bottom: 32px;
}
.section h2 {
  color: var(--blue-deep);
  font-size: clamp(28px, 3.4vw, 34px);
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: -.035em;
  margin-bottom: 14px;
}
.section-header p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 0;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.feature {
  min-width: 0;
}
.feature + .feature {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}
.feature-icon {
  color: var(--blue);
  margin-bottom: 14px;
  line-height: 1;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 650;
  margin-bottom: 8px;
}
.feature p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.statement-copy {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  column-gap: 64px;
  row-gap: 8px;
}
.statement-copy .kicker {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}
.statement-copy h2 {
  grid-column: 1;
  grid-row: 2 / 4;
  max-width: 15ch;
}
.statement-copy p {
  grid-column: 2;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 8px;
}
.statement-copy p.note {
  font-size: 13px;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.download-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.download-card > div:last-child {
  min-width: 0;
}
.platform-icon {
  display: grid;
  place-items: center;
  color: var(--blue);
  width: 40px;
  height: 40px;
  flex: none;
}
.platform-icon svg {
  width: 28px;
  height: 28px;
}
.small-tag {
  display: inline-block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .025em;
  margin-bottom: 6px;
}
.download-card h3 {
  color: var(--blue-deep);
  font-size: 21px;
  line-height: 1.4;
  margin-bottom: 6px;
}
.download-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}
/* Architecture choices stay distinct and wrap on narrow screens. */
.download-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.download-card .button {
  overflow-wrap: anywhere;
}
.config-note {
  display: block;
  margin: 16px 0 0;
}
.download-disclaimer {
  margin: 8px 0 0;
}
/* The download warning is deliberately calm and compact on desktop and mobile. */
.beta-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(18, 62, 98, .22);
}
.beta-dialog::backdrop {
  background: rgba(20, 42, 58, .54);
  backdrop-filter: blur(2px);
}
.beta-dialog-card {
  position: relative;
  padding: 32px;
}
.beta-dialog h2 {
  margin: 5px 36px 12px 0;
  font-size: 26px;
  line-height: 1.25;
}
.beta-dialog p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
}
.beta-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}
.beta-dialog-close:hover {
  color: var(--blue-deep);
  background: var(--soft);
}
.beta-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.faq {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 64px;
}
.faq .section-header {
  margin: 0;
}
.faq-list {
  border-top: 1px solid var(--line);
}
details {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
summary {
  position: relative;
  min-height: 44px;
  padding: 8px 32px 8px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  position: absolute;
  right: 2px;
  top: 4px;
  color: var(--blue);
  font-size: 23px;
  font-weight: 400;
}
details[open] summary::after {
  content: '−';
}
details p {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 22px 8px 0;
}
/* Donations stay modest; the signup preview remains visible without implying collection. */
.support-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.support-band > div {
  min-width: 0;
}
.support-band h2 {
  max-width: 24ch;
  font-size: 30px;
}
.support-band p {
  max-width: 610px;
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}
.support-band .button {
  flex: none;
}
.updates-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 32px;
  padding: 28px;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.updates-panel > div {
  min-width: 0;
}
.updates-panel h3 {
  color: var(--blue-deep);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.updates-panel p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.privacy-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.updates-form,
.updates-form fieldset {
  min-width: 0;
}
.updates-form fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}
.updates-form legend.form-note {
  margin: 0 0 12px;
  padding: 0;
}
.updates-form label {
  display: block;
  margin-bottom: 8px;
  color: #294e68;
  font-size: 14px;
  font-weight: 650;
}
.updates-form .form-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.updates-form input[type=email] {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #b9cbd9;
  border-radius: 8px;
  background: white;
  color: #294e68;
}
.updates-form input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.updates-form fieldset:disabled input,
.updates-form fieldset:disabled button {
  cursor: not-allowed;
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}
.updates-form button {
  flex: none;
  min-height: 46px;
}
.updates-form .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.updates-form .consent-row input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--blue);
}
.updates-panel .form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.updates-link[hidden],
.updates-form[hidden] {
  display: none;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 30px;
}
.footer .wordmark {
  font-size: 24px;
}
.footer .logo-mark {
  width: 30px;
  height: 30px;
}
.footer p {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 500px;
  gap: 12px 22px;
}
.footer-links a {
  font-size: 13px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
/* Legal drafts share the same typography and keep unfinished fields clearly visible. */
.legal-main {
  max-width: 800px;
  padding: 64px 0 80px;
}
.legal-main h1 {
  color: var(--blue-deep);
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.15;
  letter-spacing: -.04em;
  margin-bottom: 16px;
}
.legal-main .subhead {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 32px;
}
.legal-main h2 {
  color: var(--blue-deep);
  font-size: 23px;
  line-height: 1.35;
  margin: 34px 0 10px;
}
.legal-main p,
.legal-main li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.legal-main ul {
  padding-left: 20px;
}
.draft-alert {
  padding: 18px 20px;
  margin-bottom: 30px;
  border-radius: 10px;
  border: 1px solid #ebd7ba;
  background: #fff6eb;
  color: #74502c;
  font-size: 14px;
}
.draft-alert p {
  margin: 7px 0 0;
}
.placeholder {
  padding: 2px 5px;
  border-radius: 4px;
  color: #42647c;
  background: #eef4f8;
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Progressive enhancement: without JavaScript, all navigation links remain visible. */
@media (max-width: 900px) {
  .header-inner {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 0 12px;
    padding-block: 12px;
  }
  .nav {
    display: flex;
    position: static;
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding-top: 12px;
  }
  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .js .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    background: white;
  }
  .js .nav.open {
    display: flex;
  }
  .js .mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: none;
    color: var(--blue);
    cursor: pointer;
  }
  .mobile-menu svg {
    height: 20px;
    width: 20px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 176px;
    gap: 36px;
  }
  .statement-copy,
  .faq {
    column-gap: 36px;
  }
  .updates-form .form-row {
    flex-direction: column;
  }
}
@media (max-width: 760px) {
  .container {
    width: min(560px, calc(100% - 38px));
  }
  .wordmark {
    font-size: 25px;
  }
  .logo-mark {
    width: 34px;
    height: 34px;
  }
  .hero {
    padding: 48px 0 52px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: clamp(40px, 10vw, 54px);
  }
  .intro {
    font-size: 17px;
  }
  .hero-art {
    display: none;
  }
  .section {
    padding: 56px 0;
  }
  .section h2 {
    font-size: 30px;
  }
  .section-header {
    margin-bottom: 28px;
  }
  .features,
  .download-grid,
  .faq,
  .updates-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .features {
    gap: 22px;
  }
  .feature + .feature {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0;
  }
  .feature-icon {
    margin-bottom: 10px;
  }
  .statement-copy {
    display: block;
  }
  .statement-copy .kicker {
    margin-bottom: 14px;
  }
  .statement-copy h2 {
    max-width: none;
  }
  .statement-copy p {
    margin-bottom: 14px;
  }
  .faq {
    gap: 26px;
  }
  .support-band {
    display: block;
    padding-bottom: 28px;
  }
  .support-band h2 {
    max-width: none;
    font-size: 28px;
  }
  .support-band .button {
    margin-top: 20px;
  }
  .updates-panel {
    padding: 24px;
    margin-top: 28px;
    gap: 26px;
  }
  .footer-grid {
    gap: 24px;
  }
  .footer-links {
    justify-content: flex-start;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .legal-main {
    padding: 48px 0 64px;
  }
}
/* Long translated labels wrap inside cards on narrow phones. */
@media (max-width: 420px) {
  .download-card {
    padding: 22px 18px;
    gap: 12px;
  }
  .platform-icon {
    width: 32px;
    height: 36px;
  }
  .platform-icon svg {
    width: 25px;
    height: 25px;
  }
  .header-actions {
    gap: 4px;
  }
  .wordmark {
    gap: 8px;
  }
  .updates-panel {
    padding: 22px 20px;
  }
  .beta-dialog-card {
    padding: 28px 22px 22px;
  }
  .beta-dialog h2 {
    font-size: 23px;
  }
  .beta-dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .beta-dialog-actions .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
