/* Hiram Diaz · OKUNAMI reseller card
   Layout: one phone-width column, portrait hero, glass actions, two agent blocks split by full-width curves.
   Three committed looks, each single-theme on purpose: deep (navy + chrome), label (black + warm gold), pearl (light glass). */

:root {
  --bg: #070A1F; --bg2: #0E1440; --ink: #EEF1FF; --muted: #A3ABD6; --line: rgba(190, 200, 255, .16);
  --glass: rgba(255, 255, 255, .06); --glass-2: rgba(255, 255, 255, .1);
  --accent: #8FA6FF; --accent-ink: #070A1F; --chrome: linear-gradient(100deg, #f6f8ff 0%, #9aa6d6 28%, #ffffff 46%, #6f7aa8 70%, #e9edff 100%);
  --badge: #8FA6FF; --badge-ink: #070A1F;
  --f-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --name-size: clamp(2.3rem, 11vw, 3.1rem); --name-weight: 800; --name-track: -.02em;
  --radius: 22px;
  color-scheme: dark;
}
html[data-look="label"] {
  --bg: #0B0A09; --bg2: #17140F; --ink: #F4EEE4; --muted: #B5AA97; --line: rgba(214, 184, 128, .22);
  --glass: rgba(255, 244, 222, .05); --glass-2: rgba(255, 244, 222, .09);
  --accent: #D2AE6D; --accent-ink: #14100A; --chrome: linear-gradient(100deg, #f7e6c3 0%, #b88f4f 35%, #fff3d6 52%, #9c7438 75%, #ecd6a6 100%);
  --badge: #D2AE6D; --badge-ink: #14100A;
  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --name-size: clamp(2.8rem, 13vw, 3.7rem); --name-weight: 700; --name-track: 0;
  --radius: 6px;
  color-scheme: dark;
}
html[data-look="pearl"] {   /* Pearl Glass layout in the Black Label palette: black, warm gold, frosted glass */
  --bg: #0B0A09; --bg2: #15120E; --ink: #F4EEE4; --muted: #B5AA97; --line: rgba(214, 184, 128, .22);
  --glass: rgba(255, 244, 222, .05); --glass-2: rgba(255, 244, 222, .09);
  --accent: #D2AE6D; --accent-ink: #14100A; --chrome: linear-gradient(100deg, #f7e6c3 0%, #b88f4f 35%, #fff3d6 52%, #9c7438 75%, #ecd6a6 100%);
  --badge: #D2AE6D; --badge-ink: #14100A;
  --f-display: "Instrument Serif", Georgia, serif;
  --name-size: clamp(2.9rem, 14vw, 3.8rem); --name-weight: 400; --name-track: -.01em;
  --radius: 26px;
  --glow1: rgba(210, 174, 109, .20); --glow2: rgba(255, 226, 170, .12); --glow3: rgba(184, 143, 79, .16); --wave: 210, 174, 109;
  color-scheme: dark;
}

