/* Route 66 Logbook · home page styles
   Shared by the English, French and Spanish home pages.
   Edit here once; all three pick it up. Loaded root-relative as
   /styles/home.css so it resolves the same from / , /fr/ and /es/ .
*/
  :root {
    --coral: #ea5b56;
    --teal: #6daeab;
    --sand: #f7f4f0;
    --charcoal: #2b3033;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--sand);
    color: var(--charcoal);
    font-family: 'Public Sans', sans-serif;
    overflow-x: hidden;
  }

  /* NAV */
  nav { display: none; }
  .nav-logo-wrap {
    display: flex; flex-direction: column; align-items: center;
    position: relative; top: 0;
  }
  .nav-logo-img {
    width: 150px; height: 150px; border-radius: 50%;
    background: transparent;
    overflow: hidden;
  }
  .nav-logo-placeholder {
    font-weight: 700; font-size: 11px; letter-spacing: 1px;
    color: rgba(255,255,255,0.4); text-align: center; text-transform: uppercase;
    padding: 12px;
  }
  .nav-links {
    display: flex; gap: 36px; list-style: none; align-items: center;
    padding-top: 20px;
  }
  .nav-links a {
    font-size: 12px; font-weight: 600; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--charcoal); text-decoration: none;
    opacity: 0.55; transition: opacity 0.2s;
  }
  .nav-links a:hover { opacity: 1; }
  .nav-cta {
    background: var(--coral) !important; color: white !important;
    opacity: 1 !important; padding: 10px 24px; border-radius: 100px;
  }

  /* HERO */
  .hero {
    height: 100vh; min-height: 700px; position: relative;
    display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  }
  .hero-bg {
    position: absolute; inset: 0;
    background:
      linear-gradient(to top right, rgba(0, 0, 0, 0.30) 0%, rgba(43,48,51,0.0) 50%), url('/images/blueswallow.jpg') center/cover no-repeat;
  }
  .hero-bg-mobile { display: none; }
  .hero-photo-hint { display: none; }
  .hero-logo {
    position: absolute;
    top: 24px;
    left: 32px;
    z-index: 10;
    width: 160px;
    height: 160px;
  }
  .hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .hero-content {
    position: relative; z-index: 2;
    padding: 0 52px 72px 52px;
    max-width: 60%;
  }
  .hero-eyebrow {
    font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    color: var(--teal); margin-bottom: 22px;
    opacity: 0; animation: fadeUp 0.8s ease forwards 0.3s;
  }
  .hero-title {
    font-weight: 800; font-size: clamp(48px, 7vw, 92px);
    color: white; line-height: 0.9; letter-spacing: -2px; margin-bottom: 22px;
    opacity: 0; animation: fadeUp 0.8s ease forwards 0.5s;
  }
  .hero-title em { color: var(--coral); font-style: normal; white-space: nowrap; }
  .hero-line-1 { font-size: clamp(44px, 6.5vw, 90px); font-family: 'Instrument Serif', serif; font-style: italic;}
  .hero-line-2 { display: block; font-size: clamp(54px, 8.5vw, 112px); }
  .hero-sub {
    font-family: 'Instrument Serif', serif; font-style: italic;
    font-size: clamp(17px, 2.2vw, 22px); color: rgba(255,255,255,0.78);
    max-width: 500px; line-height: 1.65; margin-bottom: 44px;
    opacity: 0; animation: fadeUp 0.8s ease forwards 0.7s;
  }
  .hero-actions {
    display: flex; align-items: center; gap: 28px;
    opacity: 0; animation: fadeUp 0.8s ease forwards 0.9s;
  }
  .btn-primary {
    background: var(--coral); color: white; padding: 16px 38px;
    border-radius: 100px; font-size: 14px; font-weight: 600; letter-spacing: 0.3px;
    text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex; align-items: center; gap: 10px;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(234,91,86,0.4); }
  .btn-ghost {
    color: rgba(255,255,255,0.72); font-size: 13px; font-weight: 500;
    text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 2px; transition: color 0.2s, border-color 0.2s;
  }
  .btn-ghost:hover { color: white; border-color: white; }
  .scroll-hint {
    position: absolute; bottom: 36px; right: 52px; z-index: 2;
    font-family: 'Instrument Serif', serif; font-style: italic; font-size: 13px;
    color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 10px;
    opacity: 0; animation: fadeUp 0.8s ease forwards 1.2s;
  }
  .scroll-arrow {
    width: 26px; height: 26px; border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    animation: bounce 2s ease infinite;
  }

  /* PAIN: charcoal bg */
  .pain { background: var(--charcoal); padding: 130px 52px; }
  .pain-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  }
  .section-eyebrow {
    font-size: 11px; font-weight: 600; letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 22px;
  }
  .ec { color: var(--coral); }
  .et { color: var(--teal); }
  .es { color: rgba(247,244,240,0.45); }
  .pain-title {
    font-weight: 800; font-size: clamp(38px, 5vw, 68px);
    color: white; line-height: 0.93; letter-spacing: -2px; margin-bottom: 24px;
  }
  .pain-body {
    font-family: 'Instrument Serif', serif; font-style: italic;
    font-size: 19px; color: rgba(255,255,255,0.48); line-height: 1.75;
  }
  .pain-cards { display: flex; flex-direction: column; gap: 10px; }
  .pain-card {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 26px 28px; display: flex; gap: 18px;
    align-items: flex-start; transition: background 0.3s;
  }
  .pain-card:hover { background: rgba(255,255,255,0.09); }
  .pain-icon {
    width: 38px; height: 38px; background: rgba(234,91,86,0.13);
    border-radius: 10px; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
  }
  .pain-card-title { font-size: 14px; font-weight: 600; color: white; margin-bottom: 5px; }
  .pain-card-text { font-size: 13px; color: rgba(255,255,255,0.38); line-height: 1.65; }

  /* SOLUTION: sand bg */
  .solution { background: var(--sand); padding: 140px 52px; }
  .solution-inner { max-width: 1200px; margin: 0 auto; }
  .solution-title {
    font-weight: 800; font-size: clamp(44px, 6.5vw, 90px);
    color: var(--charcoal); line-height: 0.91; letter-spacing: -2.5px; margin-bottom: 22px;
  }
  .solution-title em { color: var(--coral); font-style: normal; }
  .solution-intro {
    font-family: 'Instrument Serif', serif; font-style: italic;
    font-size: 21px; color: rgba(43,48,51,0.52); max-width: 600px;
    line-height: 1.65; margin-bottom: 80px;
  }
  .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

  /* ALTERNATING FEATURE ROWS */
  .feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
    padding-bottom: 100px;
    border-bottom: 1px solid rgba(43,48,51,0.07);
  }
  .feature-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .feature-row-reverse { direction: rtl; }
  .feature-row-reverse > * { direction: ltr; }
  .feature-row-text { display: flex; flex-direction: column; gap: 16px; }
  .feature-row-phone {
    display: flex; justify-content: center; align-items: center;
  }
  .feat-phone-img {
    width: 264px;
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 40px 80px rgba(43,48,51,0.15)) drop-shadow(0 8px 24px rgba(43,48,51,0.1));
  }
  .features-cta {
    text-align: center;
    padding: 80px 0 0;
    border-top: 1px solid rgba(43,48,51,0.07);
    margin-top: 20px;
  }
  .features-cta-title {
    font-weight: 800;
    font-size: clamp(32px, 4vw, 52px);
    color: var(--charcoal);
    letter-spacing: -1.5px;
    margin-bottom: 12px;
  }
  .features-cta-sub {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 18px;
    color: rgba(43,48,51,0.5);
    margin-bottom: 36px;
  }
  .feature {
    padding: 38px 34px; background: white; border-radius: 20px;
    border: 1px solid rgba(43,48,51,0.06); transition: transform 0.3s;
  }
  .feature:hover { transform: translateY(-4px); }
  .feature:nth-child(2) { background: var(--charcoal); }
  .feature:nth-child(2) .feature-title { color: white; }
  .feature:nth-child(2) .feature-text { color: rgba(255,255,255,0.45); }
  .feature:nth-child(2) .feature-num { color: rgba(255,255,255,0.05); }
  .feature:nth-child(5) { background: var(--teal); }
  .feature:nth-child(5) .feature-title { color: white; }
  .feature:nth-child(5) .feature-text { color: rgba(255,255,255,0.72); }
  .feature:nth-child(5) .feature-num { color: rgba(255,255,255,0.1); }
  .feature-num {
    font-weight: 700; font-size: 58px; color: rgba(43,48,51,0.06);
    line-height: 1; margin-bottom: 18px; letter-spacing: -2px;
  }
  .feature-title {
    font-weight: 700; font-size: 20px; color: var(--charcoal);
    margin-bottom: 10px; line-height: 1.15; letter-spacing: -0.3px;
  }
  .feature-text { font-size: 13px; color: rgba(43,48,51,0.52); line-height: 1.72; }

  /* SCREENSHOTS: charcoal bg */
  .screenshots { background: var(--charcoal); padding: 130px 52px; overflow: hidden; }
  .screenshots-inner { max-width: 1200px; margin: 0 auto; }
  .screenshots-header { margin-bottom: 64px; }
  .screenshots-title {
    font-weight: 800; font-size: clamp(40px, 5.5vw, 72px);
    color: white; line-height: 0.93; letter-spacing: -2px; margin-bottom: 16px;
  }
  .screenshots-title em { color: var(--teal); font-style: normal; }
  .screenshots-sub {
    font-family: 'Instrument Serif', serif; font-style: italic;
    font-size: 18px; color: rgba(255,255,255,0.38);
  }
  .phones-row {
    display: flex; gap: 24px; align-items: flex-end; justify-content: center;
  }
  .phone-wrap {
    flex: 1; max-width: 220px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
  }
  .phone-wrap:nth-child(2), .phone-wrap:nth-child(4) { margin-bottom: 48px; }
  .phone-frame {
    width: 100%; aspect-ratio: 9/19.5; background: #1a1e21;
    border-radius: 34px; border: 2px solid rgba(255,255,255,0.09);
    overflow: hidden; position: relative;
    box-shadow: 0 48px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  }
  .phone-notch {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 56px; height: 10px; background: #1a1e21; border-radius: 10px;
    z-index: 2; border: 2px solid rgba(255,255,255,0.07);
  }
  .phone-screen {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px;
    color: rgba(255,255,255,0.18); font-size: 10px; letter-spacing: 2px;
    text-transform: uppercase; text-align: center; padding: 24px;
    /* Replace content with: <img src="images/screen-X.jpg" style="width:100%;height:100%;object-fit:cover"> */
  }
  .phone-label {
    font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; color: rgba(255,255,255,0.25); text-align: center;
  }

  /* EDITORIAL: sand bg */
  .editorial { padding: 130px 52px; background: var(--sand); }
  .editorial-inner { max-width: 1200px; margin: 0 auto; }
  .editorial-header { display: flex; align-items: baseline; gap: 20px; margin-bottom: 40px; }
  .editorial-title {
    font-weight: 800; font-size: clamp(32px, 4.5vw, 58px);
    color: var(--charcoal); letter-spacing: -1.5px;
  }
  .editorial-sub {
    font-family: 'Instrument Serif', serif; font-style: italic;
    font-size: 16px; color: rgba(43,48,51,0.38);
  }
  .photos-grid-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
  .photos-grid-top .photo-cell { height: 546px; }
  .photos-grid-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 286px 286px;
    gap: 12px;
  }
  .photos-grid-bottom .photo-cell { height: 286px; }
  .pc-wigwam { grid-column: 2; grid-row: 1 / 3; height: auto !important; min-height: 584px; }
  .photo-cell {
    border-radius: 18px; overflow: hidden; position: relative; background: #c8b89a;
  }
  .photo-placeholder {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px;
    color: rgba(255,255,255,0.38); font-size: 10px; letter-spacing: 2px;
    text-transform: uppercase; text-align: center; padding: 20px;
  }
  .photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .photo-caption {
    position: absolute; bottom: 14px; left: 14px; right: 14px;
    font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.72); letter-spacing: 0.3px;
  }

  /* COMMUNITY: teal bg */
  .community { background: var(--teal); padding: 140px 52px; text-align: center; }
  .community-inner { max-width: 780px; margin: 0 auto; }
  .community-title {
    font-weight: 800; font-size: clamp(44px, 6.5vw, 90px);
    color: white; line-height: 0.91; letter-spacing: -2.5px; margin-bottom: 26px;
  }
  .community-title em { color: var(--charcoal); font-style: normal; }
  .community-body {
    font-family: 'Instrument Serif', serif; font-style: italic;
    font-size: 20px; color: rgba(255,255,255,0.62); line-height: 1.75; margin-bottom: 60px;
  }
  .stats-row { display: flex; justify-content: center; gap: 64px; margin-bottom: 60px; }
  .stat { text-align: center; }
  .stat-num {
    font-weight: 700; font-size: 58px; color: white;
    line-height: 1; letter-spacing: -2px; margin-bottom: 6px;
  }
  .stat-label {
    font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.52);
    letter-spacing: 1.5px; text-transform: uppercase;
  }
  .btn-community {
    background: var(--charcoal); color: white; padding: 16px 38px; border-radius: 100px;
    font-size: 14px; font-weight: 600; letter-spacing: 0.3px; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .btn-community:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(43,48,51,0.35); }

  /* DOWNLOAD: sand bg */
  .download {
    padding: 160px 52px; position: relative; overflow: hidden;
    background-color: var(--charcoal);
    background-image: linear-gradient(rgba(43,48,51,0.5), rgba(43,48,51,0.5)), url('/images/morten-andreassen-mX0tCOykgSY-unsplash.jpg');
    background-size: cover; background-position: center; background-repeat: no-repeat;
  }
  .download-inner { max-width: 680px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
  .download-title {
    font-weight: 800; font-size: clamp(54px, 8.5vw, 112px);
    color: white; line-height: 0.88; letter-spacing: -3.5px; margin-bottom: 26px;
  }
  .download-title em { color: var(--coral); font-style: normal; }
  .download-sub {
    font-family: 'Instrument Serif', serif; font-style: italic;
    font-size: 20px; color: rgba(255,255,255,0.6); margin-bottom: 52px; line-height: 1.6;
  }
  .download-badges { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
  .badge-btn {
    display: flex; align-items: center; gap: 14px; background: var(--coral);
    color: white; padding: 15px 30px; border-radius: 16px; text-decoration: none;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  }
  .badge-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(234,91,86,0.4); }
  .badge-btn-android { background: var(--teal); }
  .badge-btn-android:hover { box-shadow: 0 14px 40px rgba(109,174,171,0.45); }
  .badge-btn-label { font-size: 10px; opacity: 0.52; display: block; letter-spacing: 0.5px; margin-bottom: 2px; }
  .badge-btn-store { font-size: 17px; font-weight: 700; display: block; letter-spacing: -0.3px; }

  /* ANDROID WAITLIST: sand bg */

  /* MAKER / ABOUT TEASER: teal bg */
  .maker { background: var(--teal); padding: 100px 52px; text-align: center; }
  .maker-inner { max-width: 620px; margin: 0 auto; }
  .maker-eyebrow {
    font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    color: rgba(255,255,255,0.55); margin-bottom: 20px;
  }
  .maker-title {
    font-weight: 800; font-size: clamp(36px, 5.5vw, 64px);
    color: #fff; line-height: 0.95; letter-spacing: -2px; margin-bottom: 34px;
  }
  .maker-title em { color: var(--charcoal); font-style: normal; }
  .maker-body {
    font-family: 'Instrument Serif', serif; font-style: italic;
    font-size: 20px; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 40px;
  }
  .maker-btn {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--charcoal); color: #fff; text-decoration: none;
    padding: 16px 34px; border-radius: 100px;
    font-size: 14px; font-weight: 600; letter-spacing: 0.3px;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .maker-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(43,48,51,0.35); }
  @media (max-width: 960px) { .maker { padding: 80px 24px; } }

  /* FOOTER */
  footer {
    background: var(--charcoal); padding: 44px 52px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 18px;
  }
  .footer-left { display: flex; flex-direction: column; gap: 6px; }
  .footer-logo { font-weight: 700; font-size: 18px; color: #fff; letter-spacing: -0.3px; }
  .footer-logo span { color: var(--coral); }
  .footer-tagline { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 14px; color: rgba(255,255,255,0.3); }
  .footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
  .footer-links { display: flex; gap: 22px; }
  .footer-links a {
    font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s;
  }
  .footer-links a:hover { color: var(--coral); }
  .footer-socials { display: flex; align-items: center; gap: 18px; }
  .footer-socials a { color: rgba(255,255,255,0.4); display: inline-flex; transition: color 0.2s, transform 0.2s; }
  .footer-socials a:hover { color: var(--coral); transform: translateY(-2px); }
  .footer-socials svg { width: 20px; height: 20px; display: block; }
  .footer-copy { font-size: 12px; color: rgba(255,255,255,0.22); width: 100%; text-align: center; margin-top: 8px; }

  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
  }
  .reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.75s ease, transform 0.75s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* LANGUAGE SWITCHER
     Top-right of the hero, opposite the logo, so it is above the fold on
     every page. Text endonyms, no flags: a flag names a country, not a
     language, and the app's own picker labels languages this way too
     (src/lib/i18n.ts). */
  .lang-switch {
    background: var(--charcoal);
    display: flex; justify-content: center; align-items: center; gap: 26px;
    padding: 26px 24px 4px;
  }
  .lang-switch a {
    font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
    color: rgba(255,255,255,0.5); text-decoration: none;
    padding-bottom: 4px; border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
  }
  .lang-switch a:hover { color: var(--coral); }
  .lang-switch a.is-current { color: #fff; border-bottom-color: var(--coral); }

  /* RESPONSIVE */
  @media (max-width: 960px) {
    nav { padding: 16px 24px; }
    .nav-links { display: none; }
    .hero-content { padding: 180px 24px 60px !important; max-width: 100% !important; }
    .hero-logo { width: 130px !important; height: 130px !important; }
    /* Top-right collides with the 130px logo below 960px — measured, the two
       overlap at 320. Drop it under the logo instead, where the hero is empty:
       full endonyms survive at every width and nothing has to be abbreviated. */
    .lang-switch { gap: 18px; padding: 22px 20px 2px; }
    .lang-switch a { font-size: 11px; letter-spacing: 0.6px; }
    .hero-bg { display: none; }
    .hero-bg-mobile {
      display: block;
      position: absolute; inset: 0;
      background: url('/images/blueswallow-mobile.jpg') center/cover no-repeat;
    }
    .hero-content { padding: 0 24px 64px; }
    .pain, .solution, .screenshots, .editorial, .community, .download, .android { padding-left: 24px; padding-right: 24px; }
    .pain-inner { grid-template-columns: 1fr; gap: 48px; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-row { grid-template-columns: 1fr; gap: 40px; margin-bottom: 60px; padding-bottom: 60px; }
    .feature-row-reverse { direction: ltr; }
    .feat-phone-img { width: 210px; }
    .phones-row { gap: 12px; overflow-x: auto; padding-bottom: 16px; }
    .phone-wrap { max-width: 160px; min-width: 140px; flex-shrink: 0; }
    .phone-wrap:nth-child(2), .phone-wrap:nth-child(4) { margin-bottom: 24px; }
    .photos-grid-top { grid-template-columns: 2fr 1fr !important; }
    .photos-grid-top .photo-cell { height: 180px !important; }
    .photos-grid-bottom { grid-template-columns: 1fr 1fr !important; grid-template-rows: 160px 160px !important; }
    .photos-grid-bottom .photo-cell { height: 160px !important; }
    .pc-wigwam { grid-column: 2 !important; grid-row: 1 / 3 !important; height: auto !important; min-height: 332px !important; }
    .stats-row { gap: 32px; }
          footer { flex-direction: column; align-items: center; text-align: center; padding: 36px 24px; }
    .footer-left, .footer-right { align-items: center; }
  }
