/* ============================================================================
   tinyyy studio — landing page styles
   Hand-written rebuild of a design-compiler artifact. Section order follows
   PLAN.md §3.2. All hex/timing values transcribed verbatim from the original.
   Tokens, themes, brand letters, motion primitives, language toggle, footer
   and theme pill live in shared.css (the suite-wide design system, linked
   before this file); only the studio-specific styles follow.
   ============================================================================ */

/* 1. Layout ------------------------------------------------------------------ */

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* 2. Studio-only motion / interaction primitives ------------------------------ */

.hi-btn { display: inline-flex; align-items: center; }
.hi-wave {
  display: inline-block; max-width: 0; opacity: 0; overflow: hidden;
  transform: translateX(-4px);
  transition: all .35s cubic-bezier(.34, 1.8, .5, 1);
}
.hi-btn:hover .hi-wave { max-width: 1.4em; opacity: 1; transform: translateX(0); margin-left: 7px; }

.namei { position: relative; display: inline-block; }
.namei .role, .namei .real { display: block; white-space: nowrap; transition: opacity .25s ease; }
.namei .real { position: absolute; left: 0; top: 0; opacity: 0; }
.about-card:hover .role { opacity: 0; }
.about-card:hover .real { opacity: 1; }

@keyframes glyphPop {
  0% { opacity: 0; transform: scale(0) rotate(-25deg); }
  65% { opacity: 1; transform: scale(1.18) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.glyph {
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: -0.1em;
  animation: glyphPop .7s cubic-bezier(.3, 1.6, .4, 1) both;
  transition: scale .3s cubic-bezier(.34, 1.7, .5, 1), rotate .3s cubic-bezier(.34, 1.7, .5, 1);
  cursor: default;
}
.glyph:hover { scale: 1.18; rotate: 9deg; }

@property --flip { syntax: "<number>"; inherits: true; initial-value: 0; }
.pc { perspective: 1400px; cursor: pointer; position: relative; --flip: 0; transition: --flip .7s cubic-bezier(.5, .15, .2, 1); }
.pc:hover, .pc:focus-visible { --flip: 1; }
.pc:focus-visible { outline: none; }
.pc-sh {
  position: absolute; inset: 0; z-index: -1;
  --lift: sin(calc(var(--flip) * 180deg));
  transform: translate(calc(var(--lift) * -9px), calc(var(--lift) * 2.5px)) scaleX(max(.06, cos(calc(var(--flip) * 180deg)), calc(0 - cos(calc(var(--flip) * 180deg)))));
  opacity: calc(1 - .38 * var(--lift));
}
.pc-sh::before {
  content: ""; position: absolute; inset: 0; border-radius: 5px;
  background: rgba(30, 24, 16, .17);
  transform: translate(-4px, 1px) rotate(1.2deg); transform-origin: bottom left;
  filter: blur(calc(2.5px + 6px * var(--lift)));
}
.pc-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(calc(var(--flip) * 180deg)); }
.pc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 5px; overflow: hidden; box-sizing: border-box; }
.pc-back { transform: rotateY(180deg); }

/* 3. Header / nav ------------------------------------------------------------ */

.site-header {
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 40px;
}
.brand-nav { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.5px; }
.brand-nav .yyy-pinch { font-size: 17px; }

.site-nav {
  display: flex; gap: 30px; font-size: 14.5px; font-weight: 500;
  align-items: center; color: var(--muted);
}
.site-nav a { cursor: pointer; transition: color .2s; text-decoration: none; color: inherit; }
.site-nav a:hover { color: var(--ink); }

.site-nav a.hi-btn {
  background: var(--ink); color: var(--bg); padding: 10px 20px;
  border-radius: 99px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  text-decoration: none;
}
.site-nav a.hi-btn:hover { color: var(--bg); }

/* 4. Hero -------------------------------------------------------------------- */