/* ---------- palettes built from the chrome OKUNAMI logo (layered on the Pearl layout) ---------- */
/* Chrome Ice: the logo's own colors. Navy-black ground, gunmetal glass, silver chrome, electric cyan. */
html[data-look][data-palette="ice"] {
  --bg: #05080F; --bg2: #0A1220; --ink: #EEF3F8; --muted: #93A3B5; --line: rgba(150, 190, 230, .18);
  --glass: rgba(200, 225, 255, .05); --glass-2: rgba(200, 225, 255, .09);
  --accent: #2EC5FF; --accent-ink: #021018;
  --chrome: linear-gradient(100deg, #ffffff 0%, #9fb0c2 28%, #f4f8fc 46%, #5d6d80 70%, #e6eef6 100%);
  --badge: #2EC5FF; --badge-ink: #021018;
  --glow1: rgba(46, 197, 255, .18); --glow2: rgba(120, 170, 255, .12); --glow3: rgba(30, 110, 200, .16); --wave: 46, 197, 255;
}
/* Midnight: deeper blue ground, steel-blue glass, silver chrome, brighter royal-cyan accent. */
html[data-look][data-palette="midnight"] {
  --bg: #061024; --bg2: #0B1A36; --ink: #EAF2FF; --muted: #8FA5C7; --line: rgba(120, 170, 255, .2);
  --glass: rgba(150, 190, 255, .06); --glass-2: rgba(150, 190, 255, .1);
  --accent: #3AA0FF; --accent-ink: #03101F;
  --chrome: linear-gradient(100deg, #f2f7ff 0%, #8ea7c8 28%, #ffffff 46%, #4f6a91 70%, #dbe7f7 100%);
  --badge: #3AA0FF; --badge-ink: #03101F;
  --glow1: rgba(58, 160, 255, .22); --glow2: rgba(120, 90, 255, .12); --glow3: rgba(40, 200, 255, .14); --wave: 58, 160, 255;
}
/* Carbon: carbon-black ground, graphite glass, platinum chrome, a quiet ice-blue accent. */
html[data-look][data-palette="carbon"] {
  --bg: #0A0B0D; --bg2: #131519; --ink: #F2F4F7; --muted: #9AA1AB; --line: rgba(220, 228, 240, .14);
  --glass: rgba(235, 240, 248, .045); --glass-2: rgba(235, 240, 248, .08);
  --accent: #9FE8FF; --accent-ink: #061218;
  --chrome: linear-gradient(100deg, #ffffff 0%, #a7aeb8 28%, #fbfcfd 46%, #5c636d 70%, #eceff3 100%);
  --badge: #9FE8FF; --badge-ink: #061218;
  --glow1: rgba(159, 232, 255, .10); --glow2: rgba(255, 255, 255, .06); --glow3: rgba(120, 180, 220, .08); --wave: 190, 220, 240;
}
.picker .sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--line); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-variant-emoji: text; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.5 var(--f-body);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { flex: none; }

/* ---------- look picker (preview only) ---------- */
.picker {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap;
  padding: 8px max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); font-size: 12px;
}
.picker-label { letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.picker-seg { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.picker-seg button { border: 0; background: none; padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: 12px; color: var(--muted); }
.picker-seg button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- card shell ---------- */
.card {
  position: relative; max-width: 480px; margin: 0 auto; isolation: isolate;
  padding-block: 10px 28px;
  padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 18px;
}
.waves { position: absolute; inset: 0 0 auto 0; width: 100%; height: 640px; z-index: -1; pointer-events: none; }
html[data-look="pearl"] .card::before {
  content: ""; position: absolute; inset: -40px 0 auto; height: 720px; z-index: -2; pointer-events: none;
  background: radial-gradient(40% 30% at 18% 22%, var(--glow1), transparent 70%),
              radial-gradient(38% 30% at 85% 12%, var(--glow2), transparent 70%),
              radial-gradient(45% 35% at 60% 60%, var(--glow3), transparent 70%);
}

.topbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 40px; }
.wordmark {
  font: 800 15px/1 var(--f-body); letter-spacing: .32em; text-decoration: none;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Under the photo: name, then the Authorized Reseller badge */
.id .name { margin-top: 6px; }
.name { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; transition: filter .2s; }
html[data-look] .name.armed, html .name.armed { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent); filter: drop-shadow(0 0 14px var(--accent)); }
.id .badge { margin-bottom: 8px; }
.lang { display: flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.lang button { border: 0; background: none; min-width: 44px; min-height: 32px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--glass-2); color: var(--ink); }

/* ---------- hero ---------- */
.hero { display: flex; flex-direction: column; gap: 16px; }
.portrait { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; max-width: 100%; background: var(--bg2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .p-full { display: none; }
.portrait::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
html[data-look="deep"] .portrait::after { background: linear-gradient(180deg, transparent 55%, rgba(7, 10, 31, .92)); }
html[data-look="deep"] .portrait { box-shadow: 0 30px 60px -30px rgba(80, 100, 255, .55); }
html[data-look="deep"] .hero { position: relative; }
html[data-look="deep"] .id { margin-top: -118px; position: relative; padding-inline: 18px; }

html[data-look="label"] .portrait { aspect-ratio: 3 / 4; border: 1px solid var(--line); padding: 8px; background: transparent; }
html[data-look="label"] .portrait img { border-radius: 2px; }
html[data-look="label"] .portrait .p-crop { display: none; }
html[data-look="label"] .portrait .p-full { display: block; object-position: 50% 8%; }
html[data-look="label"] .id { text-align: center; align-items: center; }
html[data-look="label"] .role { font-style: italic; font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; }

.portrait-wrap { position: relative; }
html[data-look="pearl"] .portrait-wrap { width: 62%; margin-inline: auto; }
/* orbiting light on the ring, plus a slow breathing halo */
html[data-look="pearl"] .portrait-wrap::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; z-index: 2; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg 210deg, rgba(var(--wave), .25) 270deg, rgba(var(--wave), .95) 330deg, #ffffff 350deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: orbit 7s linear infinite;
}
html[data-look="pearl"] .portrait-wrap::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; z-index: -1; pointer-events: none;
  box-shadow: 0 0 34px 6px rgba(var(--wave), .28), 0 0 70px 14px rgba(var(--wave), .12);
  animation: breathe 4.5s ease-in-out infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .55; transform: scale(.985); } 50% { opacity: 1; transform: scale(1.015); } }
html[data-look="pearl"] .portrait { aspect-ratio: 1; width: 100%; border-radius: 50%; border: 3px solid transparent; background: var(--chrome) border-box; box-shadow: 0 0 0 6px rgba(var(--wave), .08), 0 24px 50px -20px rgba(var(--wave), .45); }
html[data-look="pearl"] .portrait img { object-position: 50% 6%; transform: scale(1.35); transform-origin: 50% 0; }
html[data-look="pearl"] .id { text-align: center; align-items: center; }

.id { display: flex; flex-direction: column; gap: 8px; }
.badge {
  margin: 0; display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  padding: 6px 12px 6px 7px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line);
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
html[data-look="label"] .badge, html[data-look="pearl"] .badge { align-self: center; }
.badge svg { width: 18px; height: 18px; color: var(--badge); }
.name { margin: 0; font: var(--name-weight) var(--name-size)/1 var(--f-display); letter-spacing: var(--name-track); text-wrap: balance; }
html[data-look="deep"] .name, html[data-look="label"] .name, html[data-look="pearl"] .name { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.role { margin: 0; color: var(--ink); font-size: 1.12rem; font-weight: 600; letter-spacing: .005em; max-width: 30ch; text-wrap: balance; opacity: .92; }

/* ---------- actions ---------- */
.actions { display: flex; flex-direction: column; gap: 10px; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 56px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; text-decoration: none;
  box-shadow: 0 14px 30px -14px var(--accent); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
html[data-look="pearl"] .btn-primary { background: var(--chrome); }
html[data-look="label"] .btn-primary { border-radius: 4px; background: var(--chrome); letter-spacing: .08em; text-transform: uppercase; font-size: .92rem; }
.btn-primary svg { width: 22px; height: 22px; }
.btn-primary:active, .capsule:active, .dock-item:active, .chip:active { transform: scale(.96); }
.capsules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.capsule, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-weight: 700;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
html[data-look="label"] .capsule, html[data-look="label"] .btn-ghost { border-radius: 4px; }
.capsule svg { width: 20px; height: 20px; }
.btn-ghost { width: 100%; }

.dock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dock .dock-item { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 14px; min-height: 64px; text-align: left; }
.dock .dock-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.chat-head .talk-sms { padding: 0 12px; }
.dock-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.dock-txt strong { font-size: 15px; font-weight: 800; }
.dock-txt small { font-size: 11.5px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock .dock-item svg { width: 28px; height: 28px; }
.dock-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 66px;
  border-radius: 18px; background: var(--glass); border: 1px solid var(--line); text-decoration: none; font-size: 12px; font-weight: 700;
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
html[data-look="label"] .dock-item { border-radius: 4px; }
.dock-item svg { width: 24px; height: 24px; color: var(--accent); }

/* ---------- dividers: big, smooth, full width ---------- */
.divider { display: block; width: calc(100% + 2 * max(18px, env(safe-area-inset-left, 0px))); height: 46px; margin: 4px calc(-1 * max(18px, env(safe-area-inset-left, 0px))) -18px; fill: var(--bg2); }
.d-slant { margin: -18px calc(-1 * max(18px, env(safe-area-inset-left, 0px))) 4px; }
.band {
  display: flex; flex-direction: column; gap: 16px; background: var(--bg2);
  margin-inline: calc(-1 * max(18px, env(safe-area-inset-left, 0px)));
  padding-block: 6px 22px; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px));
}
html[data-look="label"] .band { background: transparent; }
html[data-look="label"] .divider { height: 1px; margin-block: 10px 0; fill: none; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .5; }
html[data-look="label"] .divider path { display: none; }

/* ---------- blocks ---------- */
.block {
  display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.block h2 { margin: 0; font: 700 1.38rem/1.2 var(--f-display); text-wrap: balance; letter-spacing: -.01em; }
html[data-look="label"] .block h2 { font-size: 1.6rem; font-weight: 600; }
html[data-look="pearl"] .block h2 { font-size: 1.7rem; font-weight: 400; }
.eyebrow { margin: 0 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.lede { margin: 0; color: var(--muted); }
.fine { margin: 0; color: var(--muted); font-size: 13px; }

.agent-head { display: flex; gap: 14px; align-items: flex-start; }
.agent-av { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
html[data-look="label"] .agent-av { border-radius: 50%; background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.agent-av svg { width: 30px; height: 30px; }
.agent-av.sm { width: 38px; height: 38px; border-radius: 12px; }
.agent-av.sm svg { width: 24px; height: 24px; }
.av-marea { background: var(--ink); color: var(--bg); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--glass-2); border-radius: 999px; padding: 9px 14px; min-height: 40px;
  font-weight: 700; font-size: 14px; text-align: left; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
html[data-look="label"] .chip { border-radius: 4px; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.how-steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: baseline; counter-increment: s; }
.how-steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; border: 1px solid var(--line); color: var(--accent); }
.how-steps strong { font-weight: 800; }
.how-steps span { color: var(--muted); font-size: 15px; }

/* ---------- Founding 50 ---------- */
.founding { border-color: rgba(var(--wave), .55); box-shadow: 0 0 0 1px rgba(var(--wave), .25) inset, 0 18px 40px -22px rgba(var(--wave), .7); position: relative; overflow: hidden; }
.founding::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(var(--wave), .18), transparent); pointer-events: none; }
.founding > * { position: relative; }
.f-price { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.f-now { font: 400 3rem/1 var(--f-display); background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.f-was { color: var(--muted); font-size: 1.15rem; font-weight: 700; }
.f-save { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.f-meter { display: grid; gap: 6px; }
.f-bar { height: 8px; border-radius: 999px; background: var(--glass-2); overflow: hidden; border: 1px solid var(--line); }
.f-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ffffff); transition: width .8s ease; }
.f-left { margin: 0; font-weight: 800; font-size: 14px; color: var(--accent); font-variant-numeric: tabular-nums; }
.f-terms { margin: 0; color: var(--ink); font-size: 14.5px; }
.f-list { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 14.5px; }

/* ---------- plans ---------- */
.plans-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bill { display: flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); }
.bill button { border: 0; background: none; padding: 7px 12px; min-height: 36px; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--muted); }
.bill button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.plan-list { display: grid; gap: 10px; }
.plan {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px;
  border-radius: calc(var(--radius) - 6px); border: 1px solid var(--line); background: var(--glass-2); text-align: left; width: 100%;
}
.plan[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan h3 { margin: 0; font-size: 1.08rem; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan .tag { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.plan .price { text-align: right; font: 800 1.35rem/1.1 var(--f-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan .per { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.plan p { margin: 0; grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.plan ul { grid-column: 1 / -1; margin: 6px 0 0; padding: 0 0 0 18px; font-size: 14px; display: grid; gap: 2px; }
.stepper { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); font-size: 20px; font-weight: 800; line-height: 1; }
.stepper output { min-width: 3ch; text-align: center; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.stepper .st-label { font-size: 13px; color: var(--muted); }
.stepper .st-total { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.foot { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 8px; text-align: center; color: var(--muted); font-size: 13px; }
.foot p { margin: 0; }
.foot a { font-weight: 700; }
.crafted { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; opacity: .8; }

/* ---------- sheets ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(4, 6, 18, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet-panel {
  position: relative; width: 100%; max-width: 520px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0;
  padding: 18px max(18px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 14px; animation: rise .32s cubic-bezier(.2, .9, .3, 1);
}
.sheet-panel.small h3, .chat-who h3 { margin: 0; font: 700 1.2rem/1.2 var(--f-display); }
.sheet-panel.center { align-items: center; text-align: center; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.chat-panel { height: min(88dvh, 760px); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
.chat-head { display: flex; align-items: center; gap: 12px; }
.chat-who { flex: 1; min-width: 0; }
.chat-who p { margin: 0; font-size: 12.5px; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); display: grid; place-items: center; }
.icon-btn svg { width: 20px; height: 20px; }
.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; min-height: 0; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; background: var(--glass-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.msg.typing { display: inline-flex; gap: 4px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; } .msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-quick { display: flex; gap: 8px; flex-wrap: wrap; max-height: 132px; overflow-y: auto; }
.chat-quick:empty { display: none; }
.chat-quick .chip { font-size: 13.5px; }
.chat-quick .chip.go { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; min-height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); padding: 0 16px; font-size: 16px; }
.chat-form input::placeholder { color: var(--muted); }
.send { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.send svg { width: 22px; height: 22px; }

/* payment card inside chat */
.paybox { align-self: stretch; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; border: 1px solid var(--accent); background: var(--glass); }
.paybox h4 { margin: 0; font-size: 15px; font-weight: 800; }
.payopt { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass-2); text-align: left; width: 100%; min-height: 56px; }
.payopt strong { font-size: 15px; }
.payopt small { color: var(--muted); font-size: 12.5px; grid-column: 1; }
.payopt .amt { grid-row: 1 / span 2; grid-column: 2; font-weight: 800; font-variant-numeric: tabular-nums; }
.paysep { margin: 4px 0 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.direct { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--glass-2); border: 1px dashed var(--accent); font-size: 14px; }
.direct .num { font-size: 1.3rem; font-weight: 800; letter-spacing: .02em; user-select: all; font-variant-numeric: tabular-nums; }
.direct button { justify-self: start; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-weight: 700; }

.share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.share-grid a, .share-grid button { min-height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); font-weight: 700; text-decoration: none; }
.qr-box { width: 220px; max-width: 100%; aspect-ratio: 1; padding: 14px; background: #fff; border-radius: 16px; }
.qr-box svg, .qr-box img { width: 100%; height: 100%; }
#qrUrl { overflow-wrap: anywhere; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }

.banner { padding: 14px 16px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* ---------- high-gloss buttons with a light-blue glow underneath ---------- */
.btn-primary, .capsule, .dock-item { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary > *, .capsule > *, .dock-item > * { position: relative; z-index: 2; }
/* glass reflection: bright top half, clean horizon line, faint bounce light at the bottom */
.btn-primary::before, .capsule::before, .dock-item::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .16) 46%, rgba(255, 255, 255, 0) 50%),
    radial-gradient(120% 60% at 50% 115%, rgba(var(--wave), .35), transparent 60%);
}
.capsule::before, .dock-item::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, .07) 48%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(110% 70% at 50% 120%, rgba(var(--wave), .30), transparent 62%);
}
.btn-primary {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -2px 6px rgba(var(--wave), .35),
    0 10px 26px -8px rgba(var(--wave), .75), 0 2px 18px -4px rgba(var(--wave), .45);
}
.capsule, .dock-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)), var(--glass);
  border-color: rgba(var(--wave), .28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(var(--wave), .45),
    0 10px 22px -12px rgba(var(--wave), .7), 0 0 18px -8px rgba(var(--wave), .45);
}
/* a slow light sweep across the main button */
.btn-primary::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 28%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: skewX(-20deg) translateX(-120%); animation: sheen 5.5s ease-in-out 1.2s infinite;
}
@keyframes sheen { 0% { transform: skewX(-20deg) translateX(-120%); } 22%, 100% { transform: skewX(-20deg) translateX(560%); } }
.btn-primary:active, .capsule:active, .dock-item:active { filter: brightness(1.08); }

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

/* ---------- Avira: designs in chat, nudge, talk to Hiram, finish later, details form ---------- */
.designs { align-self: stretch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.design { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); overflow: hidden; color: inherit; font: inherit; cursor: pointer; text-align: center; }
.design img { display: block; width: 100%; height: auto; aspect-ratio: 420 / 847; object-fit: cover; object-position: top; }
.design span { padding: 0 4px 8px; font-size: 12px; font-weight: 700; line-height: 1.2; }
.design:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.design:active { transform: scale(.97); }
.talk { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: inherit; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.talk svg { width: 18px; height: 18px; flex: none; }
.paybox .later { justify-self: start; align-self: flex-start; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px dashed var(--line); background: transparent; color: var(--muted); font: 700 13.5px var(--f-body); cursor: pointer; }
.direct .num.link { font-size: 13px; font-weight: 700; letter-spacing: 0; overflow-wrap: anywhere; }
.details { align-self: stretch; display: grid; gap: 10px; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); }
.details .d-intro { margin: 0; font-weight: 700; }
.details .d-intro:empty { display: none; }
.details label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted); }
.details input, .details textarea { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass-2); color: var(--ink); font: 500 16px/1.4 var(--f-body); resize: vertical; }
.nudge { position: fixed; z-index: 40; right: max(14px, env(safe-area-inset-right, 0px)); left: max(14px, env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); max-width: 380px; margin-left: auto;
  padding: 14px 14px 12px; border-radius: 20px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35); animation: nudge-in .35s ease-out; }
.nudge p { margin: 0 30px 10px 0; font-size: 15px; line-height: 1.4; }
.nudge p strong { display: block; font-family: var(--f-display); font-size: 1.05rem; }
.nudge-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nudge-chips .chip { font-size: 13px; }
.nudge-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.nudge-x svg { width: 18px; height: 18px; }
@keyframes nudge-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nudge { animation: none; } }
