/* Go Around · sign-up mock · iPad layer (11 Nov 2026, MT t2694 "reorganise sign in / sign up for iPad").
   Rules: phone (<744px) untouched; every layout rule below sits inside min-width:744px.
   Pearl + Midnight only. Pills (.pb, Sign in | Sign up pair, Google) keep their design: only wrappers move.
   No new position:fixed. No sticky. Motion = transform + opacity. dvh units.
   iPad Safari performance: no new backdrop-filter; the header blur and body fixed-attachment are switched OFF on iPad,
   so the only blur left on screen is the existing glass pill. */

.ipad-brand,.tindex{display:none}

@media (min-width:744px){
  body{background-attachment:scroll}
  /* Header: same content, no blur layer (Safari perf), solid-ish tint instead */
  .top{
    -webkit-backdrop-filter:none;backdrop-filter:none;
    background:color-mix(in srgb,var(--bg) 94%,transparent);
    padding:14px 28px;min-height:70px;
  }
  body.nohead .top{background:transparent;min-height:28px;padding:0}

  /* ── Normal screens: the page becomes one calm card ── */
  .stage.v2{max-width:none;width:100%;padding:0 32px;min-height:0;display:flex;flex-direction:column}
  .stage.v2 > .pg{
    width:100%;max-width:560px;margin:auto;box-sizing:border-box;flex:none;
    padding:44px 48px calc(40px + env(safe-area-inset-bottom));
    border-radius:36px;
    background:var(--card);
    box-shadow:inset 0 1px 0 var(--hl),inset 0 0 0 .5px var(--ln),var(--sh);
  }
  html[data-theme=night] .stage.v2 > .pg{
    background:linear-gradient(170deg,rgba(255,255,255,.06),rgba(255,255,255,.025));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.10),inset 0 0 0 .5px rgba(255,255,255,.10),0 30px 80px rgba(0,0,0,.55);
  }
  /* Bigger, calmer type */
  .stage.v2 h1.t{font-size:42px;line-height:1.04}
  .stage.v2 p.lede{font-size:17px;max-width:34ch;margin-bottom:28px}
  .stage.v2 .kick{font-size:12px;margin-bottom:12px}
  .stage.v2 .prog{margin-bottom:26px}
  .stage.v2 .f{margin-bottom:18px}
  .stage.v2 .f label{font-size:13px;margin-bottom:9px}
  .stage.v2 .inp{height:56px;font-size:16px}
  .stage.v2 .acts{padding-top:30px}
  .hero3{padding:4px 0 8px}
  .hero3 .logo-reserve{height:64px;margin:0 0 22px}
  .hero3 .logo-big{height:64px;margin:0}
  .hero3 h1.t{font-size:46px}
  .tickstage{min-height:calc(100dvh - 28px)}
}

/* ── Portrait iPad: centred card, generous breathing room ── */
@media (min-width:744px) and (orientation:portrait){
  body:not(.terms-ours){display:flex;flex-direction:column;min-height:100dvh}
  body:not(.terms-ours) .stage.v2{flex:1;padding:36px 32px 56px}
}

