/* ==========================================================================
   GymLock — homepage
   --------------------------------------------------------------------------
   A deliberately spare layout: one statement and one screenshot per section,
   everything centred, lots of air. Palette and typeface are the app's own
   (Gym Lock/Theme/Theme.swift, Gym Lock/Theme/AppFont.swift).

   The detailed multi-section site lives in index-detailed.html + styles.css.
   ========================================================================== */

:root{
  --orange:#CF4601;          /* Theme.orange */
  --orange-light:#EB663B;    /* Theme.orangeLight */
  --orange-dark:#AA3101;     /* Theme.orangeDark */

  --white:#fff;
  --placeholder:#F5F4F0;   /* behind a screenshot before it decodes */

  --text:#1A1613;
  --text-2:rgba(26,22,19,.58);
  --line:rgba(26,22,19,.10);

  --font:"Poppins",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --max:1120px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:var(--font);
  font-weight:400;
  background:var(--white);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
:focus-visible{outline:2.5px solid var(--orange);outline-offset:3px;border-radius:6px}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;left:16px;top:-70px;z-index:99;background:var(--white);color:var(--text);padding:13px 20px;border-radius:14px;font-weight:600;box-shadow:0 18px 40px rgba(0,0,0,.16)}
.skip-link:focus{top:16px}

.wrap,.page-width{width:min(calc(100% - 44px),var(--max));margin-inline:auto}

/* --------------------------------------------------------------------------
   Type — sentence case at weight 600. Lighter than the app's UI headings on
   purpose: at this size 800 reads as shouting.
   -------------------------------------------------------------------------- */
h1,h2{font-weight:700;line-height:1.08;letter-spacing:-.035em;text-wrap:balance}
h1{font-size:clamp(35px,6vw,74px)}
h2{font-size:clamp(29px,4.5vw,56px)}
.lead{
  margin:22px auto 0;max-width:44ch;
  font-size:clamp(16px,1.5vw,19px);color:var(--text-2);line-height:1.65;
}
em{font-style:normal;color:var(--orange)}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn{
  display:inline-flex;align-items:center;gap:12px;
  min-height:58px;padding:12px 30px;
  background:var(--orange);color:#fff;
  border-radius:999px;
  font-size:15.5px;font-weight:600;letter-spacing:-.01em;
  box-shadow:0 16px 34px rgba(207,70,1,.26);
  transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s ease,background .3s ease;
}
.btn:hover,.btn:focus-visible{background:var(--orange-dark);transform:translateY(-2px);box-shadow:0 22px 46px rgba(207,70,1,.32)}
.btn:active{transform:translateY(0) scale(.985)}
.btn small{display:block;font-size:10px;line-height:1.2;font-weight:400;opacity:.8}
.btn span{text-align:left}
.btn-sm{min-height:44px;padding:9px 20px;font-size:14px;box-shadow:0 10px 22px rgba(207,70,1,.22)}
.btn-light{background:var(--white);color:var(--text);box-shadow:0 16px 34px rgba(0,0,0,.28)}
.btn-light:hover,.btn-light:focus-visible{background:var(--white);color:var(--orange)}
.apple{font-size:17px;line-height:1}

/* --------------------------------------------------------------------------
   Header — a plain bar, not sticky. Two items only, so no mobile menu.
   -------------------------------------------------------------------------- */
.top{position:absolute;top:0;left:0;right:0;z-index:10;padding:26px 0}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:11px;font-size:17px;font-weight:700;letter-spacing:-.02em}
.brand img{width:38px;height:38px;border-radius:11px}

/* --------------------------------------------------------------------------
   Sections — one statement, one screenshot, generous air.
   -------------------------------------------------------------------------- */
.band{padding:clamp(88px,12vw,168px) 0;text-align:center;position:relative;overflow:hidden}
.band-hero{padding-top:clamp(140px,16vw,210px)}

.band-light{background:var(--white)}

/* Warm cream ground with the app's soft peach/sage blooms — alternates with
   the white bands to give the page rhythm. */
