/* august.fm home page. Brand: Graphite ground, Paper text, Iris for actions only, Geist for type, the drawn wordmark
   (WordmarkKerned) and symbol; artwork carries the colour. Privacy, Terms and Support use style.css. */
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ground: #0E0E10;
  --raised: #18181B;
  --line: #2A2A2F;
  --text: #F2F2F4;
  --text-2: #AEAEB2;
  --text-3: #8E8E93;
  --iris: #4433FF;
  --iris-hover: #5546FF;
  --iris-a: #8077FF;       /* the wordmark's a, dark grounds only */
  --iris-text: #A39BFF;    /* Iris text on dark */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 18px/1.55 "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; }
a { color: var(--iris-text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--iris-text); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul, figure { margin: 0; }
h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

/* Wordmark and symbol: one monoline stroke, round ends. */
.wordmark, .symbol { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.wordmark { stroke-width: 11; color: var(--text); }
.wordmark .a { stroke: var(--iris-a); }
.wordmark.small { stroke-width: 16; width: 92px; }   /* small cut below 120 px wide */
.symbol { stroke-width: 11; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--iris); color: #FFFFFF;
  font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.3s var(--ease);
}
.button:disabled { opacity: 0.7; cursor: default; }
.button:hover { background: var(--iris-hover); }
.button:active { transform: scale(0.96); }
.button.small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.button.quiet { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.button.quiet:hover { background: rgba(255, 255, 255, 0.13); }
.button.light { background: #FFFFFF; color: var(--iris); }
.button.light:hover { background: #ECEAFF; }

/* Header */
.bar {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: rgba(14, 14, 16, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.bar-mark { display: block; padding: 6px 0; color: var(--text); }
.bar-links { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.bar-links a:not(.button) { color: var(--text-2); text-decoration: none; transition: color 0.2s; }
.bar-links a:not(.button):hover { color: var(--text); }
@media (max-width: 560px) { .bar-links a:not(.button) { display: none; } }

/* Hero */
.hero { position: relative; padding-top: clamp(40px, 8vw, 96px); text-align: center; overflow-x: clip; }   /* the glow is wider than phones */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--text-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--iris-a); box-shadow: 0 0 0 0 rgba(128, 119, 255, 0.6); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(128, 119, 255, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(128, 119, 255, 0); } }

.masthead { width: min(100%, 760px); margin: clamp(28px, 4vw, 44px) auto 0; }
.masthead .wordmark { width: 100%; height: auto; }
.tagline {
  margin-top: clamp(28px, 4vw, 48px);
  font-size: clamp(38px, 6.2vw, 80px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance;
}
.lede { max-width: 36rem; margin: 22px auto 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--text-3); }

/* The wordmark draws itself once, letters in reading order (DSMotion: 500 ms each, 90 ms apart). */
.wordmark.draw path { stroke-dasharray: 100 100; animation: draw 0.5s var(--ease) both; }
.wordmark.draw path:nth-child(1) { animation-delay: 0.25s; }
.wordmark.draw path:nth-child(2) { animation-delay: 0.34s; }
.wordmark.draw path:nth-child(3) { animation-delay: 0.43s; animation-duration: 0.36s; }
.wordmark.draw path:nth-child(4) { animation-delay: 0.71s; animation-duration: 0.24s; }
.wordmark.draw path:nth-child(5) { animation-delay: 0.52s; }
.wordmark.draw path:nth-child(6) { animation-delay: 0.61s; }
.wordmark.draw path:nth-child(7) { animation-delay: 0.70s; animation-duration: 0.36s; }
.wordmark.draw path:nth-child(8) { animation-delay: 0.98s; animation-duration: 0.22s; }
@keyframes draw { 0% { stroke-dashoffset: 100; opacity: 0; } 1% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }

/* iPhone frames around real screenshots (1206 × 2622) */
.phone {
  --w: clamp(240px, 26vw, 320px);
  position: relative; flex: 0 0 auto; width: var(--w);
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.168);
  background: linear-gradient(155deg, #3B3B41 0%, #1B1B1E 26%, #0A0A0B 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    0 0 0 1px #000,
    0 60px 90px -40px rgba(0, 0, 0, 0.9);
}
.phone img { display: block; width: 100%; height: auto; border-radius: calc(var(--w) * 0.137); background: #000; }
.phone::after {   /* Dynamic Island */
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(var(--w) * 0.058); width: calc(var(--w) * 0.29); height: calc(var(--w) * 0.085);
  border-radius: 999px; background: #000;
}

.stage {
  position: relative; isolation: isolate;
  display: flex; justify-content: center; align-items: flex-start;
  margin-top: clamp(56px, 8vw, 96px); padding-inline: var(--gutter);
}
.stage::before {   /* the hero's light, taken from the artwork on screen */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 4%; width: min(1100px, 130vw); height: 80%;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 50% 45%, rgba(68, 51, 255, 0.55), transparent),
    radial-gradient(closest-side at 28% 60%, rgba(255, 79, 46, 0.22), transparent),
    radial-gradient(closest-side at 74% 58%, rgba(255, 213, 0, 0.16), transparent);
  filter: blur(40px);
}
.stage .center { --w: clamp(260px, 28vw, 340px); z-index: 2; }
.stage .side { --w: clamp(220px, 23vw, 286px); margin-top: clamp(60px, 7vw, 96px); filter: brightness(0.72); }
.stage .left { margin-right: calc(var(--w) * -0.14); }
.stage .right { margin-left: calc(var(--w) * -0.14); }
.stage .left.in { transition-delay: 0.12s; }
.stage .right.in { transition-delay: 0.24s; }
@media (max-width: 760px) { .stage .side { display: none; } }
/* The hero ends part-way down the phones; the next section fades them out as it rises over them. */
.stage { margin-bottom: clamp(-260px, -18vw, -120px); }

/* Features: text beside a phone, alternating */
.feature { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 112px); }
.hero + .feature { background: linear-gradient(to bottom, rgba(14, 14, 16, 0) 0, var(--ground) clamp(120px, 18vw, 260px)); padding-top: clamp(170px, 24vw, 320px); }
.feature-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(40px, 8vw, 128px); }
.feature.flip .feature-text { order: 2; }
.feature-text { display: flex; flex-direction: column; gap: 22px; max-width: 34rem; }
.feature-text > p:not(.eyebrow) { font-size: clamp(18px, 1.7vw, 20px); color: var(--text-2); text-wrap: pretty; }
.feature-text > p.aside { font-size: 16px; color: var(--text-3); }
.feature .phone {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    0 0 0 1px #000,
    -70px -50px 160px -10px color-mix(in srgb, var(--glow-1) 34%, transparent),
    80px 70px 170px -10px color-mix(in srgb, var(--glow-2) 28%, transparent),
    0 60px 90px -40px rgba(0, 0, 0, 0.9);
}
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--iris-text); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); font-size: 15px; color: var(--text); }
@media (max-width: 820px) {
  .feature-inner { grid-template-columns: 1fr; justify-items: center; }
  .feature.flip .feature-text { order: 0; }
  .feature-text { max-width: 40rem; }
  .feature .phone { --w: min(300px, 76vw); margin-top: 12px; }
}

