/* DareMe! site. One file, no build step. Light only.
   Values from the app: ground = AppTheme.standard.background, pink = AppTheme.standard.accent,
   boxes = popBox in DareMe/Design/Theme.swift. */

:root {
  color-scheme: light;
  --g1: #EAFF4A;
  --g2: #D8FF3A;
  --g3: #A8FF5A;
  --pink: #FB0B6F;
  --ink: #111114;
  --white: #FFFFFF;
  --side: min(300px, 78vw, 44svh);
  --display: system-ui, -apple-system, "SF Pro Display", "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--g2) linear-gradient(135deg, var(--g1), var(--g2) 50%, var(--g3)) fixed;
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 8px; }

h1, h2, .display {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: condensed;
  letter-spacing: -0.01em;
  margin: 0;
}

/* The app's box: white, black line 3 px, hard black shadow to the lower right. */
.box {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 4px 5px 0 var(--ink);
}

.ask { background: var(--pink); color: var(--white); padding: 1px 6px; border-radius: 5px; font-weight: 700; }

/* Start page */
.home { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(18px, 4svh, 44px); padding: 34px 20px 20px; text-align: center; }
.hero h1 { font-size: clamp(2.5rem, min(13.2vw, 7.4svh), 4.4rem); line-height: 1.04; }
.hero h1 span { display: block; }
.hero h1 mark { display: inline-block; background: var(--pink); color: var(--white); padding: 0 .19em; border-radius: 6px; line-height: .98; margin-right: .1em; }
.lede { margin: 10px 0 0; font: 800 clamp(1.25rem, min(6.6vw, 3.7svh), 1.9rem)/1.15 var(--display); font-stretch: condensed; }