.band-cream{
  background:
    radial-gradient(620px 420px at 84% 6%, rgba(235,102,59,.10), transparent 70%),
    radial-gradient(560px 460px at 8% 88%, rgba(32,204,165,.06), transparent 72%),
    linear-gradient(170deg,#FFFDF9,#F6EFE5 60%,#EAE2D7);
}

/* The dash rule — GymLock's own motif, from LightArchitecturalOverlay:
   8 capsules 7px apart, every third teal at 18px, the rest orange at 7px. */
.rule{display:flex;justify-content:center;gap:7px;margin:26px 0 0;opacity:.32}
.rule span{height:3px;width:7px;border-radius:999px;background:var(--orange);flex:none}
.rule span:nth-child(3n+1){width:18px;background:#20CCA5}

.band .btn{margin-top:36px}

/* --------------------------------------------------------------------------
   Phone
   -------------------------------------------------------------------------- */
.phone{
  width:min(330px,72vw);
  margin:clamp(48px,6vw,76px) auto 0;
  aspect-ratio:880/1912;
  border-radius:13.6%/6.2%;
  overflow:hidden;
  background:var(--placeholder);
  box-shadow:
    0 0 0 9px #17140F,
    0 0 0 10.5px rgba(255,255,255,.14),
    0 46px 90px rgba(40,26,16,.28),
    0 12px 28px rgba(40,26,16,.14);
}
.phone img{width:100%;height:100%;object-fit:cover}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.foot{background:var(--white);border-top:1px solid var(--line);padding:64px 0 34px;text-align:center}
.foot .brand{justify-content:center;margin-bottom:22px}
.foot nav{display:flex;justify-content:center;flex-wrap:wrap;gap:14px 30px;font-size:15px;color:var(--text-2)}
.foot nav a{transition:color .2s ease}
.foot nav a:hover,.foot nav a:focus-visible{color:var(--orange)}
.foot p{margin-top:30px;padding-top:24px;border-top:1px solid var(--line);font-size:13px;color:var(--text-2)}

/* --------------------------------------------------------------------------
   Reveal — a short rise and fade, nothing more
   -------------------------------------------------------------------------- */
[data-reveal]{opacity:0;transform:translateY(20px);transition:opacity .8s cubic-bezier(.22,1,.36,1),transform .8s cubic-bezier(.22,1,.36,1)}
[data-reveal].seen{opacity:1;transform:none}

@media (max-width:640px){
  .wrap{width:calc(100% - 32px)}
  .top{padding:18px 0}
  .brand{font-size:15.5px;gap:9px}
  .brand img{width:34px;height:34px}
  .btn{width:100%;justify-content:center}
  .top .btn{width:auto}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.001ms!important;animation-duration:.001ms!important}
  [data-reveal]{opacity:1;transform:none}
}


/* ==========================================================================
   Subpages — support, privacy, terms
   --------------------------------------------------------------------------
   Same spare language as the homepage: centred title, then one readable
   column. Body copy stays left-aligned; centred legal text is unreadable.
   ========================================================================== */
.subpage-hero{padding:clamp(128px,15vw,176px) 0 clamp(40px,5vw,60px);text-align:center}
.subpage-hero h1{font-size:clamp(32px,4.7vw,58px)}
.subpage-hero>.wrap>p,.subpage-hero>.page-width>p{
  margin:20px auto 0;max-width:52ch;font-size:17px;color:var(--text-2);line-height:1.65;
}
.subpage-meta{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:26px}
.subpage-meta span{
  padding:8px 16px;border-radius:999px;
  background:#F6EFE5;font-size:12.5px;font-weight:500;color:var(--text-2);
}
.subpage-hero .section-label{
  display:inline-flex;align-items:center;gap:10px;justify-content:center;
  font-size:11.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--orange);margin-bottom:20px;
}
.subpage-hero .section-label span{
  padding:5px 12px;border-radius:999px;background:rgba(207,70,1,.09);letter-spacing:.08em;
}

/* Single readable column — no sticky sidebar. */
.content-layout,.support-layout{
  display:block;width:min(calc(100% - 44px),720px);margin-inline:auto;
  padding-bottom:clamp(70px,9vw,110px);
}
.content-nav{
  display:flex;flex-wrap:wrap;gap:8px;
  margin-bottom:44px;padding-bottom:36px;border-bottom:1px solid var(--line);
}
.content-nav a{
  padding:8px 15px;border-radius:999px;background:#F6EFE5;
  font-size:13.5px;color:var(--text-2);transition:background .2s ease,color .2s ease;
}
.content-nav a:hover,.content-nav a:focus-visible{background:rgba(207,70,1,.1);color:var(--orange)}