/* Details */
.details { padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.details-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(40px, 8vw, 112px); }
.details .phone { --w: clamp(240px, 24vw, 300px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10), 0 0 0 1px #000,
  -60px 40px 160px -10px rgba(255, 213, 0, 0.18), 0 60px 90px -40px rgba(0, 0, 0, 0.9); }
.details h2 { max-width: 14ch; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 72px); }
.detail { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 2px solid var(--text); }
.detail p { font-size: 16px; line-height: 1.5; color: var(--text-2); }
@media (max-width: 900px) { .details-inner { grid-template-columns: 1fr; } .details .phone { display: none; } }
@media (max-width: 560px) { .detail-grid { grid-template-columns: 1fr; } }

/* Privacy */
.privacy { padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.privacy .wrap { display: flex; flex-direction: column; gap: 24px; }
.statement { font-size: clamp(40px, 7vw, 92px); line-height: 0.98; font-weight: 600; letter-spacing: -0.045em; max-width: 13ch; }
.statement span { color: var(--text-3); }
.privacy p:not(.statement):not(.eyebrow) { max-width: 34rem; font-size: clamp(18px, 1.7vw, 20px); color: var(--text-2); }
.link { align-self: flex-start; font-size: 17px; font-weight: 600; text-decoration: none; }
.link span { display: inline-block; transition: transform 0.3s var(--ease); }
.link:hover span { transform: translateX(4px); }

/* Invite */
.invite { padding-block: 0 clamp(72px, 10vw, 120px); }
.invite-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
  padding: clamp(48px, 8vw, 104px) clamp(20px, 6vw, 80px);
  border-radius: clamp(24px, 3vw, 36px);
  background: var(--iris); color: #FFFFFF;
}
.invite-card::before {   /* a soft light in the corner of the Iris ground */
  content: ""; position: absolute; inset: auto -20% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(163, 155, 255, 0.55), transparent); pointer-events: none;
}
.invite-card > * { position: relative; }
.invite-card .symbol { width: clamp(72px, 9vw, 104px); height: auto; color: #FFFFFF; }
.invite-card h2 { max-width: 16ch; }
.invite-card p { max-width: 32rem; font-size: clamp(18px, 1.7vw, 20px); color: rgba(255, 255, 255, 0.86); }
.invite-card .invite-note { font-size: 15px; color: rgba(255, 255, 255, 0.75); }
.invite-card .invite-note a { color: #FFFFFF; }
.invite-card .symbol path { stroke-dasharray: 100 100; }
.js .invite-card .symbol path { stroke-dashoffset: 100; opacity: 0; }
.js .invite-card.in .symbol path { animation: draw 1.4s var(--ease) 0.35s both; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 32px max(40px, env(safe-area-inset-bottom)); font-size: 15px; color: var(--text-3); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.foot-maker { display: flex; align-items: center; gap: 12px; color: var(--text-2); }
.symbol.small { width: 22px; height: 22px; stroke-width: 15; color: var(--text); }
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-copy { width: 100%; font-size: 13px; }

/* Arrivals: sections fade up once. Without JavaScript or with Reduce Motion everything is simply there. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wordmark.draw path, .js .invite-card .symbol path { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
}

/* Ask for an invite (D46): the form on the Iris panel, and the join page. */
.invite-form, .join-form { width: 100%; max-width: 26rem; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; opacity: 0.75; }
.field input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 0;
  font: 400 17px/1.2 "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: #FFFFFF; color: var(--ground);
}
.field input:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.85); outline-offset: 2px; }
.invite-form .button { width: 100%; margin-top: 6px; }
.invite-card .field span { color: rgba(255, 255, 255, 0.9); }
.form-status { min-height: 1.4em; font-size: 15px; text-align: center; }
.invite-card .form-status { color: #FFFFFF; font-size: 15px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.invite-done { max-width: 28rem; display: flex; flex-direction: column; gap: 8px; outline: none; }
.invite-done h3 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; }
.invite-card .invite-done p { color: rgba(255, 255, 255, 0.86); }

