/* ==========================================================================
   Jon's App Store - iOS 6 design system
   Materials, components, and motion for the skeuomorphic era.
   ========================================================================== */

:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tap: 44px;
  --icon: 64px;
  --radius-icon: 22%;

  /* text */
  --ink: #101014;
  --ink-soft: #3d4150;
  --muted: #565d6d;
  --paper: #f4f4f6;
  --line: #d9d9e0;

  /* nav bar: glossy blue-grey */
  --bar-hi: #c2cede;
  --bar-mid: #7e93b2;
  --bar-lo: #445873;
  --bar-edge: #2a3648;
  --nav-btn-hi: #aebfcf;
  --nav-btn-lo: #53698a;
  --nav-btn-edge: #27364c;

  /* blue action buttons */
  --act-hi: #8fb2e2;
  --act-mid: #3f6bb0;
  --act-lo: #24477e;
  --act-edge: #16345e;

  /* neutral buttons */
  --neu-hi: #ffffff;
  --neu-lo: #d7d7de;
  --neu-edge: #8d919d;

  /* yellow Example chip */
  --chip-hi: #f2d972;
  --chip-lo: #c99a18;
  --chip-edge: #8f6b0e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

body {
  /* dark felt outside the device */
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 255, 255, 0.1), transparent 55%),
    radial-gradient(ellipse at 50% 115%, rgba(0, 0, 0, 0.55), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.08) 0 2px, transparent 2px 4px),
    #23252b;
  min-height: 100dvh;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* --------------------------------------------------------------------------
   Device frame (desktop) / full bleed (phone)
   -------------------------------------------------------------------------- */

.stage {
  min-height: 100dvh;
  display: block;
  padding: 0;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.phone::before,
.phone::after { display: none; }

.screen {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  height: auto;
  border-radius: 0;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.09) 0 1px, rgba(255, 255, 255, 0.045) 1px 2px, transparent 2px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0 1px, rgba(255, 255, 255, 0.05) 1px 2px, transparent 2px 3px),
    radial-gradient(ellipse at 50% 0%, #8b929e, #596070 55%, #3d424d);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Navigation bar - blue-grey gloss, beveled buttons, back chevron
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 6px 9px;
  background: linear-gradient(180deg, var(--bar-hi) 0%, var(--bar-mid) 48%, var(--bar-lo) 52%, #576d8a 100%);
  border-bottom: 1px solid var(--bar-edge);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.3);
  flex: 0 0 auto;
  z-index: 20;
}

.nav-title {
  grid-column: 2;
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-back,
.nav-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 34px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--nav-btn-edge);
  background: linear-gradient(180deg, var(--nav-btn-hi) 0%, var(--nav-btn-lo) 52%, #46597a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 1px 1px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
  cursor: pointer;
  white-space: nowrap;
}

.nav-btn:active,
.nav-back:active {
  background: linear-gradient(180deg, #5d7396 0%, var(--nav-btn-lo) 52%, #33415c 100%);
}

html[data-signed-in] a.secondary[data-auth-signin] {
  display: none;
}

.nav-back {
  margin-left: 9px;
  padding: 0 11px 0 8px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

/* arrow tip behind the back button */
.nav-back::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  transform: rotate(45deg);
  border-left: 1px solid var(--nav-btn-edge);
  border-bottom: 1px solid var(--nav-btn-edge);
  border-bottom-left-radius: 6px;
  background: linear-gradient(135deg, #5a718f 0%, var(--nav-btn-lo) 55%, #46597a 100%);
  z-index: -1;
}

.nav-actions {
  grid-column: 3;
  display: flex;
  gap: 6px;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   SpringBoard: icon grid, app icons, labels, dock
   -------------------------------------------------------------------------- */

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 10px;
  padding: 26px 14px 30px;
  flex: 1;
  align-content: start;
}

.icon-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  min-height: var(--tap);
}

.app-icon {
  position: relative;
  width: var(--icon);
  height: var(--icon);
  border-radius: var(--radius-icon);
  overflow: hidden;
  border: 1px solid rgba(6, 8, 12, 0.5);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25),
    0 1px 1px rgba(255, 255, 255, 0.15),
    0 3px 7px rgba(0, 0, 0, 0.45);
}

.app-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

/* specular gloss */
.app-icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 52%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.22) 60%, rgba(255, 255, 255, 0.05) 100%);
  border-bottom-left-radius: 50% 18%;
  border-bottom-right-radius: 50% 18%;
  pointer-events: none;
}

.app-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.icon-label {
  max-width: 78px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-shadow:
    0 -1px 1px rgba(0, 0, 0, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.4);
}