.prose section+section{margin-top:48px}
.prose h2{font-size:clamp(21px,2.4vw,28px);font-weight:600;letter-spacing:-.025em;line-height:1.25}
.prose h3{font-size:18px;font-weight:600;margin-top:24px}
.prose p,.prose li{font-size:16px;color:var(--text-2);line-height:1.75}
.prose h2+p,.prose h3+p{margin-top:14px}
.prose p+p,.prose p+ul,.prose p+ol,.prose h2+ul{margin-top:14px}
.prose ul,.prose ol{margin-top:14px;padding-left:22px;display:grid;gap:9px}
.prose ul{list-style:disc}
.prose ol{list-style:decimal}
.prose a{color:var(--orange);font-weight:500}
.prose strong{color:var(--text);font-weight:600}
.callout{
  margin:22px 0;padding:22px 24px;border-radius:18px;
  background:rgba(207,70,1,.06);border-left:3px solid var(--orange);
}
.callout strong{display:block;margin-bottom:7px;font-size:16px;color:var(--text)}
.data-table{margin-top:18px;display:grid;gap:8px}
.data-row{
  display:grid;grid-template-columns:.85fr 1.4fr;gap:20px;
  padding:18px 20px;border-radius:18px;background:#FAF7F2;
}
.data-row strong{font-size:15px;font-weight:600;color:var(--text)}
.data-row span{font-size:15px;color:var(--text-2);line-height:1.7}

/* Support */
.support-contact{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:22px;
  padding:32px;border-radius:26px;background:#F6EFE5;margin-bottom:44px;
}
.support-contact h2{font-size:24px;font-weight:600;letter-spacing:-.025em}
.support-contact p{margin-top:10px;max-width:54ch;font-size:15px;color:var(--text-2);line-height:1.7}
.support-email{
  flex:none;display:inline-flex;align-items:center;min-height:52px;padding:12px 26px;
  border-radius:999px;background:var(--orange);color:#fff;font-size:15px;font-weight:600;
  box-shadow:0 14px 30px rgba(207,70,1,.24);transition:transform .3s cubic-bezier(.22,1,.36,1);
}
.support-email:hover,.support-email:focus-visible{transform:translateY(-2px)}
.support-section+.support-section{margin-top:52px}
.support-section h2{font-size:clamp(22px,2.6vw,30px);font-weight:600;letter-spacing:-.025em}
.support-section>p{margin-top:12px;font-size:16px;color:var(--text-2);line-height:1.7}
.support-section .section-label{
  display:inline-flex;align-items:center;gap:10px;margin-bottom:16px;
  font-size:11.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--orange);
}
.support-section .section-label span{padding:5px 12px;border-radius:999px;background:rgba(207,70,1,.09);letter-spacing:.08em}
.support-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:26px}
.support-card{padding:24px;border-radius:22px;background:#FAF7F2}
.support-icon{
  display:grid;place-items:center;width:38px;height:38px;margin-bottom:16px;
  border-radius:12px;background:rgba(207,70,1,.1);color:var(--orange);
  font-size:13px;font-weight:600;
}
.support-card h3{font-size:16.5px;font-weight:600}
.support-card p{margin-top:9px;font-size:14.5px;color:var(--text-2);line-height:1.65}

/* Accordions */
.support-faq{display:grid;gap:10px;margin-top:24px}
.support-faq details{border:1px solid var(--line);border-radius:20px;overflow:hidden;transition:background .25s ease}
.support-faq details[open]{background:#FAF7F2}
.support-faq summary{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:20px 24px;cursor:pointer;list-style:none;
  font-size:16px;font-weight:500;
}
.support-faq summary::-webkit-details-marker{display:none}
.support-faq summary span{
  display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;
  background:rgba(207,70,1,.1);color:var(--orange);font-size:17px;line-height:1;
  transition:transform .3s cubic-bezier(.22,1,.36,1);
}
.support-faq details[open]>summary span{transform:rotate(45deg)}
.support-faq .answer{padding:0 24px 22px;font-size:15px;color:var(--text-2);line-height:1.72}
.support-faq .answer p+p,.support-faq .answer p+ol{margin-top:12px}
.support-faq .answer ol{padding-left:20px;list-style:decimal;display:grid;gap:7px}
.support-faq .answer a{color:var(--orange);font-weight:500}

@media (max-width:760px){
  .support-cards{grid-template-columns:1fr}
  .data-row{grid-template-columns:1fr;gap:6px}
  .support-contact{flex-direction:column;align-items:flex-start}
  .support-email{width:100%;justify-content:center}
}
