@font-face { font-family: "Clarisse Sans"; src: url("/assets/ClarisseSans-Medium-31652db3.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/PlusJakartaSans-Variable-db1bb386.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --yellow: #FFCF49;
  --amber: #F5AD0D;
  --amber-deep: #E0950A;
  --bg: #FCF3E2;
  --fg: #2A2118;
  --muted: #6E604E;
  --line: #E9DCC3;
  --rule: #2A2118;
  --tile: #F6EAD2;
  --field: #FFFBF3;
  --button: #2A2118;
  --button-fg: #FBF5E5;
  --ok: #3F8F5A;
  --err: #B4442F;
  --err-bg: #FBE3D9;
  --ok-bg: #E6F0DD;
  --display: "Clarisse Sans", "Plus Jakarta Sans", system-ui, sans-serif;
  --ui: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1F1A17; --fg: #FBF5E5; --muted: #A89A86; --line: #352C24; --rule: #FBF5E5; --tile: #2A231D;
    --field: #231D19; --button: #FFCF49; --button-fg: #2A2118; --ok: #8CC79E; --err: #F09A85;
    --err-bg: #3A2520; --ok-bg: #22301F; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.clarisse { margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
.clarisse a { color: inherit; }
.clarisse h1, .clarisse h2 { font-family: var(--display); font-weight: 500; letter-spacing: 0; margin: 0; text-wrap: balance; }
.clarisse p { margin: 0; }
.clarisse :focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--display); font-size: 30px; line-height: 1; padding-bottom: 4px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 10px;
  background: var(--button); color: var(--button-fg) !important; font: 600 15px/1 var(--ui); text-decoration: none; cursor: pointer; white-space: nowrap; }
.button:hover { filter: brightness(1.12); }
.button.quiet { background: transparent; color: var(--fg) !important; box-shadow: inset 0 0 0 1.5px var(--line); }
.button.quiet:hover { box-shadow: inset 0 0 0 1.5px var(--muted); filter: none; }
.button.wide { width: 100%; min-height: 52px; font-size: 16px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--fg); }
.clarisse form.button_to { display: inline; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field small { color: var(--muted); font-size: 13px; }
.clarisse input[type=text], .clarisse input[type=tel], .clarisse input[type=password], .clarisse input[type=email] {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--field); color: var(--fg); font: 500 17px var(--ui); }
.clarisse input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 45%, transparent); }
.clarisse input.code { text-align: center; font-size: 28px; letter-spacing: .4em; padding-left: .4em; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--amber-deep); }

.flash { padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.err { background: var(--err-bg); color: var(--err); }

.welcome { min-height: 100vh; display: grid; place-items: center; padding: 48px 16px; }
.welcome .card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 28px; }
.welcome .chick { width: 84px; height: 84px; }
.chick { overflow: visible; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chick .bird, .chick .tuft, .chick .eyes, .chick .eyes circle, .chick .jaw, .chick .feather, .chick .spark { transform-box: fill-box; transform-origin: center; }
.chick .bird { transform-origin: 50% 100%; animation: chick-bob 4s ease-in-out infinite; }
.chick .eyes { transition: transform .12s ease-out; }
.chick .eyes circle { animation: chick-blink 5s infinite; }
.chick .happy, .chick .feather, .chick .spark { opacity: 0; }

.chick.ruffled .bird { animation: chick-ruffle .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.chick.ruffled .tuft { transform-origin: 50% 100%; animation: chick-tuft-pop .9s ease-out both; }
.chick.ruffled .eyes circle { animation: chick-squint .9s ease-in-out both; }
.chick.ruffled .jaw { transform-origin: 50% 0; animation: chick-squawk .6s ease-out both; }
.chick.ruffled .feather { animation: chick-feather 1.5s cubic-bezier(.2, .7, .4, 1) .08s both; }
.chick .feather:nth-child(1) { --x: -330px; --y: -170px; --r: -70deg; }
.chick .feather:nth-child(2) { --x: 320px; --y: -210px; --r: 60deg; }
.chick .feather:nth-child(3) { --x: -390px; --y: 40px; --r: -110deg; }
.chick .feather:nth-child(4) { --x: 390px; --y: 10px; --r: 120deg; }
.chick .feather:nth-child(5) { --x: -120px; --y: -340px; --r: -30deg; }
.chick .feather:nth-child(6) { --x: 150px; --y: -350px; --r: 35deg; }
.chick .feather:nth-child(7) { --x: -270px; --y: 230px; --r: -150deg; }
.chick .feather:nth-child(8) { --x: 280px; --y: 250px; --r: 160deg; }

.chick.hop .bird { animation: chick-hop 1s cubic-bezier(.3, .8, .4, 1) both; }
.chick.hop .eyes { opacity: 0; }
.chick.hop .happy { opacity: 1; }
.chick.hop .spark { animation: chick-spark .9s ease-out both; }
.chick .spark:nth-child(1) { --x: -300px; --y: -240px; animation-delay: .15s; }
.chick .spark:nth-child(2) { --x: 310px; --y: -260px; animation-delay: .25s; }
.chick .spark:nth-child(3) { --x: -360px; --y: 20px; animation-delay: .3s; }
.chick .spark:nth-child(4) { --x: 360px; --y: -20px; animation-delay: .2s; }

.chick.think .bird { animation: chick-tilt 2.4s ease-in-out infinite; }
.chick.think .eyes { animation: chick-glance 2.4s ease-in-out infinite; }
.chick.think .tuft { transform-origin: 50% 100%; animation: chick-wiggle .5s ease-in-out infinite alternate; }

@keyframes chick-bob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-6px) scale(1.01, .99); } }
@keyframes chick-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes chick-ruffle {
  0% { transform: scale(1, 1) rotate(0); }
  15% { transform: scale(1.14, .86) rotate(-9deg); }
  35% { transform: scale(.92, 1.08) rotate(8deg); }
  55% { transform: scale(1.04, .96) rotate(-5deg); }
  75% { transform: rotate(3deg); }
  100% { transform: scale(1, 1) rotate(0); } }
