/* getpadwork.app: the app's hardware look (warm grey body, keys, an orange-on-black LCD) on a page.
   System fonts only: nothing is loaded from other servers. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --bg: #d3d0c9; --plate: #c9c6be; --plate-hi: #dcd9d2; --plate-dark: #b3afa6; --line: #b6b2a9;
  --key-top: #f4f3ef; --key-bot: #dedbd4; --key-edge: #aaa59b;
  --ink: #2a2a2c; --ink-2: #4a4741; --ink-3: #6f6b63;
  --lcd: #151715; --orange: #ff7a2f; --orange-2: #e5621a;
  --pad: clamp(18px, 4.5vw, 56px); --max: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 16px/1.55 var(--font); color: var(--ink);
  background: radial-gradient(1200px 600px at 70% -10%, #e2dfd8, transparent 60%), var(--bg);
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* header */
.top { display: flex; align-items: center; gap: 18px; padding-block: 22px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .3px; text-decoration: none; }
.logo small { font-weight: 450; font-size: 14px; color: var(--ink-3); letter-spacing: 0; }
.top nav { margin-left: auto; display: flex; gap: 22px; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }

/* keys (buttons) */
.key {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 10px;
  font: 600 15px var(--font); color: var(--ink); text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, var(--key-top), var(--key-bot)); border: 1px solid var(--key-edge);
  box-shadow: 0 4px 0 var(--key-edge), 0 7px 12px rgba(40, 30, 10, .22), inset 0 1px 0 #fff;
  transition: transform .06s, box-shadow .06s;
}
.key:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--key-edge), 0 3px 6px rgba(40, 30, 10, .2), inset 0 1px 0 #fff; }
.key.orange { background: linear-gradient(180deg, #ff8c4a, var(--orange-2)); border-color: #b94c12; color: #fff;
  box-shadow: 0 4px 0 #b94c12, 0 7px 12px rgba(120, 50, 10, .3), inset 0 1px 0 rgba(255, 255, 255, .45); }
.key.orange:active { box-shadow: 0 1px 0 #b94c12, 0 3px 6px rgba(120, 50, 10, .3), inset 0 1px 0 rgba(255, 255, 255, .45); }
.key .led { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 60px); align-items: center; padding-block: clamp(24px, 6vw, 72px) clamp(36px, 6vw, 80px); }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -1.5px; margin: 0 0 20px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--orange-2); }
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); margin: 0 0 30px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 16px 14px; align-items: center; }
.note { font: 12.5px var(--mono); color: var(--ink-3); margin-top: 20px; }
.lcd { display: inline-block; background: var(--lcd); color: var(--orange); font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 6px; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .6); margin-bottom: 22px; }

/* the screenshot sits on a plate with screws, like the device's panel */
.plate { position: relative; padding: 16px; border-radius: 18px; background: linear-gradient(180deg, var(--plate-hi), var(--plate));
  border: 1px solid var(--plate-dark); box-shadow: 0 30px 60px -20px rgba(40, 30, 10, .45), inset 0 1px 0 rgba(255, 255, 255, .7); }
.plate::before, .plate::after { content: ''; position: absolute; top: 6px; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #eee, #8e8a82); }
.plate::before { left: 6px; } .plate::after { right: 6px; }
.plate img, .plate video { border-radius: 10px; border: 1px solid var(--plate-dark); width: 100%; height: auto; background: var(--lcd); }

/* sections */
section { padding: clamp(40px, 6vw, 84px) 0; }
.label { font: 600 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.6px; margin: 0 0 16px; font-weight: 800; }
h3 { font-size: 19px; margin: 0 0 8px; }
.intro { color: var(--ink-2); max-width: 40em; margin: 0 0 36px; font-size: 17px; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(44px, 6vw, 80px); }
.feature:nth-child(even) .plate { order: -1; }
.feature p { color: var(--ink-2); margin: 0 0 12px; }
.feature ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
.feature li { margin: 4px 0; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 22px 22px 20px; border-radius: 14px; background: linear-gradient(180deg, var(--plate-hi), var(--plate)); border: 1px solid var(--plate-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65); }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); margin-bottom: 14px; box-shadow: 0 0 8px rgba(255, 122, 47, .7); }

