/* Tagetto marketing site — shared styles.
   Design tokens (--tagetto-*, --color-*) are emitted per page from the Claude Design export.
   This file adds: self-hosted fonts, design-system component classes, modal, tabs, hero loop. */

/* Self-hosted variable fonts (exported from the design; same files cover 300–700) */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url('/assets/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url('/assets/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Azeret Mono'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/azeret-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Azeret Mono'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/azeret-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

html { scroll-behavior: smooth; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Button (ported from components/forms/Button.jsx) */
.ds-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; font-size: 0.78rem;
  font-family: var(--font-ui); font-weight: var(--weight-medium, 500); border-radius: var(--radius-sm, 5px);
  cursor: pointer; line-height: 1; text-decoration: none; transition: background var(--duration-fast, 120ms) var(--ease-standard, ease); }
.ds-btn:disabled { opacity: .5; cursor: default; }
.ds-btn--primary { background: var(--color-primary); color: #fff; border: 1px solid transparent; }
.ds-btn--primary:hover:not(:disabled) { background: var(--color-primary-hover); }
.ds-btn--accent { background: var(--color-accent); color: #fff; border: 1px solid transparent; }
.ds-btn--accent:hover:not(:disabled) { background: #c14d26; }
.ds-btn--secondary { background: #fff; color: var(--color-text-muted-strong); border: 1px solid var(--color-border-strong); }
.ds-btn--secondary:hover:not(:disabled) { background: var(--color-bg); }
.ds-btn--ghost { background: transparent; color: var(--color-primary); border: 1px solid transparent; }
.ds-btn--ghost:hover:not(:disabled) { background: var(--color-primary-soft); }

/* Input / Select (components/forms/Input.jsx, Select.jsx) */
.ds-field { display: grid; gap: 4px; font-family: var(--font-ui); }
.ds-field__label { font-size: 0.7rem; font-weight: var(--weight-medium, 500); color: var(--color-text-muted-strong); }
.ds-field__wrap { position: relative; display: block; }
.ds-input { width: 100%; min-height: 34px; padding: 0 12px; font-size: 0.8rem; font-family: var(--font-ui); color: var(--color-text);
  background: #fff; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm, 5px); outline: none;
  transition: border-color var(--duration-fast, 120ms), box-shadow var(--duration-fast, 120ms); }
.ds-input:focus { border-color: var(--color-primary); box-shadow: var(--shadow-focus); }
.ds-input:disabled { background: var(--color-bg); }
.ds-select { min-height: 34px; padding: 0 10px; font-size: 0.72rem; font-family: var(--font-ui); color: var(--color-text);
  background: var(--color-surface-sunken); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm, 5px); outline: none; }

/* Tabs (components/overlays/Tabs.jsx) */
.ds-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--color-border); font-family: var(--font-ui); }
.ds-tab { padding: 10px 12px; font-size: 0.74rem; font-weight: 600; color: var(--color-text-muted); background: transparent; border: none;
  border-bottom: 2px solid transparent; cursor: pointer; margin-bottom: -1px; }
.ds-tab.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* Modal (components/overlays/Modal.jsx) */
.ds-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(26,37,64,0.45); padding: 16px; }
.ds-modal[hidden] { display: none; }
.ds-modal__card { position: relative; width: 100%; max-width: 480px; border-radius: var(--radius-md, 7px); border: 1px solid var(--tagetto-drawer-border, var(--color-border));
  background: #fff; padding: 24px; box-shadow: var(--shadow-drawer); font-family: var(--font-ui); max-height: calc(100vh - 32px); overflow: auto; }
.ds-modal__title { margin: 0; font-size: 16px; font-weight: 900; letter-spacing: -0.02em; color: var(--color-text); }
.ds-modal__body { margin-top: 16px; }
.ds-modal__close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 22px; line-height: 1; color: var(--color-text-muted); cursor: pointer; }
.ds-modal__close:hover { color: var(--color-text); }
body.modal-open { overflow: hidden; }
.form-success, .form-error { font-family: var(--font-ui); }
.form-error { font-size: 13px; color: var(--tagetto-coral); }

/* Hero loop container: dark poster until the animation script mounts */
.hero-loop { position: absolute; inset: 0; }
.hero-loop__poster { position: absolute; inset: 0; background: radial-gradient(120% 100% at 30% 20%, #12182a 0%, #07111f 60%); }
.hero-loop__poster::after { content: ""; position: absolute; left: 50%; top: 45%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  background: #d85a30; box-shadow: 0 0 40px 10px rgba(216,90,48,.35); animation: heroPulse 2.4s ease-in-out infinite; }
@keyframes heroPulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }
.hero-loop.is-mounted .hero-loop__poster { display: none; }
@media (prefers-reduced-motion: reduce) { .hero-loop__poster::after { animation: none; } }

/* generated hover states */
.hov-1:hover{color:var(--color-primary) !important;}
.hov-2:hover{transform:translateY(-2px) !important; box-shadow:0 12px 24px rgba(26,37,64,0.08) !important;}