@keyframes chick-tuft-pop { 0%, 100% { transform: scale(1) rotate(0); } 20% { transform: scale(1.4) rotate(-16deg); } 45% { transform: scale(1.2) rotate(12deg); } }
@keyframes chick-squint { 0%, 100% { transform: scaleY(1); } 12%, 70% { transform: scaleY(.25) scaleX(1.15); } }
@keyframes chick-squawk { 0%, 100% { transform: translateY(0) scaleY(1); } 18%, 50% { transform: translateY(10px) scaleY(1.7); } }
@keyframes chick-feather {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.5); }
  12% { opacity: 1; }
  40% { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(var(--x) * 1.15), calc(var(--y) + 240px)) rotate(calc(var(--r) * 2)) scale(.9); } }
@keyframes chick-hop {
  0% { transform: translateY(0) scale(1, 1); }
  15% { transform: translateY(0) scale(1.12, .88); }
  40% { transform: translateY(-110px) scale(.94, 1.08); }
  62% { transform: translateY(0) scale(1.1, .9); }
  78% { transform: translateY(-24px) scale(.98, 1.02); }
  100% { transform: translateY(0) scale(1, 1); } }
@keyframes chick-spark { 0% { opacity: 0; transform: translate(0, 0) scale(.2); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1) rotate(90deg); } }
@keyframes chick-tilt { 0%, 100% { transform: rotate(0); } 20%, 45% { transform: rotate(-10deg); } 60%, 85% { transform: rotate(8deg); } }
@keyframes chick-glance { 0%, 100% { transform: translate(0, 0); } 20%, 45% { transform: translate(-22px, -10px); } 60%, 85% { transform: translate(22px, -10px); } }
@keyframes chick-wiggle { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .chick * { animation: none !important; transition: none !important; } }
.welcome h1 { font-size: 40px; line-height: 1.1; }
.welcome .lead { color: var(--muted); font-size: 17px; margin-top: 10px; }
.welcome form { display: flex; flex-direction: column; gap: 20px; }
.welcome .foot { color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: 10px !important; }

.shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); max-width: 1200px; margin: 0 auto; padding: 72px 40px 96px; gap: 40px; }
.side { display: flex; flex-direction: column; gap: 36px; position: sticky; top: 72px; align-self: start; }
.side nav { display: flex; flex-direction: column; gap: 14px; }
.side nav a, .side nav .linkish { color: var(--muted); text-decoration: none; font-size: 17px; text-align: left; }
.side nav a:hover, .side nav .linkish:hover { color: var(--fg); }
.side nav a[aria-current=page] { color: var(--fg); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.side nav .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 8px; border-radius: 11px; background: var(--yellow); color: #2A2118; font-size: 12px; font-weight: 700; }
.who { color: var(--muted); font-size: 15px; display: flex; flex-direction: column; gap: 2px; }
.who span { font-variant-numeric: tabular-nums; }

.main { display: flex; flex-direction: column; gap: 80px; min-width: 0; }
.main > .flash { margin-bottom: -48px; }
.section-head { padding-bottom: 20px; border-bottom: 1.5px solid var(--rule); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 34px; line-height: 1.15; }
.section-head p { color: var(--muted); margin-top: 6px; }

.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 26px 8px; border-bottom: 1px solid var(--line); }
.row .title { font-weight: 600; font-size: 17px; }
.row .desc { color: var(--muted); font-size: 16px; overflow-wrap: anywhere; }
.row .desc.mono { font-variant-numeric: tabular-nums; }
.row .actions { display: flex; align-items: center; gap: 12px; }
.row.dim .glyph { opacity: .55; }
.row.dim .title { color: var(--muted); }
.row a.stretch { text-decoration: none; }
.row a.stretch:hover .title { text-decoration: underline; text-underline-offset: 3px; }