.hero { max-width: 1240px; margin: 0 auto; padding: 96px 40px 84px; text-align: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800; font-size: 62px;
  line-height: 1.22; letter-spacing: -1.5px; margin: 0 auto 40px; max-width: 980px;
}
.hero-cta { display: flex; gap: 26px; align-items: center; justify-content: center; }
.cta-primary {
  background: var(--ink); color: var(--btnfg); font-weight: 700; font-size: 15.5px;
  padding: 16px 32px; border-radius: 14px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16); text-decoration: none;
}
.cta-secondary {
  font-size: 15.5px; font-weight: 700; color: var(--ink); cursor: pointer;
  border-bottom: 2px solid var(--muted2); transition: border-color .2s;
  padding-bottom: 1px; text-decoration: none;
}
.cta-secondary:hover { border-bottom-color: var(--ink); }

/* 5. Section headers (shared) ------------------------------------------------ */

.section { max-width: 1240px; margin: 0 auto; padding: 30px 40px 90px; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 46px;
  letter-spacing: -1.5px; margin: 0 0 4px;
}
.section-head p { font-size: 15px; color: var(--muted); margin: 0; }

/* 6. Apps -------------------------------------------------------------------- */

/* The shelf: one real app, then dashed slots for the ten that don't exist yet.
   Bleeds to the viewport edge so the cut-off card invites sideways scrolling. */
.apps-row {
  display: flex; align-items: stretch; gap: 22px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  margin-inline: calc(50% - 50vw);
  /* 580px = half the 1160px section content width; scroll-padding %s resolve
     against the scrollport, so both are expressed in viewport units */
  padding: 30px max(40px, 50vw - 580px) 18px;
  scroll-padding-inline: max(40px, 50vw - 580px);
  scrollbar-width: none;
}
.apps-row::-webkit-scrollbar { display: none; }

.app-card {
  position: relative; flex: none; width: min(380px, 86vw);
  background: var(--card); border-radius: 22px;
  display: flex; flex-direction: column; scroll-snap-align: start;
  cursor: pointer; box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  text-decoration: none; color: inherit; /* the card is an <a> to the Sweepy page */
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0, 0, 0, .12); }
.app-card:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; }
.app-badge {
  position: absolute; top: -18px; left: -14px; width: 74px; height: 74px; z-index: 3;
  background: var(--ink); border: 4px solid var(--card);
  border-radius: 46% 54% 55% 45% / 52% 46% 54% 48%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--btnfg); line-height: 1; transform: rotate(-6deg);
}
.app-badge span { font-family: var(--font-body); font-size: 26px; font-weight: 800; }
.app-body { padding: 62px 30px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app-title-row { display: flex; align-items: center; gap: 12px; }
.app-icon { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .22)); transform: rotate(-4deg); }
.app-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 30px; margin: 0; letter-spacing: -0.8px; }
.app-desc { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; }
.app-cta { font-weight: 700; font-size: 14px; margin-top: auto; padding-top: 8px; }

/* Empty slots — numbered like the real card, waiting on the idea board */
.app-slot {
  position: relative; flex: none; width: min(380px, 86vw);
  border: 2px dashed var(--line); border-radius: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 28px 20px; text-decoration: none; color: inherit; scroll-snap-align: start;
  transition: transform .35s cubic-bezier(.34, 1.9, .5, 1), border-color .25s ease;
}
.app-slot:nth-child(even) { rotate: .6deg; }
.app-slot:nth-child(odd) { rotate: -.5deg; }
.app-slot:hover, .app-slot:focus-visible { transform: translateY(-3px); border-color: var(--muted2); }
.app-slot:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; }
.slot-badge {
  position: absolute; top: -14px; left: -10px; width: 58px; height: 58px;
  border: 2px dashed var(--muted2); border-radius: 46% 54% 55% 45% / 52% 46% 54% 48%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: var(--muted2); line-height: 1;
  transform: rotate(-6deg);
  transition: color .25s ease, border-color .25s ease;
}
.app-slot:hover .slot-badge, .app-slot:focus-visible .slot-badge { color: var(--y); border-color: var(--y); }
.slot-icon {
  width: 52px; height: 52px; color: var(--muted2);
  transform: rotate(-4deg); opacity: 0.3; transition: opacity .25s ease;
}
.app-slot:hover .slot-icon, .app-slot:focus-visible .slot-icon { opacity: 0.3; }
.slot-words { position: relative; display: inline-block; font-size: 12.5px; color: var(--muted2); }
.slot-wait, .slot-cta { display: block; white-space: nowrap; transition: opacity .25s ease; }
.slot-cta {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  opacity: 0; font-weight: 700; color: var(--ink);
}
.app-slot:hover .slot-wait, .app-slot:focus-visible .slot-wait { opacity: 0; }
.app-slot:hover .slot-cta, .app-slot:focus-visible .slot-cta { opacity: 1; }

