/* Sway This Way shared design system CSS — sibling to the AmoryLife brand
 * system (see AmoryLife/DesignSystem.md): same base (near-black surfaces,
 * Fraunces + Inter type, glassmorphic cards, pill buttons, scroll-reveal
 * motion), but its own accent — teal-to-violet instead of AmoryLife's
 * gold-to-rose — so Sway reads as a sibling/cousin product, not a reskin.
 * Link this from any new page:
 * <link rel="stylesheet" href="/swaythiswayweb/css/site.css"> */

  :root{
    --bg-0:#0a070d;
    --bg-1:#130c17;
    --bg-2:#1c1220;
    --card:rgba(255,255,255,0.045);
    --card-border:rgba(255,255,255,0.09);
    --ink-0:#f5f0ee;
    --ink-1:#cbc0c6;
    --ink-2:#8d7f8a;

    /* Sway brand accent — teal to violet. Teal (--accent-1) echoes the
     * "Sway" swatch already used for this product in the AmoryLife
     * roadmap visuals; violet (--accent-2) echoes the "SwayAI" swatch,
     * since AI-assisted matching is a core, launch-defining feature. */
    --accent-1:#5ec8d8;
    --accent-2:#a48af0;
    --grad: linear-gradient(120deg, var(--accent-1), var(--accent-2));
    --grad-soft: linear-gradient(120deg, rgba(94,200,216,0.16), rgba(164,138,240,0.16));

    /* Dedicated semantic danger/error color — deliberately kept separate
     * from the brand accent (unlike the amorylife skeleton this was
     * adapted from, which reused its rose accent for both branding and
     * error states). Reuses that same rose hue here, but only for actual
     * errors/destructive states — never for branding. */
    --danger:#e0517a;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--bg-0);
    color:var(--ink-0);
    font-family:'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height:1.6;
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,h4{
    font-family:'Fraunces', Georgia, serif;
    font-weight:500;
    line-height:1.1;
    letter-spacing:-0.01em;
  }
  a{color:inherit; text-decoration:none;}
  img{max-width:100%; display:block;}
  .wrap{max-width:1180px; margin:0 auto; padding:0 32px;}
  section{position:relative;}

  /* background ambient orbs */
  .orb{position:absolute; border-radius:50%; filter:blur(90px); opacity:0.35; pointer-events:none; z-index:0;}
  .orb-1{background:var(--accent-1); opacity:0.18;}
  .orb-2{background:var(--accent-2); opacity:0.16;}

  /* NAV */
  header{
    position:fixed; top:0; left:0; right:0; z-index:100;
    backdrop-filter:blur(16px) saturate(140%);
    background:rgba(10,7,13,0.55);
    border-bottom:1px solid rgba(255,255,255,0.06);
    transition:background .3s ease;
  }
  nav{display:flex; align-items:center; justify-content:space-between; padding:18px 32px; max-width:1180px; margin:0 auto;}
  .logo{font-family:'Fraunces', serif; font-size:22px; font-weight:600; letter-spacing:0.01em;}
  .logo span{background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;}
  .nav-links{display:flex; gap:36px; align-items:center;}
  .nav-links a{font-size:14.5px; color:var(--ink-1); transition:color .2s;}
  .nav-links a:hover{color:var(--ink-0);}
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:12px 26px; border-radius:999px; font-size:14.5px; font-weight:600;
    cursor:pointer; border:none; transition:transform .25s ease, box-shadow .25s ease;
    white-space:nowrap;
  }
  .btn-primary{background:var(--grad); color:#0d1417; box-shadow:0 8px 30px -8px rgba(164,138,240,0.55);}
  .btn-primary:hover{transform:translateY(-2px); box-shadow:0 14px 34px -8px rgba(164,138,240,0.7);}
  .btn-ghost{background:rgba(255,255,255,0.06); color:var(--ink-0); border:1px solid rgba(255,255,255,0.14);}
  .btn-ghost:hover{background:rgba(255,255,255,0.11); transform:translateY(-2px);}
  .nav-actions{display:none; align-items:center; gap:12px;}
  @media(min-width:840px){.nav-actions{display:flex;}}
  .nav-links{display:none;}
  @media(min-width:840px){.nav-links{display:flex;}}

  /* Mobile nav (2026-08-25 fix) — below 840px, .nav-links and .nav-actions
   * above both go display:none with nothing standing in for them, which is
   * what left the header showing just the logo on an iPhone (Log In and
   * Request an Invite included — Jamie's report was "the login... at the
   * top disappears," but the whole nav was gone, not just that one link).
   * This hamburger button + dropdown panel is the replacement: the button
   * only renders below the same 840px breakpoint the desktop nav uses, so
   * the two are mutually exclusive rather than ever both showing. */
  .mobile-menu-btn{
    display:flex; align-items:center; justify-content:center;
    width:40px; height:40px; border-radius:10px;
    border:1px solid rgba(255,255,255,0.14); background:rgba(255,255,255,0.06);
    color:var(--ink-0); cursor:pointer;
  }
  .mobile-menu-btn:hover{background:rgba(255,255,255,0.11);}
  .mobile-menu-btn svg{width:20px; height:20px;}
  @media(min-width:840px){.mobile-menu-btn{display:none;}}

  /* Positioned relative to <header> (already position:fixed, so it's the
   * containing block for this) rather than <nav>, so the panel spans the
   * full header width and sits flush below it regardless of how wide the
   * inner .wrap-equivalent nav padding is. */
  .mobile-nav-panel{
    display:none; flex-direction:column;
    position:absolute; top:100%; left:0; right:0;
    max-height:calc(100vh - 100%); overflow-y:auto;
    background:rgba(10,7,13,0.97); backdrop-filter:blur(16px) saturate(140%);
    border-bottom:1px solid rgba(255,255,255,0.06);
    padding:4px 32px 24px;
  }
  .mobile-nav-panel.open{display:flex;}
  @media(min-width:840px){.mobile-nav-panel{display:none !important;}}
  .mobile-nav-panel .mobile-nav-link{
    padding:15px 2px; font-size:16px; color:var(--ink-1);
    border-bottom:1px solid rgba(255,255,255,0.06);
  }
  .mobile-nav-panel .mobile-nav-link:last-of-type{border-bottom:none;}
  .mobile-nav-panel .mobile-nav-actions{display:flex; flex-direction:column; gap:10px; margin-top:16px;}
  .mobile-nav-panel .mobile-nav-actions .btn{width:100%;}

  /* HERO */
  .hero{
    min-height:100vh; display:flex; align-items:center; padding-top:120px; padding-bottom:80px;
    position:relative; overflow:hidden;
  }
  .hero-bg{
    position:absolute; inset:0; z-index:-2;
    /* Dark gradient overlays (for text legibility) over a full-bleed photo —
     * same pattern as the AmoryLife marketing site's hero. Photo: tasteful,
     * non-explicit silhouette-at-sunset couple shot (Pexels, free to use). */
    background:
      linear-gradient(180deg, rgba(10,7,13,0.55) 0%, rgba(10,7,13,0.8) 55%, var(--bg-0) 100%),
      linear-gradient(90deg, rgba(10,7,13,0.88) 0%, rgba(10,7,13,0.35) 55%, rgba(10,7,13,0.55) 100%),
      url('https://images.pexels.com/photos/30514889/pexels-photo-30514889.jpeg?auto=compress&cs=tinysrgb&w=1920');
    background-size:cover; background-position:center 40%;
  }
  .eyebrow{
    display:inline-flex; align-items:center; gap:8px; padding:7px 16px 7px 8px; border-radius:999px;
    background:var(--card); border:1px solid var(--card-border); font-size:13px; color:var(--ink-1);
    margin-bottom:28px;
  }
  .eyebrow .dot{width:8px; height:8px; border-radius:50%; background:var(--grad);}
  .hero h1{
    font-size:clamp(38px, 6.4vw, 74px); max-width:820px; margin-bottom:26px; color:var(--ink-0);
  }
  .hero h1 em{font-style:italic; background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;}
  .hero p.lead{
    font-size:19px; color:var(--ink-1); max-width:560px; margin-bottom:40px; font-weight:300;
  }
  .hero-actions{display:flex; gap:16px; flex-wrap:wrap; margin-bottom:56px;}
  .hero-stats{display:flex; gap:44px; flex-wrap:wrap;}
  .hero-stats div strong{display:block; font-family:'Fraunces',serif; font-size:26px; font-weight:500;}
  .hero-stats div span{font-size:13px; color:var(--ink-2); letter-spacing:0.03em; text-transform:uppercase;}

  /* SECTION HEAD */
  .section-pad{padding:120px 0;}
  .kicker{
    font-size:13px; letter-spacing:0.14em; text-transform:uppercase; color:var(--accent-1); font-weight:600; margin-bottom:16px; display:block;
  }
  .section-title{font-size:clamp(30px,4vw,46px); max-width:640px; margin-bottom:20px;}
  .section-lead{font-size:17px; color:var(--ink-1); max-width:600px; font-weight:300;}

  /* MISSION */
  .mission-grid{display:grid; grid-template-columns:1fr; gap:56px; align-items:center;}
  @media(min-width:900px){.mission-grid{grid-template-columns:0.9fr 1.1fr;}}
  .mission-img{position:relative; border-radius:28px; overflow:hidden; aspect-ratio:4/5; box-shadow:0 40px 80px -30px rgba(0,0,0,0.6); background:var(--bg-2);}
  .mission-img img{width:100%; height:100%; object-fit:cover; filter:saturate(0.9) contrast(1.05);}
  .mission-img::after{content:'';position:absolute; inset:0; background:linear-gradient(180deg, transparent 40%, rgba(10,7,13,0.7) 100%);}
  .pillars{display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:36px;}
  .pillar{padding:20px; border-radius:16px; background:var(--card); border:1px solid var(--card-border);}
  .pillar h4{font-family:'Inter'; font-size:15px; font-weight:600; margin-bottom:6px; color:var(--ink-0);}
  .pillar p{font-size:13.5px; color:var(--ink-2); font-weight:300;}

  /* FEATURES / WHY */
  .features-grid{display:grid; grid-template-columns:1fr; gap:20px; margin-top:64px;}
  @media(min-width:700px){.features-grid{grid-template-columns:1fr 1fr;}}
  @media(min-width:1080px){.features-grid{grid-template-columns:repeat(4,1fr);}}
  .feature{padding:28px 24px; border-radius:20px; background:var(--card); border:1px solid var(--card-border);}
  .feature .icon{
    width:44px; height:44px; border-radius:12px; background:var(--grad-soft); display:flex; align-items:center; justify-content:center; margin-bottom:20px;
  }
  .feature .icon svg{width:22px; height:22px; stroke:var(--accent-1);}
  .feature h4{font-size:17px; font-weight:600; font-family:'Inter'; margin-bottom:10px; color:var(--ink-0);}
  .feature p{font-size:14px; color:var(--ink-2); font-weight:300;}

  /* COMMUNITY */
  .community{
    border-radius:32px; overflow:hidden; position:relative; padding:80px 48px;
    background:linear-gradient(100deg, rgba(10,7,13,0.94) 20%, rgba(10,7,13,0.55) 75%), var(--bg-1);
  }
  .community-inner{max-width:520px;}

  /* FAQ */
  .faq-list{display:flex; flex-direction:column; gap:14px; margin-top:48px; max-width:760px;}
  .faq-item{border-radius:16px; background:var(--card); border:1px solid var(--card-border); overflow:hidden;}
  .faq-item summary{
    list-style:none; cursor:pointer; padding:22px 26px; display:flex; align-items:center; justify-content:space-between; gap:16px;
    font-family:'Inter'; font-size:16px; font-weight:600; color:var(--ink-0);
  }
  .faq-item summary::-webkit-details-marker{display:none;}
  .faq-item summary::after{
    content:'+'; font-size:22px; font-weight:300; color:var(--accent-1); flex-shrink:0; transition:transform .25s ease; line-height:1;
  }
  .faq-item[open] summary::after{transform:rotate(45deg);}
  .faq-item p{padding:0 26px 22px; font-size:14.5px; color:var(--ink-2); font-weight:300;}

  /* WAITLIST */
  .waitlist{
    border-radius:32px; padding:80px 48px; text-align:center; position:relative; overflow:hidden;
    background:linear-gradient(135deg, rgba(94,200,216,0.09), rgba(164,138,240,0.09));
    border:1px solid var(--card-border);
  }
  .waitlist h2{font-size:clamp(28px,4vw,44px); max-width:640px; margin:0 auto 16px;}
  .waitlist p{color:var(--ink-1); max-width:480px; margin:0 auto 36px; font-weight:300;}
  .waitlist-form{display:flex; gap:12px; max-width:440px; margin:0 auto; flex-wrap:wrap; justify-content:center;}
  .waitlist-form input{
    flex:1; min-width:220px; padding:14px 20px; border-radius:999px; border:1px solid rgba(255,255,255,0.16);
    background:rgba(255,255,255,0.05); color:var(--ink-0); font-size:14.5px; font-family:'Inter';
  }
  .waitlist-form input::placeholder{color:var(--ink-2);}
  .waitlist-form input:focus{outline:none; border-color:var(--accent-1);}
  .fineprint{font-size:12.5px; color:var(--ink-2); margin-top:18px;}
  .form-msg{font-size:13.5px; margin-top:16px; color:var(--accent-1); display:none;}

  /* FOOTER */
  footer{padding:72px 0 40px; border-top:1px solid rgba(255,255,255,0.07); margin-top:60px;}
  .footer-grid{display:grid; grid-template-columns:1fr; gap:48px;}
  @media(min-width:800px){.footer-grid{grid-template-columns:1.4fr 1fr 1fr 1fr;}}
  .footer-brand p{font-size:14px; color:var(--ink-2); max-width:280px; margin-top:14px; font-weight:300;}
  .footer-col h5{font-size:13px; text-transform:uppercase; letter-spacing:0.06em; color:var(--ink-2); margin-bottom:16px; font-weight:600;}
  .footer-col a{display:block; font-size:14.5px; color:var(--ink-1); margin-bottom:12px; transition:color .2s;}
  .footer-col a:hover{color:var(--ink-0);}
  .footer-bottom{
    display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between; align-items:center;
    margin-top:64px; padding-top:28px; border-top:1px solid rgba(255,255,255,0.06);
    font-size:13px; color:var(--ink-2);
  }

  /* reveal animation */
  .reveal{opacity:0; transform:translateY(28px); transition:opacity .8s ease, transform .8s ease;}
  .reveal.in{opacity:1; transform:translateY(0);}

  ::selection{background:var(--accent-2); color:#fff;}

/* Legal/policy pages (Privacy, Terms, ID Verification, Sexual Health) —
 * added 2026-09-04 at Jamie's request, so there's something real for
 * beta testers to read while the attorney review of the full legal set
 * is pending. Shares this file's tokens/fonts with the rest of the
 * public site (not portal.css's post-login design system) since these
 * pages need to be readable pre-signup. Every one of the four carries a
 * visible .legal-draft-banner — same convention already used on the
 * amorylife.com marketing site's own drafted legal pages — and must keep
 * that banner until Jamie's attorney has actually reviewed the content. */
.legal-header{padding:22px 0; border-bottom:1px solid var(--card-border);}
.legal-header-inner{display:flex; align-items:center; justify-content:space-between;}
.legal-main{padding:112px 0 96px;}  /* clears the fixed <header> (portal pages use the same 112px for the same reason) */
.legal-wrap{max-width:760px;}
/* Made deliberately hard to miss (2026-09-04, per Jamie: the original
 * subtle 12%-opacity tint wasn't reading as a visible warning) — a
 * solid-color left bar plus a stronger tinted fill, not just a colored
 * word inside otherwise-normal body text. */
.legal-draft-banner{
  background:rgba(224,81,122,0.22); border:1.5px solid rgba(224,81,122,0.6);
  border-left:5px solid var(--danger);
  border-radius:12px; padding:18px 22px 18px 20px; margin-bottom:40px;
  font-size:14.5px; line-height:1.65; color:var(--ink-0);
}
.legal-draft-banner strong{color:var(--danger); font-weight:700;}
.legal-wrap h1{font-size:clamp(30px,4vw,42px); margin-bottom:8px; color:var(--ink-0); font-family:'Fraunces',serif; font-weight:500;}
.legal-updated{font-size:13.5px; color:var(--ink-2); margin-bottom:40px;}
.legal-toc{background:var(--card); border:1px solid var(--card-border); border-radius:12px; padding:22px 26px; margin-bottom:40px;}
.legal-toc h2{margin-top:0 !important; font-size:16px !important;}
.legal-toc ol{margin:0 0 0 20px;}
.legal-toc li{margin-bottom:6px;}
.legal-toc a{color:var(--ink-1);}
.legal-wrap h2{font-family:'Fraunces',serif; font-size:23px; font-weight:500; margin:40px 0 14px; color:var(--ink-0);}
.legal-wrap h3{font-family:'Inter',sans-serif; font-size:16.5px; font-weight:600; margin:26px 0 10px; color:var(--ink-0);}
.legal-wrap p{font-size:15.5px; line-height:1.75; color:var(--ink-1); margin-bottom:16px; font-weight:300;}
.legal-wrap ul, .legal-wrap ol{margin:0 0 16px 22px; color:var(--ink-1); font-size:15.5px; line-height:1.75; font-weight:300;}
.legal-wrap li{margin-bottom:8px;}
.legal-wrap a{color:var(--accent-1);}
.legal-wrap a:hover{text-decoration:underline;}
.legal-wrap strong{color:var(--ink-0); font-weight:600;}
.legal-callout{
  background:var(--card); border:1px solid var(--card-border); border-radius:12px;
  padding:20px 24px; margin:24px 0;
}
.legal-callout p:last-child{margin-bottom:0;}
.legal-callout h3{margin-top:0;}