/* The hold button: three pictures on top of each other, as in PopHoldButton.swift. */
.hold {
  position: relative;
  width: var(--side);
  height: var(--side);
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.hold .layers { position: absolute; inset: 0; will-change: transform; }
.hold img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; -webkit-user-drag: none; }
.hold .cap { transition: transform .35s cubic-bezier(.3, 1.9, .5, 1), filter .35s; }
.hold.down .cap { transform: translateY(calc(var(--side) * .085 * .35)); filter: brightness(.96); transition: transform .08s ease-out, filter .08s ease-out; }
/* The shadow round the foot of the ring: a soft wide one and a tight dark one. */
.hold .shade { position: absolute; border-radius: 50%; background: #000; }
.hold .shade.wide { left: 4.55%; top: 24.03%; width: 90.9%; height: 71.94%; opacity: .30; filter: blur(calc(var(--side) * .04)); transform: translate(.8%, 3%); }
.hold .shade.tight { left: 7.47%; top: 26.34%; width: 85.07%; height: 67.32%; opacity: .42; filter: blur(calc(var(--side) * .012)); transform: translateY(1.2%); }

.foot { padding: 6px 20px calc(14px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 15px; font-weight: 600; }
.foot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 26px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot p { margin: 0; font-weight: 500; }

/* The card that comes when the button is let go. */
.sheet { position: fixed; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(17, 17, 20, 0); visibility: hidden; transition: background .3s, visibility 0s .3s; }
.sheet.on { visibility: visible; background: rgba(17, 17, 20, .35); transition: background .3s; }
.card { position: relative; width: min(100%, 400px); padding: 30px 22px 28px; text-align: center; border-radius: 28px; box-shadow: 6px 7px 0 var(--ink); transform: translateY(110vh); transition: transform .3s ease-in; }
.sheet.on .card { transform: none; transition: transform .45s cubic-bezier(.2, 1.25, .4, 1); }
.card h2 { font-size: clamp(2.7rem, 13vw, 3.5rem); line-height: 1; margin-bottom: 26px; }
.stores { display: grid; gap: 16px; justify-items: center; }
/* Store badges, built here: a black rounded plate with the logo and two lines. */
.badge { display: inline-flex; align-items: center; gap: 11px; width: 224px; height: 68px; padding: 0 16px; border-radius: 13px; background: #000; color: #fff; text-decoration: none; text-align: left; transition: transform .12s; }
.badge svg { width: 34px; height: 34px; flex: none; }
.badge small { display: block; font: 500 12px/1.1 var(--text); letter-spacing: .01em; }
.badge strong { display: block; font: 600 25px/1.1 var(--text); letter-spacing: -.02em; white-space: nowrap; }
a.badge:hover { transform: scale(1.04); }
.badge.off { filter: grayscale(1); opacity: .4; }
.soon p { margin: 7px 0 0; font: 400 12px/1 var(--text); letter-spacing: .14em; text-transform: lowercase; color: #6b6b70; }

/* Text pages */
.top { padding: 18px 20px 0; max-width: 780px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font: 900 1.9rem/1 var(--display); font-stretch: condensed; }
.page { max-width: 780px; margin: 0 auto; padding: 14px 20px 30px; }
.doc { padding: 30px 24px 26px; }
.doc h1 { font-size: clamp(2.4rem, 10vw, 3.4rem); line-height: 1; }
.doc h2 { font-size: 1.6rem; line-height: 1.1; margin: 1.7em 0 .5em; }
.doc p { margin: 0 0 1em; }
.doc ul { margin: 0 0 1em; padding-left: 1.2em; }
.doc li { margin-bottom: .45em; }
.doc address { font-style: normal; margin: 0 0 1em; }
.doc .meta { margin: 10px 0 0; font-weight: 600; }
.doc .short { margin: 22px 0 0; padding: 18px 18px 6px; background: var(--g1); border: 3px solid var(--ink); border-radius: 16px; }
.doc .short h2 { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .card, .sheet, .hold .cap { transition-duration: .01s !important; }
}
@media print { body { background: #fff; } .box { box-shadow: none; } }
.doc .lead { margin-top: 1.2em; }
.sheet:not(.on) { pointer-events: none; }
.ask { -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Menu bar on top of every page: three lines on the left that open the menu, the App Store button on the right. */
.bar { position: relative; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 8px; max-width: 740px; margin: calc(12px + env(safe-area-inset-top, 0px)) auto 0; width: calc(100% - 32px); padding: 6px 8px; border-radius: 18px; }
.burger { display: grid; place-content: center; gap: 5px; width: 46px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.burger span { display: block; width: 24px; height: 3.5px; border-radius: 2px; background: currentColor; }
.burger:hover, .burger[aria-expanded="true"] { color: var(--pink); }
.menu { position: absolute; top: calc(100% + 12px); left: -3px; display: flex; flex-direction: column; min-width: 200px; padding: 8px 18px; border-radius: 18px; }
.menu[hidden] { display: none; }
.menu a { display: flex; align-items: center; min-height: 48px; text-decoration: none; white-space: nowrap; font: 800 1.35rem/1 var(--display); font-stretch: condensed; }
.menu a:hover, .menu a[aria-current] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--pink); text-underline-offset: 6px; }
.get { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 6px 10px; margin: 0 3px 4px 0; border-radius: 13px; box-shadow: 3px 4px 0 var(--ink); background: var(--pink); color: var(--white); text-decoration: none; white-space: nowrap; font: 900 clamp(.95rem, 3.9vw, 1.1rem)/1 var(--display); font-stretch: condensed; transition: transform .08s, box-shadow .08s; }
.get svg { width: 17px; height: 17px; flex: none; margin-top: -2px; }
.get:hover { transform: translate(-1px, -1px); box-shadow: 4px 5px 0 var(--ink); }
.get:active { transform: translate(3px, 4px); box-shadow: 0 0 0 var(--ink); }
.hero { padding-top: 22px; }

/* Support page */
.doc .mail { display: inline-block; margin: 2px 0 6px; font-weight: 700; }
.doc details { border: 3px solid var(--ink); border-radius: 16px; margin: 0 0 12px; padding: 0 16px; background: var(--white); }
.doc details[open] { background: var(--g1); }
.doc summary { cursor: pointer; padding: 13px 0; font: 800 1.25rem/1.2 var(--display); font-stretch: condensed; }
.doc details p:last-child { margin-bottom: 14px; }
.foot nav { gap: 0 clamp(14px, 5vw, 26px); }
.foot nav a { white-space: nowrap; }
.card:focus { outline: none; }