/* 7. Perks + guidelines ------------------------------------------------------ */

.perks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.info-card { background: var(--card); border-radius: 22px; padding: 46px 52px; box-shadow: 0 4px 16px rgba(0, 0, 0, .06); }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted2); margin: 0 0 6px; }
.info-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.5px; margin: 0 0 28px; }
.info-list { display: flex; flex-direction: column; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-blob {
  flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
}
.check-chip {
  flex: none; width: 36px; height: 36px; background: var(--panel); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: var(--y);
}
.info-item-title { font-weight: 700; font-size: 15.5px; margin-bottom: 2px; }
.info-item-desc { font-size: 14px; line-height: 1.6; color: var(--muted); }
.perk-link { color: var(--muted); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--muted2); }
.perk-link:hover { color: var(--ink); }
.footnote { font-size: 13px; line-height: 1.6; color: var(--muted2); margin: 24px 0 0; border-top: 1px solid var(--line); padding-top: 18px; }

/* 8. Big card: idea board + form ------------------------------------------- */

.big-card { background: var(--card); border-radius: 22px; padding: 70px; box-shadow: 0 4px 16px rgba(0, 0, 0, .06); margin-top: 24px; }
.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.board-head h3 { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.5px; margin: 0; }
.board-intro { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 400px; text-align: right; }
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 10px 4px 4px; }

.note { position: relative; display: flex; min-height: 148px; }
.note::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 3px;
  background: rgba(30, 24, 16, .17);
  transform: translate(-2px, 1px) rotate(1.2deg); transform-origin: bottom left; filter: blur(2px);
}
.note-body {
  flex: 1; background: #FFE9A8; color: #6b5200; border-radius: 3px;
  padding: 26px 22px 16px; display: flex; flex-direction: column; gap: 18px;
}
.note-text { font-family: var(--font-hand); font-size: 23px; line-height: 1.22; font-weight: 600; }
.note-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.note-by { font-size: 12px; font-weight: 700; opacity: .62; }
.vote-btn {
  flex: none; display: flex; align-items: center; font-family: var(--font-body);
  font-weight: 700; font-size: 13px; padding: 7px 13px; border-radius: 99px; cursor: pointer;
  border: none; background: rgba(255, 255, 255, .6); color: inherit;
}
.vote-btn[aria-pressed="true"] { background: var(--ink); color: var(--btnfg); }
.vote-btn .caret {
  display: inline-block; font-size: 10px; line-height: 1; max-width: 0; opacity: 0; overflow: hidden;
  transform: translateX(-4px);
  transition: all .35s cubic-bezier(.34, 1.8, .5, 1);
}
.vote-btn:hover .caret { max-width: 1.4em; opacity: 1; transform: translateX(0); margin-right: 6px; }
/* .vote-btn reuses .bnc, whose :hover lift (translateY(-3px)) yanks the button up from
   under the cursor at the bottom edge — dropping :hover, then re-triggering it, which
   flickers the emoji on/off. Pin the button in place on hover (the sliding emoji is the
   affordance); keep the click press. The note cards suppress the same lift (see app.js). */
