/* learn.bytassh.com. Creations by Tassh world: silver metal, black ink, Oswald caps.
   Shapes: interactive = full pill, panels = 22px, phones = 34px. Light only (brand). */
@font-face { font-family: "Oswald"; src: url("/fonts/oswald.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("/fonts/hanken.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken"; src: url("/fonts/hanken-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #d6d4d8;
  --paper: #eeedf0;
  --ink: #151418;
  --ink-2: #333137;
  --ink-3: #4f4d54;
  --line: rgb(21 20 24 / .2);
  --error: #9e1030;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --wrap: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; isolation: isolate; }
body { position: relative; z-index: 0; }
body {
  margin: 0; min-height: 100dvh; color: var(--ink);
  font: 400 17px/1.55 "Hanken", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Fixed metal layer (a pseudo-element, so phones don't repaint it on scroll). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--bg) url("/img/metal-silver.webp") center / cover no-repeat;
}
@media (max-width: 760px) { body::before { background-image: url("/img/metal-silver-tile.webp"); background-size: 100% auto; background-repeat: repeat-y; } }
::selection { background: var(--ink); color: var(--paper); }
input, textarea { caret-color: var(--ink); }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, .done__title, dt, .steps__n {
  font-family: "Oswald", "Arial Narrow", sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: .01em; text-wrap: balance;
}
h1, h2, h3 { margin: 0; }
p { margin: 0; }
p, dd, li, summary, label { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 40px;
  min-height: min(100dvh, 940px);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 64px); align-items: center;
}
.logo { display: inline-block; width: 112px; margin-bottom: clamp(20px, 3.4vh, 40px); }
.logo img { width: 100%; }
h1 { font-size: clamp(2.7rem, 4.3vw + .6rem, 4.6rem); line-height: .98; max-width: 13ch; }
.lede { margin-top: 22px; font-size: clamp(1.08rem, .4vw + 1rem, 1.25rem); color: var(--ink-2); max-width: 40ch; }

/* ---------- forms ---------- */
.join { margin-top: 30px; max-width: 540px; }
.join label, .ask label { display: block; font-weight: 650; font-size: .95rem; margin-bottom: 8px; }
.join__row { display: flex; gap: 8px; }
.join input[type=email], .ask textarea {
  flex: 1; min-width: 0; height: 58px; padding: 0 24px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: inherit; font-size: 1.05rem;
  transition: box-shadow .15s ease;
}
.join input::placeholder, .ask textarea::placeholder { color: #67656c; }
.join input:focus, .ask textarea:focus { outline: 0; box-shadow: 0 0 0 4px rgb(21 20 24 / .22); }
.join input[aria-invalid=true] { border-color: var(--error); }
.btn {
  height: 58px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper); cursor: pointer; white-space: nowrap;
  font: 600 1.08rem/1 "Oswald", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .05em;
  transition: transform .12s var(--ease-out), background-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { cursor: progress; opacity: .7; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #312e36; } .btn--ghost:hover { background: var(--ink); color: var(--paper); } }
.btn--ghost { background: transparent; color: var(--ink); height: 50px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join__error { margin-top: 10px; color: var(--error); font-weight: 600; font-size: .95rem; }
.join__note { margin-top: 12px; font-size: .9rem; color: var(--ink-3); }

/* success panel, replaces a form */
.done {
  margin-top: 30px; max-width: 540px; padding: 24px; border-radius: 22px;
  background: var(--paper); border: 2px solid var(--ink); outline: 0;
  animation: settle .22s var(--ease-out) both;
}
.done__title { font-size: 1.7rem; line-height: 1.05; }
.done__text { margin-top: 8px; color: var(--ink-2); }
.ask { margin-top: 18px; }
.ask textarea { display: block; width: 100%; height: auto; min-height: 92px; padding: 14px 18px; border-radius: 18px; resize: vertical; line-height: 1.45; }
.ask .btn { margin-top: 12px; }
.done--thanks .done__text { margin-top: 6px; }
@keyframes settle { from { opacity: 0; transform: translateY(6px); } }

/* ---------- hero phones ---------- */
.hero__stage { position: relative; aspect-ratio: 1 / 1.06; width: 100%; max-width: 560px; justify-self: center; }
.wings { position: absolute; left: -14%; width: 128%; max-width: none; top: 22%; opacity: .92; }
.phone {
  position: absolute; margin: 0; width: 43%; border-radius: 34px; overflow: hidden;
  border: 7px solid var(--ink); background: var(--ink);
  box-shadow: 0 34px 60px -24px rgb(44 40 56 / .55), 0 2px 6px rgb(44 40 56 / .18);
  transform: rotate(var(--r, 0deg));
}
.phone img { width: 100%; }
.phone--c { left: 28.5%; top: 2%; z-index: 3; --r: 0deg; width: 45%; }
.phone--l { left: 2%; top: 13%; z-index: 2; --r: -9deg; }
.phone--r { right: 1%; top: 17%; z-index: 1; --r: 8deg; }
@media (prefers-reduced-motion: no-preference) {
  .phone { animation: fan .64s var(--ease-out) both; }
  .phone--c { animation-delay: .08s; }
  .phone--l { animation-delay: .15s; }
  .phone--r { animation-delay: .22s; }
}
@media (prefers-reduced-motion: reduce) { .phone { animation: fade .3s ease both; } .done { animation: fade .2s ease both; } }
@keyframes fan { from { opacity: 0; transform: translateY(48px) rotate(0deg) scale(.96); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- sections ---------- */
section:not(.hero) { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--gutter) 0; }
h2 { font-size: clamp(2.2rem, 2.6vw + 1rem, 3.6rem); line-height: 1; }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.steps__n { display: block; font-size: 3.4rem; line-height: 1; }
.steps h3 { margin-top: 14px; font-size: 1.14rem; font-weight: 700; line-height: 1.25; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 1rem; }

.boss { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.boss__pic { position: relative; aspect-ratio: 1240 / 700; }
.boss__wings { position: absolute; inset: 6% 0 auto 0; width: 100%; }
.boss__face {
  position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  transform: translate(-50%, -50%); border: 5px solid var(--ink);
  -webkit-user-drag: none; user-select: none;
}
.boss__copy p { margin-top: 18px; font-size: 1.15rem; color: var(--ink-2); max-width: 52ch; }

.perks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.perks dl { margin: 36px 0 0; display: grid; gap: 26px; }
dt { font-size: 1.5rem; line-height: 1.1; }
dd { margin: 6px 0 0; color: var(--ink-2); }
.faq__h { font-size: clamp(1.6rem, 1vw + 1.2rem, 2.1rem); margin-bottom: 14px; }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 650; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--ink);
  transition: transform .2s var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-2); max-width: 60ch; }

.final { text-align: center; padding-bottom: 40px !important; }
.final h2 { font-size: clamp(2.4rem, 3.6vw + 1rem, 4.6rem); max-width: 16ch; margin: 0 auto; }
.final .join, .final .done { margin: 34px auto 0; text-align: left; }

.foot {
  max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter) 36px;
  display: flex; gap: 20px; align-items: center; font-size: .86rem; color: var(--ink-3);
}
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__legal { margin-left: auto; opacity: .75; font-size: .78rem; }

/* ---------- sticky phone bar ---------- */
.dock { display: none; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 22px; gap: 26px; }
  .logo { width: 92px; margin-bottom: 18px; }
  .lede { margin-top: 16px; }
  .join { margin-top: 22px; }
  .join__row { flex-direction: column; }
  .join input[type=email] { flex: none; width: 100%; }
  .join input[type=email], .btn { height: 56px; }
  .btn { width: 100%; }
  .hero__stage { max-width: 380px; width: 92%; }
  .steps { grid-template-columns: 1fr; gap: 22px; margin-top: 32px; }
  .steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 8px; }
  .steps__n { font-size: 2.6rem; grid-row: span 2; }
  .steps h3 { margin-top: 2px; }
  .boss, .perks { grid-template-columns: 1fr; }
  .boss__pic { max-width: 420px; width: 100%; margin: 0 auto; }
  .faq summary { font-size: 1.05rem; }
  .foot { flex-wrap: wrap; padding-bottom: 104px; }
  .dock {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    background: rgb(214 212 216 / .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .26s var(--ease-drawer);
  }
  .dock.on { transform: translateY(0); }
  .btn--dock { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dock { transition: opacity .2s ease; transform: none; opacity: 0; pointer-events: none; }
  .dock.on { opacity: 1; pointer-events: auto; }
}
