/* flexippo.com: one stylesheet for the home page, everyone's pages and the editor.
   Brand colours come from the logo: lime tile, ink letter, violet shadow. */

@font-face { font-family: "Adventor"; src: url("fonts/adventor-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --ink: #17102e;
  --lime: #c6ff3d;
  --violet: #6a2cff;
  --paper: #f3f1fa;
  --mist: #e3dff0;
  --muted: #625b7c;
  --pink: #ff9bcb;
  --sky: #a9d8ff;
  --bad: #c0124f;
  --display: "Adventor", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gap: 12px;
  --r: 24px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
[hidden] { display: none !important; }
.i { width: 1em; height: 1em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons + fields (shared) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; font: 600 16px/1 var(--text); text-decoration: none; white-space: nowrap; transition: transform .12s ease, background-color .15s ease; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn .i { font-size: 20px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a2050; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--mist); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); padding: 0 14px; }
.btn-bad { background: #fff; color: var(--bad); box-shadow: inset 0 0 0 1.5px #f3c4d6; }
.btn-wide { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

.fld { display: block; margin: 0 0 14px; }
.fld > span { display: block; font: 600 14px/1.3 var(--text); margin: 0 0 6px; }
.inp { display: block; width: 100%; height: 52px; padding: 0 14px; border: 1.5px solid var(--mist); border-radius: 14px; background: #fff; font-size: 16px; outline: none; transition: border-color .15s; }
textarea.inp { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.inp:focus, .pre:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(106, 44, 255, .14); }
.pre { display: flex; align-items: center; height: 52px; border: 1.5px solid var(--mist); border-radius: 14px; background: #fff; overflow: hidden; }
.pre > b { padding: 0 2px 0 14px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.pre > input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 16px; padding: 0 14px 0 0; }
.pwd { position: relative; }
.pwd .inp { padding-right: 64px; }
.pwd button { position: absolute; right: 6px; top: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; font: 600 14px var(--text); color: var(--muted); }
.msg { min-height: 20px; margin: 6px 0 12px; font-size: 14px; color: var(--bad); }
.msg.ok { color: var(--violet); }
.hint { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.linkbtn { border: 0; background: none; padding: 4px 0; color: var(--violet); font: 600 14px var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1200px; margin: 0 auto; padding: 14px 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 23px/1 var(--display); letter-spacing: -.03em; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; }

/* ---------- home page ---------- */
.hero { max-width: 1200px; margin: 0 auto; padding: 20px 20px 64px; display: grid; gap: 48px; }
.claim-url { display: block; margin: 0; font: 700 clamp(30px, 7.4vw, 58px)/1 var(--display); letter-spacing: -.035em; color: var(--muted); }
.claim-form { margin: 0; }
.claim-tile { display: inline-block; position: relative; max-width: 100%; margin: 10px 0 0; padding: .06em .16em .1em; background: var(--lime); border-radius: .2em; box-shadow: .09em .09em 0 var(--violet); font: 700 clamp(54px, 15.5vw, 128px)/1 var(--display); letter-spacing: -.05em; }
.claim-tile input { display: block; width: 4.6em; max-width: 100%; padding: 0; border: 0; outline: none; background: transparent; font: inherit; letter-spacing: inherit; color: var(--ink); caret-color: var(--violet); }
.claim-tile input::placeholder { color: rgba(23, 16, 46, .32); }
.claim-tile:focus-within { outline: 3px solid var(--ink); outline-offset: 6px; }
.claim-mirror { position: absolute; visibility: hidden; white-space: pre; font: inherit; letter-spacing: inherit; left: 0; top: 0; pointer-events: none; }
.claim-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 8px 0 0; }
.claim-row .btn { min-height: 58px; padding: 0 30px; font-size: 17px; }
.claim-status { margin: 16px 0 0; min-height: 22px; font: 600 15px/1.4 var(--text); color: var(--muted); }
.claim-status.ok { color: var(--violet); }
.claim-status.bad { color: var(--bad); }
.hero-sub { margin: 22px 0 0; max-width: 31ch; font-size: 19px; line-height: 1.5; color: var(--muted); }

.demo { min-width: 0; }
.demo-pick { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; }
.demo-pick > span { font-size: 14px; color: var(--muted); margin-right: 6px; }
.demo-pick button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--mist); font: 600 14px var(--text); }
.demo-pick button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.demo-frame { border-radius: 34px; overflow: hidden; border: 1.5px solid var(--mist); max-height: 760px; position: relative; }
.demo-frame::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(to top, var(--fade, var(--paper)), transparent); pointer-events: none; }
.demo-frame .pg { min-height: 0; padding-bottom: 60px; }

.feat { max-width: 1200px; margin: 0 auto; padding: 24px 20px 72px; }
.feat h2, .final h2 { margin: 0 0 24px; font: 700 clamp(34px, 6vw, 60px)/1.02 var(--display); letter-spacing: -.04em; max-width: 14ch; }
.feat .gw { --cols: 2; }
.ft-text { margin-top: auto; }
.ft-text b { display: block; font: 700 19px/1.15 var(--display); letter-spacing: -.02em; }
.ft-text small { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.tile.c-ink .ft-text small, .tile.c-violet .ft-text small { color: rgba(255, 255, 255, .72); }
.ft-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-icons span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--b); color: var(--bf, #fff); font-size: 18px; }
.ft-sizes { display: grid; grid-template-columns: repeat(4, 22px); grid-auto-rows: 22px; gap: 4px; }
.ft-sizes i { background: var(--ink); border-radius: 5px; }
.ft-sizes i:nth-child(2) { grid-column: span 2; background: var(--violet); }
.ft-sizes i:nth-child(3) { grid-row: span 2; background: var(--violet); }
.ft-sizes i:nth-child(4) { grid-column: span 2; grid-row: span 2; }
.ft-swatch { display: flex; gap: 6px; }
.ft-swatch i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(23, 16, 46, .14); }

.custom { background: var(--ink); color: #fff; }
.custom > div { max-width: 1200px; margin: 0 auto; padding: 64px 20px; display: grid; gap: 20px; }
.custom h2 { margin: 0; font: 700 clamp(30px, 5vw, 48px)/1.05 var(--display); letter-spacing: -.035em; max-width: 18ch; }
.custom p { margin: 0; color: #c9c2e6; font-size: 18px; max-width: 40ch; }
.custom .btn { justify-self: start; }

.final { max-width: 1200px; margin: 0 auto; padding: 72px 20px; }
.final .claim-tile { font-size: clamp(44px, 11vw, 88px); }
.final .claim-url { font-size: clamp(24px, 5vw, 40px); }

.foot { max-width: 1200px; margin: 0 auto; padding: 28px 20px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1.5px solid var(--mist); color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a, .foot button { color: var(--ink); text-decoration: none; border: 0; background: none; padding: 0; font: 600 14px var(--text); }
.foot a:hover, .foot button:hover { text-decoration: underline; }

@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: start; padding-top: 56px; gap: 64px; }
  .hero-main { padding-top: 40px; }
  .demo { width: 100%; max-width: 430px; justify-self: end; }
  .feat .gw { --cols: 4; }
  .custom > div { grid-template-columns: 1fr auto; align-items: end; }
  .custom .btn { justify-self: end; }
}

/* ---------- a person's page ---------- */
:root, .pg { --bg: var(--paper); --on-bg: var(--ink); --on-bg-2: var(--muted); --tile: #fff; --on-tile: var(--ink); --on-tile-2: var(--muted); --line: var(--mist); }
.pg { container-type: inline-size; background: var(--bg); color: var(--on-bg); min-height: 100vh; min-height: 100dvh; }
.pg[data-theme="ink"] { --bg: #17102e; --on-bg: #f5f2ff; --on-bg-2: #a79fcb; --tile: #241b46; --on-tile: #f5f2ff; --on-tile-2: #a79fcb; --line: #33295c; }
.pg[data-theme="lime"] { --bg: #c6ff3d; --on-bg: #17102e; --on-bg-2: #3f4a1a; --line: #b2e636; }
.pg[data-theme="violet"] { --bg: #6a2cff; --on-bg: #fff; --on-bg-2: #ddd0ff; --line: #7f48ff; }
.pg[data-theme="blush"] { --bg: #ffe4ef; --on-bg: #17102e; --on-bg-2: #7a5466; --line: #f6cfe0; }
.pg-in { max-width: 560px; margin: 0 auto; padding: 36px 16px 132px; }
.pf { margin: 0 4px 26px; }
.av { width: 96px; height: 96px; border-radius: 30px; object-fit: cover; background: var(--tile); }
.av-mono { display: grid; place-items: center; font: 700 44px/1 var(--display); background: var(--lime); color: var(--ink); }
.nm { margin: 18px 0 0; font: 700 36px/1.04 var(--display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.bio { margin: 10px 0 0; color: var(--on-bg-2); font-size: 16px; line-height: 1.5; white-space: pre-line; max-width: 38ch; overflow-wrap: anywhere; }
.sec { margin: 26px 4px 12px; font: 700 21px/1.2 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.gw { --cols: 2; container-type: inline-size; }
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols)); grid-auto-flow: row dense; gap: var(--gap); }
@supports not (width: 1cqi) { .grid { grid-auto-rows: 168px; } }

@container (min-width: 900px) {
  .pg-in { max-width: 1180px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; padding: 72px 40px 140px; }
  .pf { position: sticky; top: 72px; align-self: start; margin: 0; }
  .av { width: 168px; height: 168px; border-radius: 52px; }
  .av-mono { font-size: 76px; }
  .nm { font-size: 48px; margin-top: 26px; }
  .bio { font-size: 17px; }
  .gw { --cols: 4; }
  .sec:first-child { margin-top: 0; }
}

/* tiles */
.tile { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 16px; border-radius: var(--r); background: var(--tile); color: var(--on-tile); border: 1px solid var(--line); overflow: hidden; text-decoration: none; text-align: left; transition: transform .14s ease, border-color .15s ease; -webkit-tap-highlight-color: transparent; }
a.tile:hover, button.tile:hover { border-color: var(--on-tile-2); }
a.tile:active, button.tile:active { transform: scale(.975); }
button.tile { font: inherit; }
.s-w { grid-column: span 2; }
.s-t { grid-row: span 2; }
.s-l { grid-column: span 2; grid-row: span 2; }
.ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--b, var(--ink)); color: var(--bf, #fff); font-size: 24px; flex: none; }
.s-l .ico, .s-t .ico { width: 54px; height: 54px; border-radius: 16px; font-size: 29px; }
.tx { margin-top: auto; min-width: 0; }
.tx b { display: block; font: 600 15px/1.25 var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: var(--on-tile-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-l .tx b, .s-t .tx b { font: 700 22px/1.1 var(--display); letter-spacing: -.02em; white-space: normal; }
.s-l .tx small, .s-t .tx small { font-size: 15px; margin-top: 4px; }
.cta { position: absolute; top: 18px; right: 16px; padding: 8px 14px; border-radius: 999px; background: var(--b, var(--ink)); color: var(--bf, #fff); font: 600 13px/1 var(--text); }
.s-l .cta, .s-t .cta { top: auto; bottom: 16px; }
.s-l .tx, .s-t .tx { padding-right: 0; margin-bottom: 44px; }
.go { position: absolute; top: 14px; right: 14px; font-size: 18px; color: var(--on-tile-2); }

.tl-photo { padding: 0; background: var(--line); }
.tl-photo img { width: 100%; height: 100%; object-fit: cover; }
.cap { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .94); color: var(--ink); font: 600 13px/1.3 var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 17px; }

.tl-note { justify-content: center; }
.tl-note p { margin: 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.tl-note.big p { font: 700 21px/1.12 var(--display); letter-spacing: -.02em; }
.tl-note.big.s-w p, .tl-note.big.s-l p { font-size: 28px; }
.tl-note.big.s-l p { font-size: 34px; }
.c-white { --tile: #fff; --on-tile: var(--ink); --on-tile-2: var(--muted); background: #fff; color: var(--ink); border-color: var(--mist); }
.c-lime { background: var(--lime); color: var(--ink); border-color: transparent; }
.c-violet { background: var(--violet); color: #fff; border-color: transparent; }
.c-ink { background: var(--ink); color: #fff; border-color: transparent; }
.c-pink { background: var(--pink); color: var(--ink); border-color: transparent; }
.c-sky { background: var(--sky); color: var(--ink); border-color: transparent; }
.pg[data-theme="ink"] .c-ink { background: #0d0820; }
.pg[data-theme="lime"] .c-lime { background: #e9ffb3; }
.pg[data-theme="violet"] .c-violet { background: #4d14d9; }

/* "make your own" pill on other people's pages */
.made { position: fixed; z-index: 20; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 9px; padding: 7px 18px 7px 7px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 14px/1 var(--text); text-decoration: none; box-shadow: 0 8px 30px rgba(23, 16, 46, .28); white-space: nowrap; }
.made img { width: 28px; height: 28px; }
.pg[data-theme="ink"] ~ .made { background: var(--lime); color: var(--ink); box-shadow: 0 8px 30px rgba(0, 0, 0, .4); }
.pg[data-theme="violet"] ~ .made { background: #fff; color: var(--ink); }

/* loading + missing */
.pg-load .av, .pg-load .nm, .pg-load .bio, .pg-load .tile { background: var(--line); border-color: transparent; color: transparent; }
.pg-load .nm { height: 38px; width: 60%; border-radius: 12px; }
.pg-load .bio { height: 20px; width: 80%; border-radius: 8px; }
.miss { max-width: 560px; margin: 0 auto; padding: 72px 20px; }
.miss h1 { margin: 0 0 12px; font: 700 clamp(34px, 8vw, 56px)/1.04 var(--display); letter-spacing: -.04em; overflow-wrap: anywhere; }
.miss p { margin: 0 0 24px; color: var(--muted); font-size: 18px; }
.miss-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.miss h1 .claim-url { font-size: clamp(24px, 6vw, 36px); }
.miss h1 .claim-tile { display: inline-block; margin: 8px 0 0; font-size: clamp(40px, 12vw, 76px); overflow-wrap: anywhere; word-break: break-all; }
.miss-free { display: block; margin-top: 14px; }

/* ---------- sheets (pop-up panels) ---------- */
body.sh-open { overflow: hidden; }
.sh-back { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(23, 16, 46, 0); transition: background-color .18s ease; }
.sh-back.in { background: rgba(23, 16, 46, .46); }
.sh { width: 100%; max-width: 480px; max-height: 92vh; max-height: 92dvh; overflow: auto; overscroll-behavior: contain; background: #fff; color: var(--ink); border-radius: 26px 26px 0 0; padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); transform: translateY(24px); opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.sh-back.in .sh { transform: none; opacity: 1; }
.sh-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.sh-h h2 { margin: 0; font: 700 23px/1.15 var(--display); letter-spacing: -.025em; }
.sh-x { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: 20px; }
.sh-foot { display: flex; gap: 10px; margin-top: 18px; }
.sh-foot .btn { flex: 1; }
@media (min-width: 640px) {
  .sh-back { align-items: center; padding: 20px; }
  .sh { border-radius: 26px; padding-bottom: 22px; }
}

/* toast */
.toast { position: fixed; z-index: 80; left: 50%; top: max(14px, env(safe-area-inset-top)); transform: translate(-50%, -12px); opacity: 0; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 28px); padding: 12px 16px; border-radius: 16px; background: var(--ink); color: #fff; font: 600 15px/1.35 var(--text); box-shadow: 0 10px 30px rgba(23, 16, 46, .3); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.toast.in { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; background: var(--lime); color: var(--ink); font: 700 14px var(--text); padding: 7px 12px; border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