.icon-cell:active .app-icon,
.dock-cell:active .app-icon {
  transform: scale(0.92);
  filter: brightness(0.82);
  transition: transform 90ms ease-out, filter 90ms ease-out;
}

.app-icon,
.dock-cell .app-icon {
  transition: transform 160ms cubic-bezier(0.34, 1.4, 0.6, 1), filter 160ms ease-out;
}

/* dock: full-width glass shelf */
.dock {
  display: flex;
  justify-content: center;
  gap: 34px;
  padding: 9px 14px calc(11px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.18) 38%, rgba(0, 0, 0, 0.12) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 -1px 3px rgba(0, 0, 0, 0.25);
  flex: 0 0 auto;
}

.dock-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.dock-cell .app-icon {
  --icon: 52px;
}

.dock-cell .icon-label {
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   Interior pages: pinstripe canvas, grouped tables
   -------------------------------------------------------------------------- */

.sheet {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 10px 18px;
  background:
    repeating-linear-gradient(90deg, #c7cbd4 0 2px, #c2c6cf 2px 4px);
}

.group {
  margin: 10px 0;
  background: #fff;
  border: 1px solid #a2a5ae;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 #fff;
}

.group-title {
  margin: 18px 6px 7px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4c5260;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.group-row {
  display: block;
  padding: 12px;
  min-height: var(--tap);
  border-bottom: 1px solid #dddde3;
  text-decoration: none;
  font-size: 15px;
  color: var(--ink);
}

.group-row:last-child {
  border-bottom: 0;
}

.group-row strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.group-row > span,
.group-row .detail {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.group-row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

a.group-row:active {
  background: linear-gradient(180deg, #3f6bb0, #24477e);
  color: #fff;
}
a.group-row:active .detail,
a.group-row:active span {
  color: rgba(255, 255, 255, 0.85);
}

.lede {
  margin: 4px 4px 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #333a48;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--act-edge);
  background: linear-gradient(180deg, var(--act-hi) 0%, var(--act-mid) 50%, var(--act-lo) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 1px 2px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
  text-decoration: none;
  cursor: pointer;
}

.btn:active {
  background: linear-gradient(180deg, #33568e 0%, var(--act-lo) 100%);
}

.btn.secondary {
  border-color: var(--neu-edge);
  background: linear-gradient(180deg, var(--neu-hi) 0%, var(--neu-lo) 100%);
  color: #23262e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn.secondary:active {
  background: linear-gradient(180deg, #c2c2cb 0%, var(--neu-lo) 100%);
}

.btn:disabled,
button.btn:disabled {
  opacity: 0.55;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn-row .btn {
  flex: 1 1 auto;
}

/* full-width CTA pair on sheets */
.primary,
.secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--tap);
  border-radius: 9px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  margin-top: 12px;
  border: 1px solid var(--act-edge);
  background: linear-gradient(180deg, var(--act-hi) 0%, var(--act-mid) 50%, var(--act-lo) 100%);
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 1px 2px rgba(0, 0, 0, 0.25);
}

.primary:active {
  background: linear-gradient(180deg, #33568e 0%, var(--act-lo) 100%);
}

.secondary {
  margin-top: 10px;
  border: 1px solid var(--neu-edge);
  background: linear-gradient(180deg, var(--neu-hi) 0%, var(--neu-lo) 100%);
  color: #23262e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 #fff;
}

.secondary:active {
  background: linear-gradient(180deg, #c2c2cb 0%, var(--neu-lo) 100%);
}

/* sticky bottom toolbar for landing CTAs */
.cta-bar {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #8798b2 0%, #4d6079 55%, #3b4c63 100%);
  border-top: 1px solid var(--bar-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cta-bar .primary,
.cta-bar .secondary {
  margin-top: 0;
  flex: 1;
}

/* --------------------------------------------------------------------------
   App Store product page pieces
   -------------------------------------------------------------------------- */

.product-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 2px 4px;
}

.product-head .app-icon {
  --icon: 88px;
  flex: 0 0 auto;
}

.product-meta {
  min-width: 0;
}

.product-meta h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.product-meta .seller {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #4d5568;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.product-meta .tagline {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* screenshot strip - era product page shots */
.shots {
  display: flex;
  gap: 10px;
  margin: 12px 0 4px;
  padding: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.shots::-webkit-scrollbar {
  display: none;
}

.shot {
  flex: 0 0 auto;
  width: 168px;
  height: 132px;
  border-radius: 8px;
  border: 1px solid rgba(8, 10, 14, 0.55);
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #3c434f, #20242c);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.shot svg {
  display: block;
  width: 100%;
  height: 100%;
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 40%);
  pointer-events: none;
}

/* hero screen mock on landings */
.hero-art {
  position: relative;
  height: 168px;
  margin: 6px 0 4px;
  border-radius: 8px;
  border: 1px solid rgba(8, 10, 14, 0.55);
  overflow: hidden;
  background: linear-gradient(180deg, #3c434f, #20242c);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Chips, misc copy helpers
   -------------------------------------------------------------------------- */

.example-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4a3803;
  background: linear-gradient(180deg, var(--chip-hi), var(--chip-lo));
  border: 1px solid var(--chip-edge);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 1px 1px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.empty {
  padding: 22px 12px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #a2a5ae;
  border-radius: 10px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #2f4d7d;
  text-decoration: none;
}

.lead {
  font-size: 15px;
  color: var(--ink-soft);
}

.page {
  padding: 4px 2px 8px;
}

.page h1 {
  margin: 4px 2px 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.page h2 {
  margin: 14px 6px 7px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4c5260;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 8px;
}

/* --------------------------------------------------------------------------
   Demo chrome (Example flows)
   -------------------------------------------------------------------------- */

.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 9px 10px;
  background: linear-gradient(180deg, #fdf3d0, #f0e0a8);
  border-bottom: 1px solid #c8b46a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.demo-bar p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #6d5a10;
}

.list-item {
  padding: 12px;
  border-bottom: 1px solid #dddde3;
  background: #fff;
}

.list-item:first-child {
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}

.list-item:last-child {
  border-bottom: 0;
  border-bottom-left-radius: 9px;
  border-bottom-right-radius: 9px;
}

.list-item h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
}

.list-item .muted {
  margin: 0;
  font-size: 12.5px;
}

.list-wrap {
  border: 1px solid #a2a5ae;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.role-switch {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.success-panel {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #a2a5ae;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 #fff;
}

.success-panel h2 {
  margin: 10px 0 6px;
  font-size: 17px;
  font-weight: 700;
}

.not-found {
  text-align: center;
  padding-top: 30px;
}

/* --------------------------------------------------------------------------
   Forms - iOS 6 inset fields
   -------------------------------------------------------------------------- */

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4c5260;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

input,
select,
textarea {
  min-height: var(--tap);
  padding: 10px 12px;
  border: 1px solid #9a9daa;
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font);
  background: #fff;
  color: var(--ink);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.4);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #3f6bb0;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.12),
    0 0 0 2px rgba(63, 107, 176, 0.35);
}

/* --------------------------------------------------------------------------
   Overlay sheet (Living Resume overlay)
   -------------------------------------------------------------------------- */

.overlay-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10, 12, 16, 0.55);
  z-index: 60;
}

.overlay-backdrop.open {
  display: flex;
}

.overlay-sheet {
  width: min(100%, 430px);
  max-height: 82dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px 12px 0 0;
  border: 1px solid #a2a5ae;
  border-bottom: 0;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: sheet-up 240ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: linear-gradient(180deg, var(--bar-hi), var(--bar-mid) 48%, var(--bar-lo) 52%, #576d8a);
  border-bottom: 1px solid var(--bar-edge);
}

.overlay-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

.resume-sheet section + section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.resume-sheet h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.resume-sheet p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Living Resume demo pieces
   -------------------------------------------------------------------------- */

.role-block {
  list-style: none;
  padding: 13px 12px;
  margin: 10px 0;
  background: #fff;
  border: 1px solid #a2a5ae;
  border-radius: 10px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 #fff;
}

.role-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4c5260;
}

.role-block h3 {
  margin: 4px 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.role-block ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.role-block ul li + li {
  margin-top: 4px;
}

.widget {
  margin: 10px 0;
  border: 1px solid #b6b9c2;
  border-radius: 8px;
  overflow: hidden;
  background: #f6f7f9;
}

.widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #3a4050;
  background: linear-gradient(180deg, #eef0f4, #d5d8e0);
  border-bottom: 1px solid #c3c6cf;
}

.widget__steps {
  display: flex;
  gap: 6px;
  padding: 9px 10px 0;
}

.widget__step {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #d3d5db;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.12);
}

.widget__step.is-active,
.widget__step.is-done {
  background: linear-gradient(180deg, var(--act-hi), var(--act-mid));
  box-shadow: none;
}

.widget__body {
  padding: 10px;
}

.widget__label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.widget__panel {
  min-height: 40px;
  padding: 10px;
  background: #fff;
  border: 1px solid #d3d5db;
  border-radius: 6px;
  font-size: 14px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.widget__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.widget__actions .btn {
  flex: 1;
  min-height: 38px;
  font-size: 14px;
}

.email-show-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--act-edge);
  background: linear-gradient(180deg, var(--act-hi) 0%, var(--act-mid) 50%, var(--act-lo) 100%);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 1px 2px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.hidden-email {
  font-weight: 700;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Motion - intentional, reduced-motion aware
   -------------------------------------------------------------------------- */

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes sheet-up {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.screen > .sheet,
.screen > .icon-grid {
  animation: page-in 260ms cubic-bezier(0.25, 0.7, 0.35, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .icon-cell:active .app-icon,
  .dock-cell:active .app-icon {
    transform: none;
    filter: none;
  }
}


@media (min-width: 641px) {
  .screen {
    margin: 24px auto;
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 20px 60px rgba(0,0,0,.35);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f7;
    --ink-soft: #c7c7cc;
    --muted: #a1a1a8;
    --paper: #1c1c1e;
    --line: #3a3a3c;
    --bar-hi: #9fb3d4;
    --bar-mid: #5e79a3;
    --bar-lo: #324a6f;
    --neu-hi: #48484a;
    --neu-lo: #2c2c2e;
    --neu-edge: #3a3a3c;
  }
  body, .screen {
    background: repeating-linear-gradient(0deg, #000 0 1px, #111 1px 3px), repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px), #000;
  }
  .stage { background: repeating-linear-gradient(0deg, #000 0 1px, #111 1px 3px), #000; }
  .dock { background: linear-gradient(180deg, #3b3d43, #1b1c20 50%, #0a0a0c); border-color: #000; }
  .group, .card { background: #1c1c1e; border-color: #3a3a3c; }
  .group-row { border-color: #3a3a3c; }
  input, textarea, select { background: #2c2c2e; color: var(--ink); border-color: #3a3a3c; }
  pre, code, .callout { background: #2c2c2e; color: var(--ink); border-color: #3a3a3c; }
  .sheet, .group, .list-wrap, .widget, .success-panel, .overlay-sheet, .role-block,
  .product-head, .demo-bar, .not-found, .empty, .card, .search-results {
    background: #1c1c1e;
    border-color: #3a3a3c;
    color: var(--ink);
  }
  .content, .page, .hero-art, .shot, .shots, .cta-bar {
    background-color: #000;
    background-image: repeating-linear-gradient(0deg, #000 0 1px, #111 1px 3px);
  }
  .list-item, .widget__panel, .widget__body, .overlay-body, .resume-sheet section,
  .role-block ul, .example-chip, .badge, .badge-row {
    background: #2c2c2e;
    border-color: #3a3a3c;
    color: var(--ink);
  }
  .group-title, .product-meta .seller, .product-meta .tagline, .muted, .empty,
  .lead, .demo-bar p, .list-item .muted, .role-eyebrow, .widget__label {
    color: var(--ink-soft);
    text-shadow: none;
  }
  .page h1, .page h2, .group-row strong, .product-meta h2, .list-item h3,
  .success-panel h2, .role-block h3, .overlay-header, .resume-sheet h2 {
    color: var(--ink);
    text-shadow: none;
  }
  .group-row, .list-item, .widget__step, .widget__head, .overlay-header {
    border-color: #3a3a3c;
  }
  .group-row:active, .list-item:active { background: #2c2c2e; }
  .not-found, .success-panel { box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
  .overlay-backdrop { background: rgba(0,0,0,.72); }
  input, select, textarea { background: #2c2c2e; color: var(--ink); border-color: #3a3a3c; }
  input::placeholder, textarea::placeholder { color: #a1a1a8; }
  .btn.secondary, .secondary, .email-show-btn {
    background: linear-gradient(180deg, #56565a, #3a3a3c);
    color: var(--ink);
    text-shadow: 0 -1px 0 rgba(0,0,0,.6);
  }
  .example-chip { color: #f2d972; }
  .hero-art::after, .app-icon::before { background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.08)); }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .primary, .secondary, .nav-btn, .nav-back, .group-row, .icon-cell, .dock-cell, .card-link, .nav-link, .tabbar a, .bottom-nav a { transition: transform 120ms ease-out, filter 120ms ease-out; }
  .btn:active, .primary:active, .secondary:active, .nav-btn:active, .nav-back:active, .group-row:active, .icon-cell:active, .dock-cell:active, .card-link:active, .nav-link:active, .tabbar a:active, .bottom-nav a:active { transform: scale(0.97); }
  .screen { animation: mts-in 220ms ease-out; }
  @keyframes mts-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
