/* FlashGPT shared styles. Light macOS: the page is the Mac, with a menu bar and a live notch on top,
   windows in the middle and a Dock at the bottom. System font only (no third-party font requests). */
:root {
  --bg: #fff;
  --s1: #f5f5f7;
  --s2: #ebebef;
  --s3: #e1e1e6;
  --line: rgba(0, 0, 0, .09);
  --text: #1d1d1f;
  --body: #3a3a3c;
  --muted: #6e6e73;
  --dim: #6e6e73;
  --blue: #0071e3;
  --radius: 20px;
  --wrap: 1120px;
  --bar: 38px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pop: cubic-bezier(.32, 1.25, .5, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 60px; }
body { background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .5); outline-offset: 2px; border-radius: 6px; }
::selection { background: #b3d7ff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.05; font-weight: 700; }
[hidden] { display: none !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; background: var(--text); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .15s var(--ease), background .15s; white-space: nowrap; }
.btn:hover { background: #3a3a3c; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--s1); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--s2); }
.btn.sm { height: 26px; padding: 0 12px; font-size: 13px; }

/* menu bar */
.bar { position: sticky; top: 0; z-index: 40; height: var(--bar); display: flex; align-items: center; gap: 16px; padding: 0 16px; font-size: 13.5px; font-weight: 500; background: rgba(246, 246, 248, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .07); }
.bar .brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; text-decoration: none; }
.bar .brand img { width: 18px; height: 18px; border-radius: 5px; }
.menus { display: flex; gap: 4px; }
.menus a { text-decoration: none; padding: 3px 9px; border-radius: 5px; }
.menus a:hover { background: rgba(0, 0, 0, .07); }
.extras { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.extras .sys { height: 12px; width: auto; fill: var(--text); }
.extras time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar .short { display: none; }

/* the notch: a real hover target. Closed it is the camera housing; open it is FlashGPT's panel. */
.notch { position: absolute; top: 0; left: 50%; z-index: 2; width: 200px; transform: translateX(-50%); display: grid; grid-template-rows: var(--bar) 0fr; background: #000; color: #f5f5f7; border-radius: 0 0 13px 13px; transition: width .4s var(--pop), grid-template-rows .32s var(--ease), border-radius .3s var(--ease), box-shadow .3s; }
.notch::before, .notch::after { content: ""; position: absolute; top: 0; width: 9px; height: 9px; pointer-events: none; }
.notch::before { left: -9px; background: radial-gradient(circle at 0 100%, transparent 8.5px, #000 9px); }
.notch::after { right: -9px; background: radial-gradient(circle at 100% 100%, transparent 8.5px, #000 9px); }
.notch.open { width: min(620px, calc(100vw - 16px)); grid-template-rows: var(--bar) 1fr; border-radius: 0 0 24px 24px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); }
.n-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px 0 22px; }
.n-row::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #34344a, #08080c 70%); pointer-events: none; }
.n-hit { position: absolute; inset: 0 -16px -12px; z-index: 1; border-radius: 0 0 16px 16px; cursor: default; }
.notch.open .n-hit { inset: 0; }
.n-hit:focus-visible { outline-offset: -3px; }
.n-status { font-size: 12.5px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(50% - 30px); opacity: 0; transition: opacity .2s; }
.n-pin { position: relative; z-index: 2; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; opacity: 0; visibility: hidden; transition: opacity .2s, background .15s; }
.n-pin svg { width: 10px; height: 10px; fill: #8e8e93; }
.n-pin:hover { background: #1c1c1e; }
.n-pin[aria-pressed="true"] { background: #2c2c2e; }
.n-pin[aria-pressed="true"] svg { fill: #fff; }
.notch.open .n-status { opacity: 1; }
.notch.open .n-pin { opacity: 1; visibility: visible; }
.n-body { overflow: hidden; min-height: 0; }
.n-ans { padding: 4px 22px 18px; font-size: 15px; line-height: 1.5; }
.n-ans b { font-weight: 700; color: #fff; }
.n-ans code { font: .92em ui-monospace, Menlo, monospace; }
.n-ans .w { opacity: 0; transition: opacity .12s; }
.n-ans .w.on { opacity: 1; }

/* "hover the notch" pointer */
.tip { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.tip .up { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: #fff; font-size: 12px; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* windows */
.window { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 24px 70px rgba(0, 0, 0, .14), 0 3px 10px rgba(0, 0, 0, .05); }
.titlebar { position: relative; height: 40px; display: flex; align-items: center; padding: 0 14px; background: #f6f6f6; border-bottom: 1px solid #e3e3e3; }
.titlebar .t { position: absolute; top: 0; left: 84px; right: 84px; line-height: 40px; text-align: center; font-size: 13px; font-weight: 600; color: #4d4d4f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lights { display: flex; gap: 8px; position: relative; z-index: 1; }
.lights i, .lights button { display: block; width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15); }
.lights :nth-child(2) { background: #febc2e; }
.lights :nth-child(3) { background: #28c840; }

/* footer: the Dock */
.foot { margin-top: 110px; padding: 0 16px 36px; text-align: center; }
.dock { display: inline-flex; align-items: flex-end; gap: 6px; padding: 6px 7px 10px; border-radius: 20px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(0, 0, 0, .08); box-shadow: 0 12px 40px rgba(0, 0, 0, .12); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.dock a { position: relative; display: block; width: 50px; height: 50px; transform-origin: 50% 100%; transition: transform .22s var(--pop); text-decoration: none; }
.dock a img, .dock .app { width: 100%; height: 100%; border-radius: 23%; }
.dock .app { display: grid; place-items: center; background: var(--c); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .15); }
.dock .app svg { width: 56%; height: 56%; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dock .app.paper svg { stroke: #8e8e93; }
.dock a:hover, .dock a:focus-visible { transform: scale(1.32); }
.dock a:hover + a, .dock a:has(+ a:hover) { transform: scale(1.14); }
.dock a::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); padding: 3px 9px; border-radius: 6px; background: rgba(40, 40, 42, .9); color: #fff; font-size: 10px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.dock a:hover::after, .dock a:focus-visible::after { opacity: 1; }
.dock a.run::before { content: ""; position: absolute; left: 50%; bottom: -7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--text); }
.dock .sep { align-self: stretch; width: 1px; margin: 4px 3px; background: rgba(0, 0, 0, .15); }
.foot .links { margin-top: 26px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--muted); }
.foot .links a { text-decoration: none; }
.foot .links a:hover { color: var(--text); }
.foot .fine { margin: 14px auto 0; max-width: 680px; font-size: 12px; color: var(--dim); }

/* legal + contact pages */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 0; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc .updated { margin-top: 10px; color: var(--dim); font-size: 14px; }
.doc .tip { margin-top: 18px; }
.doc .lede { margin-top: 24px; font-size: 19px; color: var(--muted); }
.doc h2 { font-size: 22px; letter-spacing: -0.015em; margin: 44px 0 12px; }
.doc h3 { font-size: 17px; letter-spacing: 0; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--body); font-size: 16px; }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 10px 0 0 20px; display: grid; gap: 6px; }
.doc a { color: var(--blue); text-underline-offset: 3px; }
.doc .caps { text-transform: uppercase; font-size: 14px; letter-spacing: .01em; }
.doc .box { background: var(--s1); border-radius: 16px; padding: 20px 22px; margin-top: 24px; }
.doc .box ul { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--body); }
.doc th { color: var(--text); font-weight: 600; }
.doc .scroll { overflow-x: auto; }

.form { display: grid; gap: 16px; margin-top: 32px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
.form input, .form select, .form textarea { background: #fff; border: 1px solid #d2d2d7; border-radius: 10px; padding: 12px 14px; font-size: 16px; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, .2); }
.form .hp { position: absolute; left: -9999px; }
.form .note { font-size: 14px; color: var(--muted); min-height: 1.4em; }

@media (max-width: 1080px) { .menus { display: none; } }
@media (max-width: 960px) { .extras time { display: none; } }
@media (max-width: 640px) { .notch { width: 116px; } .n-ans { font-size: 14px; padding: 2px 18px 16px; } }
@media (max-width: 500px) {
  .bar { padding: 0 12px; }
  .extras .sys { display: none; }
  .bar .long { display: none; }
  .bar .short { display: inline; }
  .dock { gap: 4px; padding: 5px 6px 9px; }
  .dock a { width: 38px; height: 38px; }
  .dock a.opt { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
