/* Pinch landing page. Self-contained: this folder can be served as the root of pinch.tools. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #0d0f12;
  --panel: #14171c;
  --text: #eceff3;
  --muted: #98a1ae;
  --line: #262c35;
  --yellow: #ffd60a;
  --yellow-ink: #1a1500;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
}
figure {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.placeholder {
  color: var(--muted);
  font-style: italic;
}

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #3a424e;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.btn.solid {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--yellow-ink);
}
.btn.big {
  min-height: 52px;
  padding: 0 24px;
  font-size: 17px;
}
.btn:active {
  opacity: 0.8;
}
@media (hover: hover) and (pointer: fine) {
  .btn.ghost:hover {
    border-color: var(--text);
  }
  .btn.solid:hover {
    background: #ffe24a;
    border-color: #ffe24a;
  }
}
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid #5aa2ff;
  outline-offset: 3px;
}
.link {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(13, 15, 18, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: 16px;
}
.nav-links a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* ---------- device frames: a dark bezel and a soft shadow ---------- */
.frame {
  padding: 8px;
  border: 1px solid #2c333d;
  background: #090b0e;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}
.frame img {
  width: 100%;
}
.frame.ipad {
  border-radius: 22px;
}
.frame.ipad img {
  border-radius: 14px;
}
.frame.phone {
  padding: 6px;
  border-radius: 32px;
}
.frame.phone img {
  border-radius: 26px;
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(36px, 6vw, 88px) 0 clamp(40px, 6vw, 80px);
  background: radial-gradient(52rem 30rem at 8% -6%, rgba(43, 140, 255, 0.16), transparent 62%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 84px);
  letter-spacing: -0.035em;
}
.hl {
  color: var(--yellow);
}
.lede {
  max-width: 29em;
  margin-top: 24px;
  color: #c4ccd6;
  font-size: clamp(18px, 2vw, 21px);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.cta-row.center {
  justify-content: center;
}
.fine {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}
.hero-devices {
  position: relative;
  padding-bottom: 7%;
}
.hero-devices .phone {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 25%;
}

/* ---------- the nine hubs, like a home screen ---------- */
.dock {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.dock ul {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 12px;
  padding: 28px 0;
}
.dock li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.dock img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

/* ---------- the suite ---------- */
.suite {
  padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px);
}
.hub {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  margin-bottom: clamp(56px, 8vw, 104px);
}
.hub.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
}
.hub.flip .hub-copy {
  order: 2;
}
.label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.label img {
  border-radius: 6px;
}
.hub h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}
.hub ul {
  margin-top: 20px;
}
.hub li {
  position: relative;
  padding: 0 0 10px 22px;
  color: #c4ccd6;
  font-size: 17px;
}
.hub li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--yellow);
}

/* ---------- the rest: tiles of different sizes ---------- */
.more-title {
  margin: 0 0 20px;
  padding-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line);
  font-size: clamp(26px, 3vw, 34px);
}
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  grid-column: span 2;
}
.tile .label {
  margin-bottom: 8px;
}
.tile p:last-child {
  color: #c4ccd6;
  font-size: 16px;
}
.tile.training {
  grid-column: span 4;
  justify-content: space-between;
}
.tile.waste {
  grid-column: span 2;
  justify-content: space-between;
  overflow: hidden;
}
.tile.training > img,
.tile.waste > img {
  width: 100%;
  margin-top: 14px;
  border: 1px solid #343b46;
  border-radius: 10px;
  object-fit: cover;
  object-position: top;
}
.tile.training > img {
  height: 230px;
}
.tile.waste > img {
  height: 230px;
}

/* ---------- phones ---------- */
.phone-section {
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid var(--line);
}
.phone-section h2,
.about-price h2,
.final h2 {
  font-size: clamp(30px, 4.2vw, 46px);
}
.phone-copy p {
  margin-top: 14px;
  color: #c4ccd6;
}
.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 210px));
  gap: clamp(16px, 3vw, 36px);
  margin-top: clamp(28px, 4vw, 48px);
}

