/* =========================================================
   Casio Custom Studio — base tokens, reset, shared header/footer
   ========================================================= */

:root {
  --teal-900: #063338;
  --teal-700: #00626a;
  --teal-600: #009ba3;
  --teal-500: #19b2ba;
  --teal-100: #d7f0f1;
  --teal-50: #eef9f9;

  --coral-600: #ff5a36;
  --coral-700: #d1401c;

  --ink-900: #0c2127;
  --ink-700: #2a3d42;
  --ink-500: #5b6e73;
  --ink-300: #93a3a7;

  --line: #e4e9ea;
  --line-strong: #cbd4d5;
  --cream-50: #faf8f5;
  --white: #ffffff;

  --case-pink: #f3b2c3;
  --case-black: #1d1d1f;
  --case-green: #bfe3d6;
  --case-white: #efece4;

  --radius-pill: 999px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(12, 33, 39, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(12, 33, 39, 0.18);
  --shadow-lg: 0 20px 48px -16px rgba(12, 33, 39, 0.28);

  --font-ui: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;

  --header-h: 64px;
}

@media (prefers-reduced-motion: no-preference) {
  :root { --ease: cubic-bezier(.22, 1, .36, 1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: auto; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }

:where(.f1z-reset) * { min-width: 0; }

.f1z-container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) { .f1z-container { padding-inline: 32px; } }
@media (min-width: 1280px) { .f1z-container { padding-inline: 40px; } }

.f1z-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.f1z-skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--ink-900);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top .2s var(--ease, ease);
}
.f1z-skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2.5px solid var(--teal-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Shared header ---------- */
.f1z-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.f1z-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.f1z-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.f1z-brand__mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--teal-700), var(--teal-900));
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
}
.f1z-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.f1z-brand__name { font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: var(--ink-900); }
.f1z-brand__tag { font-size: 11px; letter-spacing: .14em; color: var(--teal-700); text-transform: uppercase; font-weight: 700; }

.f1z-header__nav {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-700);
}
.f1z-header__nav a { text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.f1z-header__nav a:hover, .f1z-header__nav a[aria-current="page"] { color: var(--teal-700); border-color: var(--teal-600); }
@media (min-width: 860px) { .f1z-header__nav { display: flex; } }

.f1z-header__actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Buttons ---------- */
.f1z-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s var(--ease, ease), box-shadow .15s var(--ease, ease), background-color .15s var(--ease, ease), border-color .15s var(--ease, ease), color .15s var(--ease, ease);
  min-height: 44px;
}
.f1z-btn:active { transform: translateY(1px); }
.f1z-btn--sm { padding: 8px 16px; font-size: 13.5px; min-height: 38px; }
.f1z-btn--primary { background: var(--teal-700); color: var(--white); box-shadow: var(--shadow-sm); }
.f1z-btn--primary:hover { background: var(--teal-900); box-shadow: var(--shadow-md); }
.f1z-btn--outline { background: transparent; color: var(--teal-700); border-color: var(--teal-600); }
.f1z-btn--outline:hover { background: var(--teal-50); }
.f1z-btn--coral { background: var(--coral-700); color: var(--white); box-shadow: var(--shadow-sm); }
.f1z-btn--coral:hover { background: #a8340f; box-shadow: var(--shadow-md); }
.f1z-btn--ink { background: var(--ink-900); color: var(--white); }
.f1z-btn--ink:hover { background: #163139; }
.f1z-btn--ghost { background: transparent; color: var(--ink-700); border-color: var(--line-strong); }
.f1z-btn--ghost:hover { background: var(--cream-50); border-color: var(--ink-300); }
.f1z-btn--block { width: 100%; }
.f1z-btn[disabled], .f1z-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ---------- Footer ---------- */
.f1z-footer {
  border-top: 1px solid var(--line);
  background: var(--cream-50);
  margin-top: 64px;
}
.f1z-footer__inner {
  padding-block: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-500);
}
.f1z-footer__demo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--teal-50);
  color: var(--teal-700);
  border: 1px solid var(--teal-100);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 12px;
}

@media (max-width: 859px) {
  .f1z-header__bar { height: 58px; }
}