/* ── Landscape iPad: two-pane split. Left brand panel, right the card. ── */
@media (min-width:744px) and (orientation:landscape){
  body:not(.page-terms){
    display:grid;grid-template-columns:minmax(360px,42%) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);
    height:100dvh;max-height:100dvh;overflow:hidden;
  }
  html:has(body:not(.page-terms)){height:100dvh;overflow:hidden}
  body:not(.page-terms) .ipad-brand{display:flex}
  body:not(.page-terms) .top{grid-column:2;grid-row:1;position:relative;background:transparent;padding:16px 32px}
  body:not(.page-terms) .top .logo-slot{visibility:hidden} /* the brand panel carries the logo */
  body:not(.page-terms) .stage.v2{
    grid-column:2;grid-row:2;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;
    padding:12px 40px 32px;
  }
  body.nohead:not(.page-terms) .stage.v2{grid-row:1 / 3;padding-top:32px}
  body.nohead .top{display:none}
  .stage.v2 > .pg{max-width:520px;padding:40px 44px 36px}
  .hero3 .logo-reserve,.hero3 .logo-big{display:none} /* logo lives in the brand panel */
  .hero3{padding-top:0}

  /* Brand panel: one solid gradient, no blur, one static SVG. */
  .ipad-brand{
    grid-column:1;grid-row:1 / 3;position:relative;overflow:hidden;
    margin:16px 0 16px 16px;border-radius:32px;
    background:
      radial-gradient(120% 70% at 20% 0%,rgba(120,150,255,.35),transparent 60%),
      linear-gradient(165deg,#0A22D8 0%,#0019C9 38%,#000F7A 100%);
    color:#fff;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 20px 50px -20px rgba(0,25,201,.45);
  }
  html[data-theme=night] .ipad-brand{
    background:
      radial-gradient(90% 60% at 15% 0%,rgba(70,90,200,.28),transparent 65%),
      linear-gradient(170deg,#0C0D14 0%,#07080C 100%);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 0 0 .5px rgba(255,255,255,.10);
  }
  .ib-in{position:relative;z-index:1;display:flex;flex-direction:column;padding:44px 44px 40px;width:100%;box-sizing:border-box}
  .ib-logo{height:56px;width:auto;align-self:flex-start;filter:brightness(0) invert(1)}
  html[data-theme=night] .ib-logo{filter:brightness(1.6) saturate(1.1)}
  /* Headline in the vertical middle; kick sits on the horizon at the runway's vanishing point. */
  .ib-title{
    position:absolute;left:40px;right:40px;top:50%;transform:translateY(-50%);
    margin:0 auto;max-width:13ch;text-align:center;
    font:600 40px/1.06 'Clash Display',Satoshi,sans-serif;letter-spacing:-.02em;color:#fff;
  }
  .ib-kick{
    position:absolute;left:0;right:0;top:calc(50% + 92px);transform:translateY(-50%);margin:0;
    display:flex;align-items:center;gap:14px;
    font:600 11px/1 'General Sans',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.66);white-space:nowrap;
  }
  .ib-kick::before,.ib-kick::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.22))}
  .ib-kick::after{background:linear-gradient(90deg,rgba(255,255,255,.22),rgba(255,255,255,0))}
  .ib-note{
    margin-top:auto;
    display:flex;flex-direction:column;gap:6px;padding:16px 18px;border-radius:20px;
    background:rgba(255,255,255,.10);box-shadow:inset 0 0 0 .5px rgba(255,255,255,.18);
    font:500 13.5px/1.45 Satoshi,sans-serif;color:rgba(255,255,255,.78);
  }
  html[data-theme=night] .ib-note{background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 .5px rgba(255,255,255,.12)}
  .ib-note b{font:600 15px/1.3 Satoshi,sans-serif;color:#fff}

  /* Illustration: static line art, one SVG for the ground (runway, lights, PAPI, tower), one for the airliner.
     No blur, no filters. Motion = opacity (lights) + transform (airliner drift) only. */
  .ib-plane,.ib-tower{position:absolute;pointer-events:none;overflow:visible}
  .ib-plane path,.ib-plane .pl circle,.ib-tower path{fill:none;stroke:#fff;stroke-linejoin:round}
  /* OLD runway (first iPad version), same drawing; top now starts just under the Part 91 line so it never sits behind text */
  .ib-runway{position:absolute;left:0;right:0;bottom:0;width:100%;height:calc(50% - 100px);opacity:.16;pointer-events:none}
  html[data-theme=night] .ib-runway{opacity:.13}
  .ib-runway .edge{fill:none;stroke:#fff;stroke-width:1.2}
  .ib-runway .cl path{stroke:#fff;stroke-width:3;stroke-linecap:butt}
  .ib-runway .pk path{stroke:#fff;stroke-width:8}
  /* BIG tower on the left, centred on the panel edge so half of it bleeds out of the frame */
  .ib-tower{left:0;width:230px;margin-left:-89px;top:calc(50% - 262px);bottom:0;height:auto}
  .ib-tower path{stroke-width:1.3;opacity:.42}
  html[data-theme=night] .ib-tower path{opacity:.32}
  .ib-tower .beacon{fill:#FF3B3B;opacity:.9}
  .ib-plane{left:50%;top:calc(50% - 210px);width:min(62%,300px);margin-left:calc(min(62%,300px) / -2)}
  .ib-plane .pl{opacity:.34}
  .ib-plane path,.ib-plane .pl circle{stroke-width:1.5}
  .ib-plane .pl .hub{fill:#fff;stroke:none}
  .ib-plane .nav.r{fill:#FF6B6B;opacity:.85}
  .ib-plane .nav.g{fill:#5BE3A0;opacity:.85}
  .ib-plane .ll{fill:#fff;opacity:.9}
  html[data-theme=night] .ib-plane .pl{opacity:.26}
  @media (prefers-reduced-motion:no-preference){
    .ib-tower .beacon{animation:ibTwinkle 2.4s ease-in-out infinite}
    .ib-plane{animation:ibDrift 9s ease-in-out infinite alternate}
    .ib-plane .ll{animation:ibTwinkle 1.8s ease-in-out infinite}
  }
  @keyframes ibTwinkle{0%,100%{opacity:.25}50%{opacity:.85}}
  @keyframes ibDrift{from{transform:translate3d(0,-4px,0)}to{transform:translate3d(0,6px,0)}}
  html.capture .ib-tower .beacon,html.capture .ib-plane,html.capture .ib-plane .ll{animation:none}

  /* consent in the split: the right pane keeps its own scroller + dock */
  body.page-consent .stage.v2{overflow:hidden;padding:0 40px}
}

/* ── Terms + consent on iPad (portrait and landscape) ── */
@media (min-width:744px){
  body.terms-ours .stage.v2{max-width:680px;padding:0 32px}
  body.terms-ours h1.t{font-size:40px}
  body.terms-ours .hero .lede{font-size:16.5px;max-width:44ch}
  body.terms-ours .wrap{gap:18px;padding-bottom:32px}
  body.terms-ours .gcard{padding:22px 24px;border-radius:26px}
  body.terms-ours .gcard.tick-list,body.terms-ours .gcard.optional-card{padding:6px 24px}
  body.terms-ours .tick{padding:16px 0;gap:14px}
  body.terms-ours .tick .txt,body.terms-ours .plain span{font-size:15.5px}
  body.terms-ours .notice{font-size:15px}
  body.terms-ours .acc-h{padding:18px 24px}
  body.terms-ours .acc-titles .t{font-size:16.5px}
  body.terms-ours .acc-pad{padding:0 24px 20px;font-size:15px}
  body.terms-ours .safety p{font-size:15px}
  body.terms-ours .safety .lead{font-size:16px}
  body.terms-ours .dock{display:flex;flex-direction:column;align-items:center;background:transparent;border-top-color:transparent;padding-top:16px}
  body.terms-ours .dock .pb{max-width:440px}
}
@media (min-width:744px) and (orientation:landscape){
  body.page-consent .stage.v2{max-width:none}
  body.page-consent .consent-col{width:100%;max-width:620px;margin:0 auto}
  body.page-consent .dock{background:transparent}
  /* Short two-tick consent: keep the footer clear of the dock on the short landscape frame */
  body.page-consent .wrap{gap:8px;padding-bottom:12px}
}

/* ── Terms on wide screens (landscape iPad, 12.9" portrait): index left, content right ── */
@media (min-width:1000px){
  body.page-terms .stage.v2{max-width:1120px;padding:0 40px}
  body.page-terms .terms-col{display:grid;grid-template-columns:260px minmax(0,1fr);column-gap:48px;min-height:0}
  body.page-terms .tindex{
    display:flex;flex-direction:column;min-height:0;overflow-y:auto;overflow-x:hidden;
    padding:18px 4px 24px 0;
  }
  body.page-terms .wrap{max-width:720px}
  .ti-h{margin:0 0 12px 12px;font:600 11px/1 'General Sans',sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--tx3)}
  .tindex ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
  .tindex a{
    display:flex;align-items:baseline;gap:10px;padding:8px 12px;border-radius:12px;
    text-decoration:none;color:var(--tx2);font:500 14px/1.3 Satoshi,sans-serif;
    transition:opacity .2s;
  }
  .tindex a .k{flex:none;width:20px;font:600 11px/1 "JetBrains Mono",ui-monospace,monospace;color:var(--tx3)}
  .tindex a:hover{color:var(--tx)}
  .tindex a.on{color:var(--tx);background:var(--gl2);box-shadow:inset 0 0 0 .5px var(--ln)}
  html[data-theme=day] .tindex a.on{background:rgba(255,255,255,.75)}
}

/* Landscape is short (820px): tighter rhythm so sign in / sign up fit without scrolling */
@media (min-width:744px) and (orientation:landscape){
  body.nohead:not(.page-terms) .stage.v2{padding-top:20px;padding-bottom:20px}
  .stage.v2 > .pg{padding:32px 40px 28px}
  .stage.v2 h1.t,.hero3 h1.t{font-size:38px}
  .stage.v2 p.lede{font-size:16px;margin-bottom:20px}
  .stage.v2 .f{margin-bottom:12px}
  .stage.v2 .inp{height:52px}
  .stage.v2 .acts{padding-top:20px}
  html[data-theme=night] .ib-logo{filter:brightness(0) invert(1)}
  /* the trial note would repeat the page on the plan / trial screens */
  body.scr-trial .ib-note,body.scr-plan .ib-note,body.scr-ato-plan .ib-note,body.scr-done .ib-note{display:none}
}
