/* Meridian landing page styles.
 * Extracted from an inline <style> block into this dedicated file so the
 * browser can cache it independently of index.html — previously every
 * page load re-downloaded the full stylesheet embedded in the HTML.
 * See index.html's head comment for the rest of the architecture notes
 * from this refactor (static HTML instead of JS-injected innerHTML).
 */

  :root{
    --bg:#F8FAFC;
    --surface:#FFFFFF;
    --border:#CBD5E1;
    --text:#0F172A;
    --text-soft:#334155;
    --accent:#3B82F6;
    --accent-dark:#2563EB;
    --accent-soft:#EFF6FF;
    --shadow-card: 0 1px 2px rgba(15,23,42,.05), 0 16px 32px -20px rgba(15,23,42,.22);
    --shadow-btn: 0 10px 22px -8px rgba(59,130,246,.48);
    --radius-card: 22px;
    --radius-btn: 999px;
    --container: 1120px;
    --hero-gradient: linear-gradient(180deg,#f8fafc 0%,#eff6ff 22%,#f8fafc 88%);
    --drift-text: #1e293b;
    --contact-hover: #e0e7ff;
    --header-bg:rgba(255,255,255,.94);
    --glass:rgba(255,255,255,.78);
    --ground-shadow:rgba(15,23,42,.30);
  }

  /* Dark mode: opt-in only via a manual toggle (see .theme-toggle and
     theme.js), not tied to the OS's prefers-color-scheme setting. The
     light theme above stays the default for every first-time visitor
     regardless of their system setting — this attribute is only ever
     added by the toggle script, and only after the person clicks it (or
     on repeat visits, from what they chose last time via localStorage).
     Colors reuse the same palette as the Meridian Android app's own dark
     mode for a consistent brand feel across web and app. */
  :root[data-theme="dark"]{
    --bg:#0F172A;
    --surface:#1E293B;
    --border:#334155;
    --text:#F8FAFC;
    --text-soft:#94A3B8;
    --accent:#3B82F6;
    --accent-dark:#60A5FA;
    --accent-soft:#1E3A5F;
    --shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 16px 32px -20px rgba(0,0,0,.6);
    --shadow-btn: 0 10px 22px -8px rgba(59,130,246,.6);
    --hero-gradient: linear-gradient(180deg,#0F172A 0%,#1a2740 22%,#0F172A 88%);
    --drift-text: #cbd5e1;
    --contact-hover: #263a5e;
    --header-bg:rgba(15,23,42,.90);
    --glass:rgba(30,41,59,.82);
    --ground-shadow:rgba(0,0,0,.60);
  }

  *,*::before,*::after{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; scroll-padding-top:104px; }
  section[id]{ scroll-margin-top:104px; }
  body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:'Inter',-apple-system,sans-serif;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
  }
  img,video{ max-width:100%; display:block; }
  a{ color:inherit; text-decoration:none; }
  button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
  h1,h2,h3{ font-family:'Space Grotesk',sans-serif; margin:0; }
  p{ margin:0; }
  ul{ margin:0; padding:0; list-style:none; }

  .wrap{ width:100%; max-width:var(--container); margin:0 auto; padding-inline:24px; }

  :focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:6px; }

  /* ---------- header ---------- */
  .site-header{
    position:sticky; top:14px; z-index:40;
    width:calc(100% - 32px); max-width:600px; margin:14px auto 0;
    background:var(--header-bg);
    backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
    /* A semi-transparent white border on top of the existing gray one
       reads as a highlight catching the edge of the glass, which is
       what gives a frosted-glass panel its "premium" look rather than
       a plain translucent box with a flat border. */
    border:1px solid var(--border);
    box-shadow:0 10px 30px -14px rgba(15,23,42,.22), inset 0 1px 0 rgba(255,255,255,.5);
    border-radius:999px;
  }
  .site-header .inner{ display:flex; align-items:center; justify-content:space-between; height:58px; padding:0 8px 0 18px; }
  /* No gap/spacing rule existed for the nav links before, so
     "Features"/"Screens"/"Contact" rendered with zero space between
     them (no whitespace in the HTML source, no CSS to add it back) —
     fixing that alongside moving the toggle since both live here. */
  .site-header nav{ display:flex; align-items:center; gap:22px; }
  .brand{ display:flex; align-items:center; gap:9px; }
  .brand img{ width:32px; height:32px; }
  .brand span{ font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:1.05rem; letter-spacing:-.01em; }

  /* Manual dark-mode toggle (see the :root[data-theme="dark"] block
     above and theme.js) — a plain icon button rather than a switch. */
  .theme-toggle{
    display:inline-flex; align-items:center; justify-content:center;
    width:34px; height:34px; padding:0;
    border:1px solid var(--border); border-radius:50%;
    background:var(--surface); color:var(--text-soft);
    cursor:pointer; transition:background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
  }
  .theme-toggle:hover{ color:var(--accent-dark); transform:scale(1.08); }
  .theme-toggle svg{ width:17px; height:17px; }
  .theme-toggle svg[hidden]{ display:none; }

  /* Pinned to the page corner instead of living inside the nav pill —
     fixed positioning keeps it in the same spot regardless of scroll
     position, matching the header's own frosted-glass treatment
     (blur + soft shadow) so it reads as part of the same UI language
     even though it's a separate element. */
  .theme-toggle-corner{
    position:fixed; top:22px; right:22px; z-index:50;
    width:42px; height:42px;
    background:var(--glass);
    backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
    box-shadow:0 10px 26px -12px rgba(15,23,42,.28), inset 0 1px 0 rgba(255,255,255,.5);
  }
  .theme-toggle-corner:hover{ box-shadow:0 14px 30px -12px rgba(15,23,42,.34), inset 0 1px 0 rgba(255,255,255,.5); }
  .theme-toggle-corner svg{ width:19px; height:19px; }
  @media (max-width:640px){
    /* On a phone the pill spans almost the full width, so the corner
       toggle used to sit on top of page content just below it. It now
       sits inside the pill's right end (the pill reserves room for it
       via padding-right) and keeps its fixed positioning, so it still
       works exactly like the desktop one. */
    .site-header .inner{ padding-right:56px; }
    .theme-toggle-corner{ top:24px; right:24px; width:38px; height:38px; border-color:transparent; background:var(--accent-soft); box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
    .theme-toggle-corner:hover{ transform:none; box-shadow:none; }
    /* The header pill never had a mobile layout: Features/Screens/
       Contact/Download all tried to sit on one line with the brand,
       and on a phone-width screen that's wider than the available
       space, so nav overflowed straight off the right edge of the
       pill (with zero room left for a gap after the brand, which is
       why "Meridian" and "Features" read as touching/overlapping —
       see redesign.js for nothing related; this is CSS-only). The
       three section links are anchor-scrolls to content already on
       the page (and repeated in the footer), so on narrow screens
       only the Download button — the actual primary action — stays
       in the pill. */
    .site-header nav a:not(.btn){ display:none; }
  }

  /* ---------- buttons ---------- */
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:9px;
    padding:13px 26px; border-radius:var(--radius-btn);
    font-weight:600; font-size:.96rem;
    background:var(--accent); color:#fff;
    box-shadow:var(--shadow-btn);
    transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
    white-space:nowrap;
  }
  .btn:hover{ background:var(--accent-dark); transform:translateY(-2px); box-shadow:0 16px 30px -8px rgba(37,99,235,.55); }
  .btn:active{ transform:translateY(0); }
  .btn svg{ width:17px; height:17px; flex:none; }
  .btn.small{ padding:9px 20px; font-size:.85rem; box-shadow:none; }
  .btn.small:hover{ transform:none; box-shadow:none; }

  /* ---------- hero ---------- */
  .hero{ position:relative; overflow:hidden; padding:84px 0 68px; text-align:center; }
  .hero-drift{ position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
  .drift-item{
    position:absolute; top:0; left:0; will-change:top,transform,opacity;
    animation-name:driftDown; animation-timing-function:linear; animation-iteration-count:infinite;
    opacity:0;
  }
  .drift-item.text{
    font-family:'Space Grotesk',sans-serif; font-weight:600; white-space:nowrap;
    color:var(--text);
  }
  .drift-item.logo{ display:block; }
  @keyframes driftDown{
    0%{ top:-15%; transform:translateX(0); opacity:0; }
    12%{ opacity:var(--op,.06); }
    88%{ opacity:var(--op,.06); }
    100%{ top:115%; transform:translateX(var(--dx,0px)); opacity:0; }
  }
  .hero > .wrap{ position:relative; z-index:1; }
  .hero-logo{ width:80px; height:80px; margin:0 auto 22px; }
  .hero h1{
    font-size:clamp(2.5rem, 5vw + 1rem, 4.4rem);
    font-weight:700; letter-spacing:-.02em; line-height:1.04;
  }
  .hero .lead{
    max-width:600px; margin:22px auto 0;
    font-size:clamp(1.02rem, .4vw + .95rem, 1.18rem);
    line-height:1.65; color:var(--text-soft);
  }
  .hero-cta{ margin-top:34px; display:flex; flex-direction:column; align-items:center; gap:12px; }
  .hero-cta small{ color:var(--text-soft); font-size:.85rem; }

  /* ---------- showcase / phone gallery ---------- */
  .showcase{ padding:20px 0 100px; }
  .showcase-head{ text-align:center; margin-bottom:44px; }
  .eyebrow{
    display:inline-flex; align-items:center; gap:10px;
    color:var(--accent); font-weight:600; font-size:.8rem;
    letter-spacing:.14em; text-transform:uppercase; margin-bottom:14px;
  }
  .eyebrow::before{ content:""; width:22px; height:1px; background:var(--accent); }
  .showcase-head h2{ font-size:clamp(1.5rem,2vw + 1rem,2.05rem); font-weight:600; }
  .showcase-head p{ margin-top:10px; color:var(--text-soft); font-size:1rem; }

  .gallery{
    display:grid; grid-template-columns:1fr;
    row-gap:50px; column-gap:32px;
    max-width:400px; margin:0 auto;
  }
  .gallery-item{ min-width:0; }

  .phone-mock{
    position:relative; z-index:1; width:100%; max-width:230px; margin:0 auto;
    aspect-ratio:9/20;
    padding:9px 8px 8px;
    border-radius:34px;
    background:linear-gradient(155deg,#54585f 0%,#1c1e22 30%,#101114 68%,#292c31 100%);
    box-shadow:
      0 28px 56px -22px rgba(15,23,42,.42),
      0 8px 18px -10px rgba(15,23,42,.28),
      inset 0 0 0 1px rgba(255,255,255,.07);
  }
  .phone-mock::before{
    content:""; position:absolute; inset:-9%; z-index:-1;
    background:radial-gradient(closest-side, var(--accent) 0%, transparent 72%);
    opacity:.15; filter:blur(20px);
  }
  .phone-mock .screen{
    position:relative; overflow:hidden; width:100%; height:100%;
    border-radius:25px; background:#000;
  }
  .phone-mock .screen img,
  .phone-mock .screen video{ width:100%; height:100%; object-fit:cover; display:block; }
  .phone-mock .cam{
    position:absolute; top:8px; left:50%; transform:translateX(-50%);
    width:9px; height:9px; border-radius:50%; background:#050506;
    box-shadow:0 0 0 2px rgba(255,255,255,.05), inset 0 0 2px rgba(255,255,255,.12);
    z-index:3;
  }
  .phone-mock .side-btn{
    position:absolute; right:-2.5px; width:2.5px; border-radius:2px;
    background:linear-gradient(90deg,#2b2d31,#484b51);
  }
  .phone-mock .side-btn.volume{ top:17%; height:8%; }
  .phone-mock .side-btn.power{ top:27%; height:5.5%; }

  .shot-caption{ max-width:230px; margin:18px auto 0; text-align:center; font-size:.95rem; line-height:1.55; color:var(--text-soft); }

  .plain-shot{
    width:100%; max-width:230px; margin:0 auto;
    border-radius:var(--radius-card);
    border:1px solid var(--border);
    box-shadow:var(--shadow-card);
    overflow:hidden; background:var(--surface);
  }
  .plain-shot img{ width:100%; height:auto; display:block; }
  .gallery-item.no-frame .shot-caption{ margin-top:16px; }

  @media (min-width:640px){
    .gallery{ grid-template-columns:repeat(2,1fr); max-width:none; }
  }
  @media (min-width:1000px){
    .gallery{ grid-template-columns:repeat(3,1fr); }
  }

  /* ---------- footer ---------- */
  .site-footer{ border-top:1px solid var(--border); padding:48px 0 40px; }
  .site-footer .wrap{ display:flex; flex-direction:column; align-items:center; gap:16px; text-align:center; }
  .site-footer .brand img{ width:24px; height:24px; }
  .site-footer .tag{ color:var(--text-soft); font-size:.98rem; }
  .site-footer .copyright{ color:var(--text-soft); font-size:.8rem; opacity:.75; margin-top:6px; }

  @media (prefers-reduced-motion: reduce){
    *{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
    .hero-drift{ display:none; }
  }

  /* ---------- refreshed landing page ---------- */
  .redesign{ color:var(--text); }
  .redesign .section{ padding:88px 0; }
  .redesign .section-tint{ background:var(--accent-soft); }
  .redesign .section-head{ max-width:560px; margin:0 0 44px; }
  .redesign .section-head h2{ font-size:clamp(1.9rem,2.6vw,2.5rem); letter-spacing:-.02em; }
  .redesign .section-head p{ margin-top:12px; color:var(--text-soft); line-height:1.65; }

  /* ---- hero: left-aligned copy, stacked phone pair on the right ---- */
  .redesign .hero-new{ padding:76px 0 84px; background:var(--hero-gradient); }
  .redesign .hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; align-items:center; gap:48px; }
  /* Hero logo mark: a floating glass badge instead of a flat square PNG.
     assets/logo-hero-mark.png has its white background removed (the
     source logo.png was a solid RGB square, which is why the icon used
     to render as a visible white card on the hero gradient) — see
     logo-mark.png/logo-hero-mark.png. The badge itself supplies the
     card, glass tint and depth cues (layered shadows, inner highlight,
     translateZ separation, mouse-follow tilt) so the mark reads as a
     genuine floating object rather than a pasted sticker. */
  .redesign .hero-logo-mark{ width:168px; height:168px; margin:0 auto 28px; perspective:900px; }
  .redesign .hero-logo-stage{
    position:relative; width:100%; height:100%;
    transform-style:preserve-3d;
    transform:rotateY(-8deg) rotateX(5deg);
    transition:transform .35s cubic-bezier(.2,.8,.3,1);
    animation:heroLogoFloat 5s ease-in-out infinite;
    will-change:transform;
  }
  .redesign .hero-logo-plate{
    position:absolute; inset:0; border-radius:38px;
    background:linear-gradient(155deg, rgba(255,255,255,.92), rgba(239,246,255,.6) 55%, rgba(191,219,254,.4));
    border:1px solid rgba(255,255,255,.65);
    box-shadow:
      0 30px 46px -20px rgba(37,99,235,.38),
      0 10px 18px -10px rgba(15,23,42,.16),
      inset 0 1px 0 rgba(255,255,255,.85),
      inset 0 -14px 22px -16px rgba(59,130,246,.3);
    backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
    transform:translateZ(-16px);
  }
  .redesign .hero-logo{
    position:absolute; left:50%; top:50%; z-index:1;
    width:64%; height:auto;
    transform:translate(-50%,-50%) translateZ(26px);
    filter:drop-shadow(0 12px 18px rgba(30,64,175,.32));
    pointer-events:none;
  }
  @keyframes heroLogoFloat{
    0%,100%{ transform:rotateY(-8deg) rotateX(5deg) translateY(0); }
    50%{ transform:rotateY(-4deg) rotateX(2deg) translateY(-8px); }
  }
  @media (hover:hover) and (pointer:fine){
    .redesign .hero-logo-stage{ animation:none; }
  }
  .redesign .kicker{ color:var(--accent-dark); font-weight:600; font-size:.95rem; }
  .redesign .hero-new h1{ margin-top:10px; font-size:clamp(2.4rem,4.4vw,3.6rem); line-height:1.05; letter-spacing:-.02em; }
  .redesign .hero-new .lead{ max-width:480px; margin:20px 0 0; color:var(--text-soft); font-size:1.08rem; line-height:1.7; }
  .redesign .hero-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
  .redesign .hero-note{ margin-top:16px; font-size:.85rem; color:var(--text-soft, #64748b); }
  .redesign .btn-secondary{ display:inline-flex; align-items:center; justify-content:center; padding:13px 24px; border:1px solid #93c5fd; border-radius:999px; color:var(--accent-dark); font-weight:700; text-decoration:none; background:var(--surface); }

  

  .redesign .feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
  .redesign .feature-card{
    padding:26px; border:1px solid var(--border); border-radius:16px; background:var(--surface);
    transform-style:preserve-3d; transition:transform .25s ease, box-shadow .25s ease;
  }
  .redesign .feature-card:hover{ box-shadow:0 24px 44px -20px rgba(15,23,42,.28); }
  .redesign .feature-card h3{ font-size:1.1rem; }
  .redesign .feature-card p{ margin-top:9px; color:var(--text-soft); line-height:1.6; font-size:.95rem; }

  /* ---- responsive grid for the screen gallery ---- */
  .redesign .media-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:44px 32px; }
  .redesign .media-card{ text-align:left; }
  .redesign .media-card h3{ margin-top:18px; font-size:1.1rem; }
  .redesign .media-card p{ margin-top:7px; color:var(--text-soft); line-height:1.55; font-size:.95rem; }
  .redesign .phone-frame{ position:relative; width:min(100%,280px); aspect-ratio:9/20; margin:0 auto; padding:9px 8px 8px; border:2px solid #68707b; border-radius:36px; background:linear-gradient(145deg,#454b55,#12151a 48%,#3b414a); box-shadow:0 24px 42px -20px rgba(15,23,42,.55),inset 0 0 0 2px #8c939d; }
  .redesign .phone-frame::before{ content:""; position:absolute; top:14px; left:50%; z-index:2; width:10px; height:10px; transform:translateX(-50%); border-radius:50%; background:#08090b; box-shadow:inset 0 0 0 2px #2a2e35; }
  .redesign .phone-frame img,.redesign .phone-frame video{ display:block; width:100%; height:100%; object-fit:cover; border-radius:28px; background:#0f172a; }

  /* The six "Screens" grid screenshots aren't all the same shape as the
     9:20 frame the demo video was shot at (planner.jpg in particular is
     768x1231, a much squarer crop than the other five 768x1592 shots).
     object-fit:cover on a mismatched frame scales to fill the frame's
     height and crops the overflow off the *sides* — for planner.jpg
     that meant roughly 14% sliced off both left and right, cutting
     straight through on-screen text and buttons near the edges (hour
     labels, the "Jump to now" pill). Scoped to just this grid (the
     demo video keeps object-fit:cover at its own matching 9:20 frame)
     because a phone screenshot is UI a person needs to read in full —
     unlike a decorative photo, cropping it can hide real information,
     so object-fit:contain is a better fit than cover here even though
     it means a plain letterboxed strip on the one image that doesn't
     match, rather than uniform cropping on every image. */
  /* assets/planner-full.jpg (768x1428) is shorter than its five
     768x1592 siblings. Forcing it into the same frame ratio as the
     rest (previously via a shared aspect-ratio + object-fit:contain)
     filled the gap with visible letterbox bars top and bottom, which
     read as a rendering bug rather than a phone screenshot. Giving
     this one card its own matching aspect-ratio removes the bars
     completely — its phone is a little shorter than its five
     neighbors in the row, which is a smaller visual inconsistency
     than a black gap inside every "Planner" screenshot. */
  .redesign .media-grid .phone-frame{ aspect-ratio:768/1592; }
  .redesign .media-grid .phone-frame img{ object-fit:contain; }
  .redesign .media-grid .media-card:nth-child(2) .phone-frame{ aspect-ratio:768/1428; }
  .redesign .video-block{ display:grid; grid-template-columns:200px 1fr; gap:32px; align-items:center; margin-top:64px; padding-top:56px; border-top:1px solid var(--border); }
  .redesign .video-block h3{ font-size:1.3rem; }
  .redesign .video-block p{ margin-top:10px; color:var(--text-soft); line-height:1.65; max-width:420px; }
  /* Real Samsung-frame screenshots: the phone chrome (bezel, camera
     punch-hole, rounded corners) is already baked into the WebP image
     itself, composited from the actual device photo — so this wrapper
     only sizes/centers the image and adds a soft ambient shadow, unlike
     .phone-frame above which draws a phone body from scratch in CSS. */
  .redesign .phone-mock{
    position:relative; z-index:1; width:min(100%,280px); margin:0 auto;
    filter:drop-shadow(0 22px 34px rgba(15,23,42,.28));
    /* Override every box-model property the legacy CSS-drawn .phone-mock
       (defined above, kept for this file's own static fallback
       markup) sets on the same class name — aspect-ratio, padding,
       border-radius and the metallic gradient background all assumed an
       empty shell with a raw screenshot inside it. These composited
       WebP images already have the full Samsung frame (bezel, camera,
       rounded corners) baked in from the real device photo, so the
       wrapper here must be a plain, unstyled box that just sizes and
       centers the image — any of those inherited properties clips or
       double-frames the image, which is what produced the plain dark
       rectangle instead of a phone shape.
  */
    aspect-ratio:auto; padding:0; border-radius:0; background:none; box-shadow:none;
  }
  .redesign .phone-mock::before{ content:none; }
  .redesign .phone-mock img{ display:block; width:100%; height:auto; border-radius:0; }
  .redesign .video-frame{ overflow:hidden; flex:none; }
  .redesign .contact-grid{ display:flex; flex-wrap:wrap; gap:16px; }
  .redesign .contact-card{ display:flex; align-items:center; gap:18px; padding:20px 24px; border:1px solid var(--border); border-radius:14px; background:var(--surface); flex:1 1 260px; }
  .redesign .contact-card h3{ font-size:1.1rem; }
  .redesign .contact-links{ display:flex; gap:10px; margin-left:auto; }
  .redesign .icon-link{ display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%; background:var(--accent-soft); color:var(--accent-dark); transition:background .18s ease, transform .18s ease, color .18s ease; }
  .redesign .icon-link svg{ width:15px; height:15px; }
  .redesign .icon-link:hover{ background:var(--accent); color:#fff; transform:translateY(-2px); }
  .redesign .download-panel{ padding:42px; border-radius:28px; color:#fff; background:linear-gradient(135deg,#1e3a8a,#3b82f6); text-align:center; }
  .redesign .download-panel h2{ font-size:clamp(1.8rem,3vw,2.7rem); }
  .redesign .download-panel p{ margin:12px auto 24px; max-width:560px; color:#e0e7ff; line-height:1.6; }
  .redesign .download-panel .btn{ background:#fff; color:var(--accent-dark); }
  /* Frosted-glass footer, matching the header/corner-toggle treatment
     (translucent + blur + a hairline seam) instead of a flat solid
     block. It previously stayed a fixed dark navy in both themes —
     in light mode that read fine as a deliberate dark band, but in
     dark mode it was nearly the same tone as the section above it and
     the seam disappeared. The border/shadow here gives it a visible
     edge in both cases, and the two rgba tints keep it dark-glass in
     light mode (intentional contrast band) while sitting correctly on
     the dark page in dark mode. */
  .redesign .site-footer-new{
    padding:38px 0; color:#cbd5e1;
    background:rgba(15,23,42,.82);
    backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
    border-top:1px solid rgba(255,255,255,.08);
    box-shadow:0 -24px 40px -32px rgba(15,23,42,.5), inset 0 1px 0 rgba(255,255,255,.05);
  }
  :root[data-theme="dark"] .redesign .site-footer-new{
    background:rgba(30,41,59,.72);
    border-top:1px solid rgba(148,163,184,.16);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  }
  .redesign .footer-row{ display:flex; justify-content:space-between; align-items:center; gap:20px; }
  .redesign .footer-brand{ gap:10px; }
  .redesign .footer-brand img{ width:26px; height:26px; }
  .redesign .footer-brand strong{ font-family:'Space Grotesk',sans-serif; font-size:1.05rem; color:#fff; }
  .redesign .footer-row a{ color:#c7d2fe; text-decoration:none; }
  .redesign .footer-meta{ margin-top:22px; color:#94a3b8; font-size:.85rem; }
  .redesign .footer-meta + .footer-meta{ margin-top:8px; }
  .redesign .feature-card,.redesign .media-card,.redesign .contact-card,.redesign .download-panel{ opacity:0; transform:translateY(28px) scale(.97); transition:opacity .6s cubic-bezier(.2,.7,.3,1),transform .6s cubic-bezier(.2,.7,.3,1); }
  .redesign .is-visible{ opacity:1; transform:translateY(0) scale(1); }
  @media (max-width:900px){
    .redesign .hero-grid{ grid-template-columns:1fr; }
    .redesign .video-block{ grid-template-columns:1fr; }
    .redesign .video-block .phone-frame{ margin:0 auto; }
  }
  @media (max-width:800px){
    .redesign .feature-grid{ grid-template-columns:1fr 1fr; }
  }
  @media (max-width:560px){
    .redesign .section{ padding:64px 0; }
    .redesign .feature-grid{ grid-template-columns:1fr; }
    .redesign .contact-card{ flex-direction:column; align-items:flex-start; gap:10px; }
    .redesign .contact-links{ margin-left:0; }
    .redesign .footer-row{ flex-direction:column; text-align:center; }
  }
  @media (prefers-reduced-motion: reduce){
    .redesign .feature-card,.redesign .media-card,.redesign .contact-card,.redesign .download-panel{ opacity:1; transform:none; transition:none; }
    .redesign .hero-logo-stage{ animation:none; transform:none; }
    .redesign .feature-card{ transition:none; }
  }

  /* ---------- download count chip ---------- */
  /* A small, quiet pill: the count in the heading face, the label in
     soft text, a tinted circle for the icon. Colors come from the theme
     tokens so it follows light/dark automatically. No motion. */
  .redesign .dl-badge{ display:inline-flex; align-items:center; gap:10px; margin-top:22px; padding:6px 16px 6px 6px; border-radius:999px; background:var(--surface); border:1px solid var(--border); color:var(--text); }
  .redesign .dl-icon{ display:grid; place-items:center; flex:none; width:32px; height:32px; border-radius:50%; background:var(--accent-soft); color:var(--accent-dark); }
  .redesign .dl-icon svg{ width:16px; height:16px; }
  .redesign .dl-text{ display:flex; align-items:baseline; gap:6px; line-height:1; }
  .redesign .dl-text strong{ font-family:'Space Grotesk',sans-serif; font-size:1.05rem; font-weight:700; letter-spacing:-.01em; font-variant-numeric:tabular-nums; }
  .redesign .dl-text small{ font-size:.9rem; color:var(--text-soft); }
  .redesign .download-panel .dl-badge-panel{ display:flex; width:fit-content; margin:20px auto 0; background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.28); color:#fff; }
  .redesign .download-panel .dl-badge-panel .dl-icon{ background:rgba(255,255,255,.18); color:#fff; }
  .redesign .download-panel .dl-badge-panel .dl-text small{ margin:0; max-width:none; color:#dbeafe; }

  /* ---------- 3D upgrade ---------- */
  .redesign .btn{ box-shadow:0 1px 2px rgba(37,99,235,.30), 0 10px 20px -10px rgba(37,99,235,.50); }
  .redesign .btn:hover{ transform:translateY(-1px); box-shadow:0 1px 2px rgba(37,99,235,.30), 0 14px 24px -10px rgba(37,99,235,.55); }
  .redesign .btn:active{ transform:translateY(0); box-shadow:0 1px 2px rgba(37,99,235,.30), 0 4px 10px -6px rgba(37,99,235,.45); }
  .redesign .download-panel .btn{ box-shadow:0 1px 2px rgba(15,23,42,.18), 0 12px 24px -12px rgba(0,0,0,.40); }
  .redesign .feature-card,.redesign .media-card{ transform-style:preserve-3d; }
  .redesign .feature-card > *{ transform:translateZ(28px); }
  .redesign .feature-card{ background:linear-gradient(160deg,var(--surface) 0%,var(--accent-soft) 130%); border:1px solid var(--border); box-shadow:var(--shadow-card), 0 1px 0 rgba(255,255,255,.7) inset; }
  .redesign .download-panel{ box-shadow:0 40px 60px -30px rgba(30,58,138,.7), 0 1px 0 rgba(255,255,255,.3) inset; }

  /* ---------- screens gallery: equal phones, slim bezel ---------- */
  .redesign .media-grid .phone-frame,
  .redesign .media-grid .media-card:nth-child(2) .phone-frame{ aspect-ratio:768/1592; width:min(100%,280px); padding:6px; border:1px solid #334155; border-radius:34px; background:#1e293b; box-shadow:0 30px 50px -24px rgba(15,23,42,.55); }
  .redesign .media-grid .phone-frame::before{ display:none; }
  .redesign .media-grid .phone-frame img{ object-fit:contain; object-position:top; border-radius:28px; background:#fff; }

  /* ---------- footer v2 ---------- */
  .redesign .site-footer-new{ margin-top:0; padding:64px 0 28px; border:0; border-top:1px solid rgba(148,163,184,.18); border-radius:0; backdrop-filter:none; -webkit-backdrop-filter:none; background:radial-gradient(60% 120% at 20% 0%,rgba(59,130,246,.22),transparent 60%),linear-gradient(180deg,#0f1a36,#0a1024); box-shadow:none; }
  :root[data-theme="dark"] .redesign .site-footer-new{ background:radial-gradient(60% 120% at 20% 0%,rgba(59,130,246,.18),transparent 60%),linear-gradient(180deg,#0b1225,#060a18); }
  .redesign .footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1.2fr; gap:48px; align-items:start; }
  .redesign .footer-col{ display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
  .redesign .footer-col h4{ margin:0 0 4px; font-size:.95rem; font-weight:600; color:#e2e8f0; }
  .redesign .footer-col a:not(.btn){ color:#cbd5e1; text-decoration:none; transition:color .2s,transform .2s; }
  .redesign .footer-col a:not(.btn):hover{ color:#fff; transform:translateX(3px); }
  .redesign .footer-about .footer-meta{ margin:6px 0 0; max-width:340px; line-height:1.6; }
  .redesign .footer-btn{ padding:11px 22px; font-size:.95rem; }
  .redesign .footer-note{ font-size:.85rem; color:#4ade80; }
  .redesign .footer-bottom{ display:flex; justify-content:space-between; gap:16px; margin-top:48px; padding-top:22px; border-top:1px solid rgba(148,163,184,.15); font-size:.85rem; color:#64748b; }
  .redesign .footer-bottom a{ color:#94a3b8; text-decoration:none; }
  .redesign .footer-bottom a:hover{ color:#fff; }
  @media (max-width:760px){ .redesign .footer-grid{ grid-template-columns:1fr; gap:32px; } .redesign .footer-bottom{ flex-direction:column; align-items:flex-start; } }

  /* footer logo: light tile so the dark mark stays visible */
  .redesign .site-footer-new .footer-brand img{ width:44px; height:44px; padding:7px; border-radius:14px; background:linear-gradient(145deg,#ffffff,#e0e7ff); box-shadow:0 8px 20px -8px rgba(59,130,246,.6), inset 0 1px 0 #fff; }
  .redesign .site-footer-new .footer-brand strong{ font-size:1.2rem; }

  /* ---------- UX pass ---------- */
  /* content no longer shows through beside the floating header */
  body::before{ content:""; position:fixed; inset:0 0 auto 0; height:96px; z-index:39; pointer-events:none; background:linear-gradient(180deg,var(--bg) 35%,transparent); }
  h1,h2,h3{ text-wrap:balance; }
  p{ text-wrap:pretty; }
  /* hero: logo becomes a small brand mark, not a competing block */
  .redesign .hero-logo-mark{ width:92px; height:92px; margin:0 0 22px; }
  .redesign .hero-logo-plate{ border-radius:24px; }
  .redesign .hero-note{ max-width:none; text-wrap:balance; }
  /* feature cards get an icon anchor */
  .redesign .fc-icon{ display:grid; place-items:center; width:46px; height:46px; margin-bottom:18px; border-radius:13px; color:var(--accent-dark); background:var(--accent-soft); border:1px solid rgba(59,130,246,.22); }
  .redesign .fc-icon svg{ width:24px; height:24px; }
  /* "See it move": centred, balanced two-column block */
  @media (min-width:901px){ .redesign .video-block{ grid-template-columns:auto minmax(0,420px); justify-content:center; gap:72px; } }
  .redesign .video-block .phone-frame{ width:240px; }
  .redesign .video-block h3{ font-size:1.6rem; }
  /* contact: labelled, easy-to-tap buttons */
  .redesign .contact-links{ gap:10px; }
  .redesign .icon-link{ width:auto; height:42px; padding:0 16px; gap:8px; border-radius:999px; font-size:.9rem; font-weight:600; text-decoration:none; }
  .redesign .icon-link svg{ width:17px; height:17px; }
  .redesign .contact-card h3{ font-size:1.25rem; }
  /* footer contrast */
  .redesign .footer-bottom{ color:#94a3b8; }
  .redesign .footer-meta{ color:#a7b4c8; }
  @media (max-width:760px){ .redesign .video-block{ gap:28px; } .redesign .contact-links{ flex-wrap:wrap; } }

  /* Google Play icon inside the store buttons */
  /* Google Play mark: a vector (assets/google-play.svg) in a white disc, so it
     stays sharp on any screen. Header button keeps the compact one-line form;
     the large buttons use the two-line "store" form below. */
  .redesign .gp-icon{ flex:none; box-sizing:border-box; width:24px; height:24px; padding:4px; border-radius:50%; background:#fff; }
  .redesign .btn.small .gp-icon{ width:22px; height:22px; padding:3.5px; }
  .redesign .btn-store{ gap:12px; padding:9px 26px 9px 12px; text-align:left; }
  .redesign .btn-store .gp-icon{ width:38px; height:38px; padding:7px; box-shadow:0 1px 2px rgba(15,23,42,.18); }
  .redesign .btn-store .btn-label{ display:flex; flex-direction:column; gap:3px; line-height:1.1; }
  .redesign .btn-store small{ font-size:.7rem; font-weight:500; letter-spacing:.01em; opacity:.85; }
  .redesign .btn-store strong{ font-size:1.02rem; font-weight:700; }
  .redesign .download-panel .btn-store .gp-icon{ width:32px; height:32px; padding:0; border-radius:0; background:none; box-shadow:none; }
  .redesign .download-panel .btn-store small{ opacity:.7; }
  /* the panel button is white in both themes, so its text must not follow the (light) dark-mode accent */
  .redesign .download-panel .btn{ color:#1d4ed8; }
  .redesign .footer-btn.btn-store{ padding:9px 24px 9px 12px; font-size:1rem; }
  /* Instagram link in the footer */
  .redesign .footer-social{ display:inline-flex; align-items:center; gap:8px; margin-top:4px; font-size:.9rem; }
  .redesign .footer-social svg{ width:18px; height:18px; flex:none; }

  /* ---------- hero mascot ---------- */
  .redesign .hero-visual{ position:relative; display:flex; justify-content:center; align-items:flex-end; }
  .redesign .hero-mascot{ position:relative; isolation:isolate; display:flex; justify-content:center; align-items:flex-end; width:100%; max-width:460px; min-height:480px; padding-bottom:22px; }
  .redesign .mascot-glow{ position:absolute; z-index:-1; left:50%; bottom:3%; width:min(100%,430px); aspect-ratio:1; transform:translateX(-50%); border-radius:50%; background:radial-gradient(closest-side, rgba(59,130,246,.26), rgba(59,130,246,.10) 62%, transparent); }
  :root[data-theme="dark"] .redesign .mascot-glow{ background:radial-gradient(closest-side, rgba(96,165,250,.26), rgba(59,130,246,.10) 62%, transparent); }
  .redesign .mascot-shadow{ position:absolute; z-index:0; left:50%; bottom:14px; width:58%; height:26px; transform:translateX(-50%); border-radius:50%; background:radial-gradient(closest-side, var(--ground-shadow), transparent); }
  .redesign .mascot-img{ position:relative; z-index:1; width:auto; max-width:none; height:clamp(440px,64vh,580px); }
  @media (prefers-reduced-motion:no-preference){
    .redesign .mascot-img{ animation:mascotIn .8s cubic-bezier(.2,.7,.3,1) both; }
  }
  @keyframes mascotIn{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }

  /* The padded frame had a fixed 768:1592 box, so its inner area was a few
     pixels taller than the screenshot and left a white strip under it.
     Letting the frame wrap the image at its own ratio removes the strip. */
  .redesign .media-grid .phone-frame,
  .redesign .media-grid .media-card:nth-child(2) .phone-frame{ aspect-ratio:auto; }
  .redesign .media-grid .phone-frame img{ height:auto; }

  /* ---------- screens carousel dots (shown only on small screens) ---------- */
  .redesign .media-dots{ display:none; }

  /* ---------- mobile layer ---------- */
  @media (max-width:900px){
    .redesign .hero-new{ padding:32px 0 20px; }
    .redesign .hero-grid{ gap:6px; }
    .redesign .hero-logo-mark{ width:64px; height:64px; margin-bottom:16px; }
    .redesign .hero-logo-plate{ border-radius:18px; }
    .redesign .hero-mascot{ max-width:360px; min-height:0; margin:8px auto 0; padding-bottom:16px; }
    .redesign .mascot-img{ height:min(400px,104vw); }
    .redesign .mascot-glow{ width:min(100%,340px); }
    .redesign .video-block{ grid-template-columns:1fr; justify-items:center; text-align:center; gap:24px; margin-top:48px; padding-top:40px; }
    .redesign .video-block p{ margin-inline:auto; }
  }
  @media (max-width:800px){
    /* six phones in one column was ~3,700px of scrolling: swipe instead */
    .redesign .media-grid{ display:flex; gap:16px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scroll-padding-inline:24px; margin-inline:-24px; padding:4px 24px 12px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
    .redesign .media-grid::-webkit-scrollbar{ display:none; }
    .redesign .media-card{ flex:0 0 min(66vw,260px); scroll-snap-align:start; opacity:1; transform:none; }
    .redesign .media-card .phone-frame{ width:100%; }
    .redesign .media-dots{ display:flex; justify-content:center; gap:7px; margin-top:14px; }
    .redesign .media-dots span{ width:7px; height:7px; border-radius:99px; background:var(--border); transition:width .25s ease, background .25s ease; }
    .redesign .media-dots span.on{ width:22px; background:var(--accent); }
  }
  @media (max-width:560px){
    .redesign .section-head{ margin-bottom:28px; }
    .redesign .hero-actions{ display:grid; grid-template-columns:1fr; gap:10px; }
    .redesign .hero-actions .btn,.redesign .hero-actions .btn-secondary{ width:100%; min-height:50px; }
    .redesign .hero-badge{ margin-top:18px; }
    .redesign .feature-grid{ gap:12px; }
    .redesign .feature-card{ display:grid; grid-template-columns:46px 1fr; column-gap:16px; align-items:center; padding:18px; }
    .redesign .fc-icon{ grid-row:1 / span 2; margin:0; }
    .redesign .feature-card p{ grid-column:2; margin-top:4px; }
    .redesign .download-panel{ padding:34px 22px; border-radius:24px; }
    .redesign .icon-link{ height:44px; }
  }
  @media (max-width:380px){ .site-header .btn.small{ padding:9px 14px; } }
  @media (max-width:340px){ .site-header .btn.small .gp-icon{ display:none; } }
  @media (prefers-reduced-motion:reduce){ .redesign .mascot-img{ animation:none; } .redesign .media-dots span{ transition:none; } }