.vote-btn:hover { transform: none; }
.vote-btn:active { transform: translateY(0) scale(.97); }
.note-tape {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 76px; height: 22px; background: rgba(255, 255, 255, .55); box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.card-divider { border-top: 1px solid var(--line); margin: 54px 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.form-title { font-family: var(--font-display); font-weight: 800; font-size: 42px; letter-spacing: -1px; line-height: 1.15; margin: 0 0 22px; }
.form-lead { font-size: 15.5px; line-height: 1.7; color: var(--muted); margin: 0; }
.form-col { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.form-field {
  font-family: var(--font-body); font-size: 15.5px; border: none; border-radius: 14px;
  outline: none; background: var(--field); color: var(--ink); transition: box-shadow .2s;
}
textarea.form-field { padding: 16px 20px; resize: none; }
input.form-field { padding: 15px 20px; }
.form-field:focus { box-shadow: 0 0 0 2px var(--ink); }
.form-success { background: #DFF2E2; color: #1c6b3a; font-weight: 700; font-size: 15.5px; padding: 16px; border-radius: 14px; text-align: center; }
.form-terms { font-size: 12px; line-height: 1.5; color: var(--muted2); margin: 0; text-align: center; }
.form-terms a, .disclaimer a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--muted2); }
.form-terms a { color: var(--muted2); }
.form-send {
  background: var(--ink); color: var(--btnfg); font-weight: 700; font-size: 15.5px;
  padding: 16px; border-radius: 14px; border: none; cursor: pointer; font-family: var(--font-body);
}
.disclaimer { text-align: center; font-size: 13.5px; line-height: 1.7; color: var(--muted); max-width: 560px; margin: 28px auto 0; }

/* 9. Wall of fame ----------------------------------------------------------- */

.fame { max-width: 1240px; margin: 0 auto; padding: 50px 40px 110px; }
.fame-head { text-align: center; margin-bottom: 54px; }
.fame-head h2 { font-family: var(--font-display); font-weight: 800; font-size: 46px; letter-spacing: -1.5px; margin: 0 0 4px; }
.fame-head p { font-size: 15px; color: var(--muted); margin: 0; }
.flip-hint { font-size: 12.5px; }
.fame-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; }
.fame-cell { height: 296px; }
.pc { height: 296px; }
.pc-front { background: var(--card); padding: 10px; display: flex; flex-direction: column; }
.pc-photo { flex: 1; background: #F5D8C8; border-radius: 4px; position: relative; overflow: hidden; }
.pc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 38%; }
.pc-caption { padding: 16px 10px 8px; display: flex; justify-content: space-between; align-items: baseline; }
.pc-name { font-weight: 700; font-size: 15.5px; }
.pc-idea { font-size: 11px; color: var(--muted2); }
.pc-back { background: #FFFDF6; padding: 20px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.pc-note { font-family: var(--font-hand); font-size: 19.5px; line-height: 1.32; color: #22304d; border-right: 1px solid #e8e4da; padding-right: 14px; }
.pc-card { display: flex; flex-direction: column; position: relative; }
.pc-stamp-wrap { align-self: flex-end; position: relative; width: 46px; height: 56px; margin-bottom: 6px; }
.pc-stamp-frame { width: 46px; height: 56px; background: #fff; border: 1.5px dashed #c3cbd9; padding: 3px; }
.pc-stamp-inner { background: #14213D; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.pc-lines { margin-top: auto; display: flex; flex-direction: column; gap: 11px; }
.pc-lines div { border-bottom: 1px solid #d9d5cb; font-size: 10.5px; color: #6b6759; padding-bottom: 3px; }
.pc-round-stamp {
  position: absolute; left: 78px; top: 37px; width: 46px; height: 46px;
  border: 1.5px solid rgba(20, 33, 61, .32); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transform: rotate(-13deg);
  font-size: 7.5px; font-weight: 700; letter-spacing: .6px; color: rgba(20, 33, 61, .5);
  text-align: center; line-height: 1.45; background: rgba(255, 253, 246, .4); backdrop-filter: saturate(.6);
}
.fame-reserved {
  height: 296px; border: 2px dashed var(--line); border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
}
.fame-reserved span { font-size: 12.5px; color: var(--muted2); }

/* 10. About ------------------------------------------------------------------ */

.about { max-width: 1240px; margin: 0 auto; padding: 0 40px 100px; text-align: center; }
.about h2 { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -1px; margin: 0 0 32px; }
.about-cards { display: inline-flex; gap: 16px; }
.about-card { display: flex; gap: 16px; align-items: center; background: var(--card); border-radius: 99px; padding: 12px 30px 12px 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .07); }
.about-avatar { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; flex: none; }
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-text { text-align: left; }
.namei { font-weight: 700; font-size: 15px; }
.tagline { font-size: 13px; color: var(--muted); }