/* ---------- about, pricing, final ---------- */
.about-price {
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--line);
}
.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 6vw, 80px);
}
.about-price p {
  max-width: 36rem;
  margin-top: 14px;
  font-size: 18px;
}
.final {
  padding: clamp(56px, 8vw, 104px) 0;
  text-align: center;
  border-top: 1px solid var(--line);
  background: radial-gradient(40rem 18rem at 50% 100%, rgba(43, 140, 255, 0.1), transparent 64%);
}
.foot {
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.foot-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px 32px;
}
.foot .brand {
  color: var(--text);
  font-size: 21px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: flex-end;
}
.foot nav a {
  text-decoration: none;
}
.foot nav a:hover {
  color: var(--text);
}
.foot p {
  grid-column: 1 / -1;
  max-width: 46em;
}

/* ---------- tablet and phone ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .hub,
  .hub.flip,
  .two {
    grid-template-columns: minmax(0, 1fr);
  }
  .hub.flip .hub-copy {
    order: 0;
  }
  .hero-devices {
    max-width: 640px;
  }
  .nav-links {
    display: none;
  }
  .dock ul {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: 22px;
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile,
  .tile.training,
  .tile.waste {
    grid-column: span 1;
  }
  .tile.training {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 17px;
  }
  .nav-inner {
    gap: 10px;
    min-height: 60px;
  }
  .brand {
    font-size: 22px;
  }
  .nav-actions .btn {
    min-height: 44px;
    padding: 0 14px;
    font-size: 15px;
  }
  .cta-row .btn.big {
    width: 100%;
  }
  .hero-devices .phone {
    width: 30%;
    right: 0;
  }
  .dock ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dock img {
    width: 52px;
    height: 52px;
  }
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .tile.training,
  .tile {
    grid-column: 1 / -1;
  }
  .phones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .frame.phone {
    padding: 4px;
    border-radius: 20px;
  }
  .frame.phone img {
    border-radius: 16px;
  }
  .foot-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot nav {
    justify-content: flex-start;
  }
}

/* ---------- "What is the pinch?": a dictionary entry and the line that explains it ---------- */
.define {
  padding: clamp(40px, 6vw, 80px) 0;
}
.define-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
}
.entry {
  padding-left: clamp(18px, 2.4vw, 28px);
  border-left: 2px solid var(--yellow);
}
.headword {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--serif);
}
.headword b {
  font-size: clamp(36px, 4.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pron {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 20px;
}
.pos {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
}
.entry ol {
  margin: 14px 0 0;
  padding-left: 1.3em;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}
.entry li {
  padding: 0 0 12px 4px;
}
.entry li::marker {
  color: var(--muted);
  font-weight: 700;
}
.entry li em {
  color: var(--muted);
}
.example {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-style: italic;
}
.tagline {
  font-family: var(--serif);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
@media (max-width: 900px) {
  .define-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- the opening: the question, its entry, the answer, then the product ---------- */
.hero h1 {
  max-width: none;
  margin-bottom: clamp(24px, 4vw, 44px);
  font-size: clamp(46px, 7.4vw, 96px);
}
.hero .define-grid {
  align-items: start;
}
.define-side .lede {
  margin-top: 18px;
}
.define-side .cta-row {
  margin-top: 26px;
}
.hero-devices {
  max-width: 980px;
  margin: clamp(44px, 6vw, 80px) auto 0;
}

/* ---------- the opening, v2: the entry beside the product, the answer underneath ---------- */
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.hero .hero-top h1 {
  margin-bottom: clamp(20px, 3vw, 32px);
  font-size: clamp(42px, 5.6vw, 78px);
}
.hero .hero-devices {
  max-width: none;
  margin: 0;
}
.answer {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.answer .define-side .lede {
  margin-top: 0;
}
@media (max-width: 900px) {
  .hero-top {
    grid-template-columns: minmax(0, 1fr);
  }
}