.join { padding-block: clamp(40px, 8vw, 96px) clamp(56px, 10vw, 120px); }
.join-card {
  max-width: 36rem; margin: 0 auto; padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 48px);
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
  border-radius: clamp(24px, 3vw, 32px); background: var(--raised); border: 1px solid var(--line);
}
.join-card section { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.join-card .symbol { width: 64px; height: auto; color: var(--iris-a); }
.join-card h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; outline: none; }
.join-lede { max-width: 30rem; font-size: clamp(17px, 1.8vw, 19px); color: var(--text-2); text-wrap: pretty; }
.join-form { margin-top: 6px; }
.join-form .field span { color: var(--text-2); }
.join-form .field input { background: #F2F2F4; }
.join-form .button { width: 100%; }
.join-form .form-status { color: var(--text-2); }
.hint { font-size: 14px; line-height: 1.45; color: var(--text-3); }
.join-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; width: 100%; max-width: 30rem; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.join-steps li { counter-increment: step; position: relative; padding-left: 44px; color: var(--text-2); line-height: 1.5; }
.join-steps li strong { color: var(--text); font-weight: 600; }
.join-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--iris); color: #FFFFFF; font-size: 15px; font-weight: 600; display: grid; place-items: center;
}
.join-steps .button { display: flex; width: fit-content; margin-top: 10px; }
[hidden] { display: none !important; }
.join-install { width: 100%; max-width: 26rem; }
.join-slack { width: 100%; max-width: 30rem; margin-top: 10px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--text-2); line-height: 1.5; text-wrap: pretty; }
.join-slack strong { color: var(--text); font-weight: 600; }
.beta-card { margin-top: 24px; }

/* The note from Steven above the join and Slack pages' card, linking to his story. */
.story-note { display: block; width: fit-content; max-width: 100%; margin: 0 auto 20px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text-2); font-size: 15px; line-height: 1.35; text-decoration: none; text-wrap: balance; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.story-note strong { color: var(--text); font-weight: 600; }
.story-note:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

/* The story behind August (story/): one long read in the home page's type. */
.story { padding-block: clamp(40px, 8vw, 96px) clamp(56px, 10vw, 120px); }
.story article { max-width: 38rem; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.story h1 { font-size: clamp(42px, 7vw, 72px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; text-wrap: balance; margin-bottom: 10px; }
.story h2 { font-size: clamp(25px, 3.2vw, 32px); line-height: 1.15; letter-spacing: -0.03em; margin-top: 22px; }
.story p { color: var(--text-2); font-size: clamp(18px, 1.9vw, 20px); line-height: 1.62; text-wrap: pretty; }
.story strong { color: var(--text); font-weight: 600; }
.story .eyebrow { font-size: 14px; line-height: 1.4; color: var(--iris-text); }
.story-try { margin-top: 22px; padding: clamp(24px, 5vw, 40px); border-radius: clamp(24px, 3vw, 32px); background: var(--raised); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.story-try h2 { margin-top: 0; }
.story-try .button { width: 100%; max-width: 22rem; }
.story .story-sign { color: var(--text); font-weight: 600; }
.beta-card h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.beta-tips { list-style: none; padding: 0; margin: 0; width: 100%; max-width: 30rem; display: flex; flex-direction: column; gap: 14px; text-align: left; color: var(--text-2); line-height: 1.5; }
.beta-tips strong { color: var(--text); font-weight: 600; }
.beta-tips a { color: var(--iris-text); }
