/* Ito Studios sites (2026-10-12): the Ito Notes app's own "glass" look, so
   the studio, the product page and the app read as one thing. Tokens are
   copied from public/app.css in itostudios/itonotes (:root[data-look="glass"]); change them
   there first, then here. 藍 ai indigo is the accent; 黄蘗 kihada is the
   thread and highlights only, never text. */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Inter var", Inter, ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --radius: 12px; --radius-lg: 20px; --pane-r: 26px;
  --glass-tint: .55;
  --glass-rgb: 255, 255, 255;
  --glass-a: calc(.28 + var(--glass-tint) * .6);
  --glass-blur: calc(18px + var(--glass-tint) * 22px);
  --glass-sat: 1.9;
  --rim: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(255, 255, 255, .25), inset 1px 0 0 rgba(255, 255, 255, .35), inset -1px 0 0 rgba(255, 255, 255, .35);
  --edge: 0 0 0 .5px rgba(0, 0, 0, .16);
  --fg: #141a26; --fg-muted: #485166; --fg-subtle: #78819a;
  --border: rgba(60, 60, 80, .12);
  --accent: #2c4a87; --accent-hover: #233c70; --accent-soft: rgba(44, 74, 135, .13); --accent-fg: #ffffff; --link: #2c4a87;
  --thread: #d49a12;
  --shadow-sm: 0 1px 2px rgba(10, 20, 50, .06);
  --shadow: 0 8px 30px -6px rgba(10, 20, 50, .18), 0 2px 6px rgba(10, 20, 50, .06);
  --wall: radial-gradient(60% 55% at 12% 8%, #9fb6e6 0%, transparent 60%), radial-gradient(50% 50% at 92% 14%, #c9d4f0 0%, transparent 62%),
          radial-gradient(50% 55% at 82% 96%, #f6d98a 0%, transparent 60%), radial-gradient(60% 55% at 6% 92%, #b9c9ea 0%, transparent 60%), #eef1f8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --glass-rgb: 22, 28, 42;
    --rim: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(255, 255, 255, .05), inset 1px 0 0 rgba(255, 255, 255, .07), inset -1px 0 0 rgba(255, 255, 255, .07);
    --edge: 0 0 0 .5px rgba(0, 0, 0, .7);
    --fg: #eef1f7; --fg-muted: #aab3c5; --fg-subtle: #7a8499;
    --border: rgba(255, 255, 255, .09);
    --accent: #7f9bda; --accent-hover: #9ab1e4; --accent-soft: rgba(127, 155, 218, .2); --accent-fg: #0b1220; --link: #9db4e8;
    --thread: #e8b53a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 10px 30px -6px rgba(0, 0, 0, .55);
    --wall: radial-gradient(60% 55% at 12% 8%, #1c3466 0%, transparent 62%), radial-gradient(50% 50% at 92% 12%, #22305a 0%, transparent 62%),
            radial-gradient(50% 55% at 82% 96%, #5a4312 0%, transparent 60%), radial-gradient(60% 55% at 6% 92%, #12244a 0%, transparent 60%), #070a12;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; background: #eef1f8; color: var(--fg);
  font: 16px/1.6 var(--font); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* The wallpaper, held still behind the page. A fixed layer, not
   background-attachment: fixed, which iOS Safari ignores. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--wall); }
@media (prefers-color-scheme: dark) { body { background: #070a12; } }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: .88em var(--mono); background: var(--accent-soft); padding: 2px 6px; border-radius: 6px; }
img { display: block; }

/* The material: one mixin for every floating surface, as in the app. */
.glass {
  background: rgba(var(--glass-rgb), calc(var(--glass-a) * .6 + .25));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow: var(--rim), var(--edge), var(--shadow);
  border-radius: var(--radius-lg);
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Top bar: a floating glass pill. */
.top { position: sticky; top: 10px; z-index: 10; margin: 10px 0 0; padding: 8px 8px 8px 14px; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand img, .brand picture { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--fg-muted); font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.nav a:not(.btn):hover { background: var(--accent-soft); color: var(--fg); text-decoration: none; }

/* Buttons, as the app's glass buttons: pills, gradient primary. */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  color: var(--fg); background: rgba(var(--glass-rgb), .6); box-shadow: var(--rim), var(--edge); transition: background .15s, transform .15s; }
.btn:hover { background: rgba(var(--glass-rgb), .85); text-decoration: none; }
.btn.primary { color: var(--accent-fg); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 .5px rgba(0, 0, 0, .2), 0 4px 14px -4px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { transform: translateY(-1px); }
.btn.small { height: 32px; padding: 0 14px; font-size: 14px; }
.btn.big { height: 46px; padding: 0 24px; font-size: 16px; }

/* Hero: a large glass pane, like the app's main pane. */
.hero { margin: 28px 0 0; padding: clamp(28px, 6vw, 64px); border-radius: var(--pane-r); }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.eyebrow b { color: var(--thread); font-weight: 600; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 18px; max-width: 18ch; }
h1::after { content: ""; display: block; width: 72px; height: 3px; margin-top: 22px; border-radius: 2px; background: var(--thread); }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--fg-muted); margin: 0 0 26px; max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.fine { font-size: 14px; color: var(--fg-subtle); margin: 0; }

h2 { margin: 56px 0 14px; padding: 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.card { padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--fg-muted); font-size: 15px; }
.card .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px;
  background: var(--accent-soft); color: var(--accent); font-size: 17px; }

/* The studio's product card. */
.product { display: grid; grid-template-columns: 76px 1fr; gap: 20px; align-items: start; padding: 24px; color: inherit; transition: transform .15s; }
.product:hover { text-decoration: none; transform: translateY(-2px); }
.product img, .product picture { width: 76px; height: 76px; }
.product h3 { margin: 0 0 4px; font-size: 22px; }
.product p { margin: 0 0 12px; color: var(--fg-muted); }
.more { color: var(--link); font-weight: 600; }

.panel { padding: clamp(22px, 4vw, 32px); }
.panel h3 { margin: 0 0 8px; font-size: 22px; }
.panel ul { margin: 12px 0; padding-left: 20px; }
.panel li { margin: 6px 0; }
.panel p { margin: 0 0 8px; }

footer { margin: 56px 0 0; padding: 22px 6px 40px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--fg-subtle); font-size: 14px; }

@media (max-width: 600px) {
  .nav a:not(.btn) { display: none; }
  .product { grid-template-columns: 1fr; }
  .hero { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
