/* Stepfolio's landing page. One look for every visitor: the dance floor of the app's icon (dark wood, a warm light, cream), system fonts only. */
:root {
  --espresso: #1e120b;
  --wood: #7a4a22;
  --cream: #fbf5ea;
  --sand: #f1e3cd;
  --clay: #efd3bd;
  --ink: #22150d;
  --ink-2: #6d5848;
  --amber: #f6a623;
  --amber-ink: #b86a00;
  --on-dark: #fdf6ea;
  --on-dark-2: rgba(253, 246, 234, 0.72);
  --line: rgba(34, 21, 13, 0.14);
  --loop: #ffd60a;
  --serif: "New York", ui-serif, "Iowan Old Style", Charter, "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 18px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, figure, ol { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.4vw, 82px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; }
h3 { font-size: clamp(27px, 3vw, 38px); line-height: 1.1; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--amber); }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the top: the floor at night, a warm light where the phones stand */
.hero {
  position: relative; color: var(--on-dark); overflow: hidden;
  background:
    repeating-linear-gradient(104deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 132px),
    radial-gradient(58% 62% at 76% 58%, #8a5626 0%, #4a2c17 38%, var(--espresso) 76%);
  background-color: var(--espresso);
}
.brand { display: flex; align-items: center; gap: 12px; font: 700 23px/1 var(--serif); padding: 26px 0 0; }
.brand img { border-radius: 23%; display: block; }
.status { margin-left: auto; font: 500 13px/1 var(--sans); letter-spacing: 0.02em; color: var(--on-dark-2); border: 1px solid rgba(253, 246, 234, 0.22); border-radius: 99px; padding: 9px 14px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; padding: 44px 0 0; }
.eyebrow { font: 600 13px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.lead { margin-top: 22px; font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; color: var(--on-dark-2); max-width: 25em; }

.join { margin-top: 30px; max-width: 500px; }
.join-row { display: grid; gap: 10px; }
.join input[type=email] {
  width: 100%; height: 58px; border-radius: 29px; border: 1px solid rgba(253, 246, 234, 0.3); background: rgba(253, 246, 234, 0.08);
  color: var(--on-dark); padding: 0 24px; font: 400 17px var(--sans);
}
.join input[type=email]::placeholder { color: rgba(253, 246, 234, 0.58); }
.join input[type=email]:focus { outline: 3px solid rgba(246, 166, 35, 0.55); outline-offset: 1px; }
.join button {
  height: 58px; border: 0; border-radius: 29px; padding: 0 28px; background: var(--amber); color: var(--ink);
  font: 700 17px var(--sans); cursor: pointer; white-space: nowrap; transition: transform 0.15s, background 0.15s;
}
.join button:hover { background: #ffb941; transform: translateY(-1px); }
.join button:disabled { opacity: 0.6; }
.small { margin-top: 12px; font-size: 14px; color: var(--on-dark-2); padding-left: 4px; }
.thanks { font: 600 22px/1.3 var(--serif); padding: 12px 0; color: var(--amber); }

/* a phone drawn around a real screen of the app */
.phone {
  --w: 280px; position: relative; flex: none; width: var(--w); aspect-ratio: 720 / 1560; border-radius: calc(var(--w) * 0.168); padding: calc(var(--w) * 0.032);
  background: linear-gradient(150deg, #5b5048 0%, #17120e 34%, #0c0907 68%, #4a4038 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset, 0 50px 90px -28px rgba(0, 0, 0, 0.6), 0 22px 40px -22px rgba(0, 0, 0, 0.55);
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--w) * 0.138); background: #000; }
.phone::after { content: ""; position: absolute; top: calc(var(--w) * 0.062); left: 50%; width: 29%; height: calc(var(--w) * 0.082); transform: translateX(-50%); border-radius: 99px; background: #000; }

.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 420px; }
.hero-art .front { --w: 214px; z-index: 1; transform: rotate(3deg); transform-origin: bottom center; margin-bottom: -70px; }
.hero-art .back { --w: 182px; transform: rotate(-7deg); transform-origin: bottom center; margin-bottom: -40px; margin-right: -52px; filter: brightness(0.86); }

/* the problem: a camera roll where every video looks like the next */
main section { padding: 84px 0 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.problem p { margin-top: 20px; font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); max-width: 30em; }
.roll { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 10px; padding: 18px 16px 14px; background: #fff; border-radius: 26px; box-shadow: 0 30px 60px -30px rgba(74, 44, 23, 0.4), 0 0 0 1px var(--line); transform: rotate(1.4deg); }
.roll div { position: relative; }
.roll img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; filter: saturate(0.55) contrast(0.95); }
.roll b { position: absolute; right: 5px; top: 5px; font: 600 10px/1 var(--sans); color: #fff; background: rgba(0, 0, 0, 0.55); border-radius: 6px; padding: 3px 5px; }
.roll span { display: block; margin-top: 5px; font: 500 11px/1.2 ui-monospace, "SF Mono", Menlo, monospace; color: #8a8179; text-align: center; overflow: hidden; text-overflow: ellipsis; }

/* what it does: one large screen for each */
.does h2 { text-align: center; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: center; margin-top: 52px; }
.shot { border-radius: 36px; display: flex; justify-content: center; align-items: flex-start; padding: 44px 20px 0; overflow: hidden; height: 500px; }
.shot .phone { --w: 268px; }
.shot.sand { background: radial-gradient(70% 60% at 50% 70%, #fff7e6, var(--sand)); }
.shot.class { background: linear-gradient(rgba(30, 18, 11, 0.18), rgba(30, 18, 11, 0.5)), url(img/class.jpg) center 35% / cover no-repeat var(--clay); }
.shot.night { background: radial-gradient(70% 60% at 50% 72%, #8a5626, #3a2314 55%, var(--espresso)); }
.say .n { font: 700 15px/1 var(--sans); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--cream); margin-bottom: 18px; }
.say p:not(.n) { margin-top: 14px; font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); max-width: 24em; }

/* the loop, drawn: the yellow box of the player, the playhead going round inside it */
.loopbar { position: relative; margin-top: 30px; max-width: 380px; height: 74px; border-radius: 18px; background: var(--espresso); }
.loopbar i { position: absolute; top: 24px; height: 8px; border-radius: 4px; }
.loopbar .done { left: 18px; right: 18px; background: linear-gradient(90deg, #0a84ff 0 36%, rgba(255, 255, 255, 0.2) 36%); }
.loopbar .box { left: 36%; width: 24%; top: 15px; height: 26px; border: 4px solid var(--loop); border-radius: 7px; background: rgba(255, 214, 10, 0.18); }
.loopbar .head { left: 37%; width: 3px; top: 17px; height: 22px; background: #fff; border-radius: 2px; animation: loop 2.6s linear infinite; }
.loopbar span { position: absolute; bottom: 9px; font: 600 12px/1 var(--sans); color: var(--loop); }
.loopbar span:first-of-type { left: 18px; color: rgba(253, 246, 234, 0.75); }
.loopbar span:last-of-type { left: 36%; }
@keyframes loop { from { left: 37.5%; } to { left: 58.5%; } }
@media (prefers-reduced-motion: reduce) { .loopbar .head { animation: none; } html { scroll-behavior: auto; } }

/* the last call, on the floor again */
main .last { margin-top: 96px; padding: 0; color: var(--on-dark); background: linear-gradient(90deg, var(--espresso) 0%, rgba(30, 18, 11, 0.9) 45%, rgba(30, 18, 11, 0.62) 100%), url(img/feet.jpg) right center / auto 100% no-repeat var(--espresso); }
.last .wrap { padding-top: 84px; padding-bottom: 92px; }
.last h2 { max-width: 12em; }

footer { background: var(--espresso); color: var(--on-dark-2); font-size: 14px; border-top: 1px solid rgba(253, 246, 234, 0.12); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 22px; padding-bottom: 30px; }
footer .brand { padding: 0; font-size: 18px; color: var(--on-dark); gap: 9px; }
footer a { color: var(--on-dark-2); }
footer .ai { flex-basis: 100%; font-size: 13px; }

@media (min-width: 560px) {
  .join-row { grid-template-columns: minmax(0, 1fr) auto; gap: 0; padding: 6px; border-radius: 35px; border: 1px solid rgba(253, 246, 234, 0.3); background: rgba(253, 246, 234, 0.08); }
  .join-row:focus-within { outline: 3px solid rgba(246, 166, 35, 0.55); outline-offset: 1px; }
  .join input[type=email] { border: 0; background: none; height: 56px; }
  .join input[type=email]:focus { outline: none; }
  .join button { height: 56px; }
  .roll { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 24px 22px 18px; }
}
@media (min-width: 900px) {
  .wrap { padding: 0 40px; }
  .brand { padding-top: 34px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 30px; padding: 30px 0 0; }
  .hero-text { padding: 40px 0 90px; position: relative; z-index: 2; }
  .hero-art { height: 640px; margin: 0; align-self: end; justify-content: flex-end; }
  .hero-art .front { --w: clamp(210px, 20.5vw, 300px); margin-bottom: -84px; }
  .hero-art .back { --w: clamp(176px, 17.2vw, 252px); margin-bottom: -30px; margin-right: calc(var(--w) * -0.33); transform: rotate(-8deg); }
  main section { padding-top: 128px; }
  .two { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 72px; }
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; margin-top: 76px; }
  .feature.flip .shot { order: 2; }
  .feature.flip .say { justify-self: end; }
  .shot { height: 600px; padding-top: 60px; }
  .shot .phone { --w: 312px; }
  main .last { margin-top: 140px; background: linear-gradient(270deg, rgba(30, 18, 11, 0.08) 0, rgba(30, 18, 11, 0.45) 220px, var(--espresso) 440px), url(img/feet.jpg) right center / auto 100% no-repeat var(--espresso); }
  .last .wrap { padding-top: 120px; padding-bottom: 128px; }
}

/* the waitlist before it opens, and the three languages */
.closed { margin-top: 30px; display: inline-block; font: 600 17px/1.3 var(--sans); color: var(--ink); background: var(--amber); border-radius: 29px; padding: 17px 28px; }
.languages { display: flex; gap: 6px; margin-left: auto; }
.languages a, .languages b { padding: 6px 12px; border-radius: 99px; font-weight: 500; color: var(--on-dark-2); text-decoration: none; }
.languages b { color: var(--on-dark); background: rgba(253, 246, 234, 0.12); }
.languages a:hover { color: var(--on-dark); }

/* the form's label, its consent box and the field only robots fill */
.field-label { display: block; margin: 0 0 8px 4px; font: 600 14px/1.2 var(--sans); color: var(--on-dark-2); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0 4px; font-size: 15px; line-height: 1.35; color: var(--on-dark); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--amber); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small a { color: inherit; }