.glyph { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; }
.glyph svg { width: 28px; height: 28px; }
.glyph.plain svg { width: 30px; height: 30px; }
.glyph.telegram { background: linear-gradient(180deg, #37AEE2, #1E96C8); color: #fff; }
.glyph.whatsapp { background: #25D366; color: #fff; }
.glyph.imessage { background: linear-gradient(180deg, #5DF079, #1EBE3C); color: #fff; }
.glyph.plain { color: var(--fg); }
.glyph.letter { background: var(--tile); font-family: var(--display); font-size: 22px; color: var(--fg); text-transform: lowercase; }
.glyph.chick { background: var(--tile); }
.glyph.chick img { width: 34px; height: 34px; }

.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--tile); color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill.live { background: var(--ok-bg); color: var(--ok); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 7px; }
.pill.wait { background: color-mix(in srgb, var(--yellow) 35%, transparent); color: var(--fg); }

.callout { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 20px; border-radius: 16px; background: color-mix(in srgb, var(--yellow) 30%, var(--bg)); }
.callout p { font-weight: 500; }
.empty { color: var(--muted); padding: 28px 8px; }

.form-stack { display: flex; flex-direction: column; align-items: stretch; gap: 28px; max-width: 620px; margin-top: 32px; }
.form-stack .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kinds { align-self: flex-start; display: inline-flex; padding: 4px; border-radius: 12px; background: var(--tile); gap: 4px; }
.kinds a, .kinds span { padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); }
.kinds span { background: var(--bg); color: var(--fg); }
.form-actions { display: flex; align-items: center; gap: 20px; }
.subhead { font-weight: 700; font-size: 15px; }
.subhead small { font-weight: 400; color: var(--muted); }

.copy { min-width: 0; }
.copy code { display: block; font: 500 15px var(--ui); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; padding: 24px 16px 72px; gap: 32px; }
  .side { position: static; gap: 20px; }
  .side nav { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
  .side nav a, .side nav .linkish { font-size: 15px; }
  .who { display: none; }
  .main { gap: 56px; }
  .main > .flash { margin-bottom: -32px; }
  .section-head h2 { font-size: 28px; }
  .row { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 20px 0; }
  .row .actions { grid-column: 2; }
  .glyph { width: 44px; height: 44px; }
  .form-stack .grid2 { grid-template-columns: 1fr; }
}

[data-secret-fields-target=rows] .grid2 { margin-top: 20px; }

.phone { display: flex; gap: 8px; }
.phone .dial { position: relative; flex: none; display: flex; }
.phone .dial-chip { display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 34px 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--field); font: 600 17px var(--ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
.phone .dial::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.phone select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.phone select:focus-visible + .dial-chip, .phone .dial:has(select:focus-visible) .dial-chip { border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 45%, transparent); }
.phone input[type=tel] { flex: 1; min-width: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.phone { position: relative; }
.phone [hidden] { display: none !important; }
.dial-button { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 12px; }
.dial-button:hover .dial-chip { border-color: var(--muted); }
.dial-button[aria-expanded=true] .dial-chip { border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 45%, transparent); }
.dial-button:focus-visible { outline: none; }
.dial-button:focus-visible .dial-chip { border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 45%, transparent); }
.dial-popover { position: absolute; z-index: 10; top: calc(100% + 8px); left: 0; right: 0; display: flex; flex-direction: column; padding: 8px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--field); box-shadow: 0 18px 40px -12px rgb(42 33 24 / .25); }
.clarisse .dial-search { width: 100%; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); font: 500 16px var(--ui); }
.clarisse .dial-search:focus { outline: none; border-color: var(--amber); }
.dial-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 288px; overflow-y: auto; overscroll-behavior: contain; }
.dial-list li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.dial-list li.active { background: var(--tile); }
.dial-list li[aria-selected=true] .dial-name { font-weight: 700; }
.dial-flag { font-size: 20px; line-height: 1; }
.dial-code { color: var(--muted); font-variant-numeric: tabular-nums; }
.dial-empty { padding: 16px 12px; color: var(--muted); font-size: 15px; }
.dial-search::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
