/* One language shows at a time; the EN/FR switch picks it. */
html[lang=en] [lang=fr], html[lang=fr] [lang=en] { display: none !important; }

/* The wordmark at the size swiftw.ing's header uses. */
.m-header__logo,
.m-header__popover__logo {
  width: 154px;
  height: 26px;
}
@media (max-width: 767px) {
  .m-header__logo,
  .m-header__popover__logo { width: 130px; height: 22px; }
}
.m-header__logo img,
.m-header__popover__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.m-footer__logo img {
  width: 154px;
  height: auto;
}
@media (max-width: 767px) {
  .m-footer__logo img { width: 130px; }
}
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Swiftwing hero content in the purple panel. */
.sw-yc { color: #DFDCFC; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 0; padding: 5px 14px 5px 11px; border: 1px solid currentColor; border-radius: 999px; font-size: 14px; line-height: 20px; }
.sw-yc-mark { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; background: #F26522; color: #fff; font: 700 13px/1 Helvetica, Arial, sans-serif; }
.sw-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* A slot-machine reel: van, parcel, letter, 2 s each; the second van makes the loop seamless.
   The window keeps one size; each picture fits inside it. */
.sw-title-img { --h: 1.3em; display: inline-block; vertical-align: middle; width: calc(var(--h) * 1.39); height: var(--h); margin-left: .2em; overflow: hidden; transform: translateZ(0); }
.sw-title-reel { display: flex; flex-direction: column; height: 400%; animation: sw-reel 6s cubic-bezier(.5, 1.6, .5, 1) infinite; }
.sw-title-reel img { flex: none; width: 100%; height: 25%; object-fit: contain; }
@keyframes sw-reel { 0%, 28% { transform: none; } 33.3%, 61.6% { transform: translateY(-25%); } 66.6%, 95% { transform: translateY(-50%); } 100% { transform: translateY(-75%); } }
@media (prefers-reduced-motion: reduce) { .sw-title-reel { animation: none; } }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.store-badge { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 14px 0 12px; background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 9px; text-decoration: none; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; transition: border-color .3s; }
.store-badge:hover { border-color: #fff; }
.store-mark { width: 26px; height: 26px; flex: none; }
.store-text { display: grid; gap: 2px; }
.store-small { font-size: 10.5px; line-height: 1; }
.store-badge:nth-child(2) .store-small { text-transform: uppercase; letter-spacing: .4px; }
.store-big { font-size: 21px; line-height: 1; font-weight: 600; }

/* Plain header links, no dropdowns. */
a.m-header__nav__trigger, a.m-header__popover__link { color: inherit; text-decoration: none; }

/* The short footer: logo, a few links and the copyright line. */
.sw-footer-links { color: #fff; font-size: 15px; display: flex; flex-wrap: nowrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.sw-footer .m-footer__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; }
.sw-footer .m-footer__foot > * { width: auto; }
.sw-footer .m-footer__foot p { white-space: nowrap; font-size: 15px; }
@media (max-width: 1024px) {
  .sw-footer .m-footer__foot, .sw-footer-links { flex-wrap: wrap; }
}
.sw-footer-links a { color: inherit; text-decoration: none; }
.sw-footer-links a:hover { text-decoration: underline; }
.sw-footer .m-footer__container { row-gap: 0; }
.sw-footer .m-footer__foot { border-top: 0; }

/* The app screenshot in Cabify's proportions: a 3:4 light panel, the phone 65% of its width,
   its top cut off by the panel and its bottom 13% above the panel's foot. */
.sw-app-shot { position: relative; align-self: start; aspect-ratio: 3 / 4; padding: 0; background: #E9E6FE; }
.sw-app-shot img { position: absolute; left: 17.5%; bottom: 13%; width: 65%; height: auto; max-height: none; filter: drop-shadow(0 12px 24px rgba(20, 14, 50, .12)); }
/* What we move: the van, parcel and letter in place of Cabify's illustrations. */
.e-image.--illustration.sw-move-img img { height: 64px; }
.c-box:has(.sw-soon) { position: relative; }
.sw-soon { position: absolute; top: 24px; right: 24px; }

/* Montserrat, the font of the retired Swiftwing app, for all text (SIL Open Font License, assets/fonts/swiftwing-app/OFL.txt). */
@font-face { font-family: "Swiftwing Montserrat"; src: url("assets/fonts/swiftwing-app/Montserrat-Regular.woff2") format("woff2"); font-weight: 100 449; font-display: swap; }
@font-face { font-family: "Swiftwing Montserrat"; src: url("assets/fonts/swiftwing-app/Montserrat-Medium.woff2") format("woff2"); font-weight: 450 549; font-display: swap; }
@font-face { font-family: "Swiftwing Montserrat"; src: url("assets/fonts/swiftwing-app/Montserrat-SemiBold.woff2") format("woff2"); font-weight: 550 649; font-display: swap; }
@font-face { font-family: "Swiftwing Montserrat"; src: url("assets/fonts/swiftwing-app/Montserrat-Bold.woff2") format("woff2"); font-weight: 650 1000; font-display: swap; }
:root {
  --font-family-heading: "Swiftwing Montserrat", system-ui, sans-serif;
  --font-family-text: "Swiftwing Montserrat", system-ui, sans-serif;
}
.e-cta.--primary, .e-cta.--secondary, .e-cta.--tertiary { font-family: var(--font-family-text); }

/* Header: the links centred between the logo and the buttons. */
@media (min-width: 1025px) {
  .m-header__main .m-header__nav { justify-content: center; }
}

/* The EN/FR switch. */
.sw-lang { box-sizing: border-box; display: inline-flex; gap: 2px; height: 40px; padding: 2px; border: 1px solid #DCD8FB; border-radius: 10px; }
.sw-lang button { height: 100%; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-size: 14px; font-weight: 700; line-height: 22px; cursor: pointer; }
.sw-lang button[aria-pressed=true] { background: #6D5FED; color: #fff; }
.sw-lang button:not([aria-pressed=true]):hover { background: #F0EEFE; }
.m-header__popover__section.sw-popover-end { flex-direction: row; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; }

/* The app's 3D pictures beside its three strengths. */
.sw-feature-img { width: 40px; height: 40px; margin: 0; }
.sw-feature-img img { width: 100%; height: 100%; object-fit: contain; }

/* Questions: one group at a time. */
.sw-faq-tabs { display: flex; gap: 8px; }
.sw-faq-tabs button { height: 40px; padding: 0 18px; border: 0; border-radius: var(--radius-xs); background: #F0EEFE; color: #6D5FED; font: inherit; font-size: 14px; font-weight: 700; line-height: 22px; cursor: pointer; }
.sw-faq-tabs button[aria-selected=true] { background: #6D5FED; color: #fff; }
.m-header .e-cta { white-space: nowrap; }


/* Labels (pills) in the paragraphs' weight, all 14 px like the Y Combinator badge. */
.e-tag, .sw-yc { font-size: 14px; line-height: 22px; font-weight: 450; }

/* The questions follow the cards with no extra space above. */
#faq.m-accordion { margin-top: 0; padding-top: 0; }

/* The header button, the EN/FR switch and the question tabs use the menu links' size and weight. */
.m-header .e-cta, .sw-lang button, .sw-faq-tabs button { font-size: 16px; line-height: 24px; font-weight: 450; }
@media (width <= 1540px) {
  .m-header .e-cta, .sw-lang button, .sw-faq-tabs button { font-size: 14px; line-height: 22px; }
}

/* Both languages share one spot, so the hero keeps the taller one's height when the language changes. */
.sw-stack { display: grid; }
.sw-stack > [lang] { grid-area: 1 / 1; }
html[lang=en] .sw-stack > [lang=fr], html[lang=fr] .sw-stack > [lang=en] { display: block !important; visibility: hidden; }

.m-header .e-cta { font-weight: 700; }

/* swiftwing.fr: the founder's letter, as on swiftwing.fr (letter.js opens it). */
html:has(#letter[open]) { overflow: hidden; }
#letter { box-sizing: border-box; position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: clamp(12px, 5vh, 56px) 12px; border: 0; color: #1C1C1C; background: rgba(55, 44, 117, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#letter[open] { display: grid; place-items: center; }
#letter::backdrop { background: transparent; }
#letter .sheet { width: min(880px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 24px; box-shadow: 0 40px 100px rgba(20, 12, 70, .35); }
#letter .sheet-bar { display: flex; align-items: center; gap: 14px; padding: 20px 20px 14px 50px; }
#letter .sheet-bar img { width: 154px; height: auto; margin-right: auto; }
#letter .close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: #F0EEFE; color: #6D5FED; cursor: pointer; }
#letter .close .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#letter .sheet-body { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 10px 50px 50px; font-size: 18px; line-height: 1.5; -webkit-mask-image: linear-gradient(#000 calc(100% - 70px), transparent); mask-image: linear-gradient(#000 calc(100% - 70px), transparent); }
#letter .sheet-body::-webkit-scrollbar { display: none; }
#letter .sheet-body:focus { outline: none; }
#letter.at-end .sheet-body { -webkit-mask-image: none; mask-image: none; }
#letter .sheet-body h2 { max-width: 13em; margin: 6px 0 26px; font-size: 32px; line-height: 1.2; font-weight: 700; }
#letter .sheet-body p { margin: 0 0 16px; }
#letter .sheet-body strong { font-weight: 700; }
#letter .sheet-body ul { margin: 0 0 18px; padding: 0; list-style: none; }
#letter .sheet-body li { position: relative; padding-left: 26px; margin-bottom: 12px; }
#letter .sheet-body li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 10px; height: 10px; border-radius: 2px; background: #6D5FED; }
#letter .sheet-body .sign { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid #DCD8FB; }
#letter .sheet-body .sign::first-line { font-weight: 700; }
@media (max-width: 767px) {
  #letter { padding: 8px; }
  #letter .sheet-bar { padding: 12px 12px 8px 22px; }
  #letter .sheet-bar img { width: 130px; }
  #letter .sheet-body { padding: 6px 22px 40px; font-size: 17px; }
}
@media (prefers-reduced-motion: no-preference) {
  #letter[open] { animation: sw-fade .3s ease; }
  #letter[open] .sheet { animation: sw-rise .6s cubic-bezier(.2, .7, .2, 1); }
  #letter.closing { animation: sw-fade .25s ease reverse forwards; }
  #letter.closing .sheet { animation: sw-rise .25s ease reverse forwards; }
  @keyframes sw-fade { from { opacity: 0; } }
  @keyframes sw-rise { from { opacity: 0; transform: translateY(50px); } }
}

/* Mission, legal notice and privacy policy, in the layout of Cabify's legal pages. */
.sw-text-page h1:first-child { margin-top: 0; }
.sw-text-page mark.todo { padding: 0 5px; border-radius: 3px; background: #FFE58A; color: inherit; }