.dark { background: var(--lcd); color: #ecebe6; }
.dark .label { color: #8d8a83; }
.dark .intro, .dark .card p { color: #b9b6ae; }
.dark .card { background: #1c1e1c; border-color: #2c2f2c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.dark h2 em { font-style: normal; color: var(--orange); }

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; gap: 10px; }
.faq summary::before { content: '+'; font: 600 16px var(--mono); color: var(--orange-2); width: 14px; }
.faq details[open] summary::before { content: '–'; }
.faq details p { margin: 10px 0 0 24px; color: var(--ink-2); font-size: 15px; }

.beta { text-align: center; }
.beta .intro { margin: 0 auto 28px; }
.beta .cta { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 30px 0 46px; font-size: 13px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; }
footer a { color: var(--ink-2); }
footer .tm { flex-basis: 100%; }

/* legal pages */
.doc { max-width: 760px; padding-bottom: 60px; }
.doc h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.8px; margin: 18px 0 6px; }
.doc h2 { font-size: 21px; margin: 34px 0 10px; letter-spacing: 0; }
.doc p, .doc li { color: var(--ink-2); }
.doc .meta { font: 12.5px var(--mono); color: var(--ink-3); }

@media (max-width: 860px) {
  .hero, .feature { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) .plate { order: 0; }
  .grid, .faq { grid-template-columns: minmax(0, 1fr); }
  .plate { padding: 9px; border-radius: 13px; }
  .lcd { font-size: 10.5px; letter-spacing: .08em; }
  .key { padding: 12px 18px; }
  .top nav a.hide-s { display: none; }
}
.nb { white-space: nowrap; }

/* the logo plays itself: the lit keys come on one by one, the way a finger draws P (on load and on hover) */
.logo .mark { width: 30px; height: 30px; display: block; }
.mark .off { fill: #3a3c3a; }
.mark .on { fill: #ff7a2f; transform-box: fill-box; transform-origin: center; animation: key .42s cubic-bezier(.3, .7, .3, 1) calc(.25s + var(--i) * .085s) both; }
.logo:hover .mark .on { animation-name: key2; animation-delay: calc(var(--i) * .06s); }
@keyframes key { 0% { fill: #3a3c3a; transform: scale(.82); } 45% { fill: #ffc29a; transform: scale(1.06); } 100% { fill: #ff7a2f; transform: scale(1); } }
@keyframes key2 { 0% { fill: #3a3c3a; transform: scale(.82); } 45% { fill: #ffc29a; transform: scale(1.06); } 100% { fill: #ff7a2f; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .mark .on { animation: none !important; } }

/* "notify me" */
.notify { text-align: center; padding-bottom: 0; }
.notify .intro { margin: 0 auto 24px; }
.nform { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; max-width: 560px; margin: 0 auto; }
.nform input[type=email] { flex: 1 1 260px; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--key-edge); font: 16px var(--font);
  color: var(--ink); background: #f6f5f1; box-shadow: inset 0 2px 4px rgba(60, 50, 30, .15); }
.hp { position: absolute; left: -9999px; }

/* the hero's playable keypad (fun.js) */
.tryp { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.tryp .note { margin: 0; line-height: 1.5; }
.minipad { display: grid; grid-template-columns: repeat(3, 34px); gap: 6px; padding: 9px; border-radius: 12px; background: #1a1b1a;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08); }
.minipad button { width: 34px; height: 30px; border-radius: 7px; border: 0; cursor: pointer; font: 600 11px var(--mono); color: #9a978f;
  background: linear-gradient(180deg, #3e403e, #2f312f); box-shadow: 0 3px 0 #151615, inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .05s, box-shadow .05s; }
.minipad button:active, .minipad button.lit { transform: translateY(2px); box-shadow: 0 1px 0 #151615, inset 0 1px 0 rgba(255, 255, 255, .08); }
.minipad button.lit { animation: padlit .35s ease-out; }
@keyframes padlit { 0% { background: #ffc29a; color: #1a1b1a; } 30% { background: #ff7a2f; color: #1a1b1a; } 100% { background: linear-gradient(180deg, #3e403e, #2f312f); } }
/* the cards' dots (fun.js) */
.card .dot { transition: background .25s, box-shadow .25s, transform .25s; }
.card .dot.wait { background: #9a958b; box-shadow: none; transform: scale(.8); }
.dark .card .dot.wait { background: #3a3c3a; }
.card .dot.on { transform: scale(1); }
.lcd { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .minipad button.lit { animation: none; } }
@media (pointer: coarse) { .tryp .keys { display: none; } }
