/* Frontness Themes — startsidan, i Premium Minimals formspråk */

:root {
  --fd-bg: #ffffff;
  --fd-bg-alt: #f5f5f7;
  --fd-card: #f5f5f7;
  --fd-ink: #1d1d1f;
  --fd-ink-2: #6e6e73;
  --fd-line: #d2d2d7;
  --fd-accent: #0a58e8;
  --fd-accent-hover: #0046c0;
  --fd-green: #1f9d63;
  --fd-night: #000000;
  --fd-night-2: #a1a1a6;
  --fd-night-card: #161617;
  --fd-night-line: #424245;
  --fd-night-accent: #4d8dff;
  --fd-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fd-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fd-ease: cubic-bezier(.25, .1, .25, 1);
  --fd-ease-out: cubic-bezier(.16, 1, .3, 1);
  --fd-gutter: clamp(1.25rem, 4vw, 2.75rem);
  --fd-header-h: 52px;
  --fd-radius-lg: 30px;
  --fd-radius-md: 20px;
  --fd-radius-sm: 12px;
  --fd-pill: 980px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--fd-header-h); }
body { margin: 0; }
.fd-page { background: var(--fd-bg); color: var(--fd-ink); font-family: var(--fd-sans); font-size: 1.0625rem; line-height: 1.5; letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.fd-page :where(h1, h2, h3, p, ol, ul, dl, dd, blockquote, pre) { margin: 0; }
.fd-page :where(ul, ol) { padding: 0; list-style: none; }
.fd-page img { display: block; max-width: 100%; height: auto; }
.fd-page a { color: inherit; }
.fd-page :focus-visible { outline: 2px solid var(--fd-accent); outline-offset: 3px; border-radius: 4px; }
.fd-skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--fd-ink); color: #fff; padding: .75rem 1.25rem; border-radius: var(--fd-pill); text-decoration: none; font-size: .875rem; }
.fd-skip:focus { top: 1rem; }
.fd-container { width: 100%; max-width: calc(1180px + var(--fd-gutter) * 2); margin-inline: auto; padding-inline: var(--fd-gutter); }
.fd-container--wide { max-width: calc(1440px + var(--fd-gutter) * 2); }

/* Header, hela bredden */
.fd-header { position: sticky; top: 0; z-index: 50; height: var(--fd-header-h); background: rgba(251, 251, 253, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.fd-header__inner { height: 100%; padding-inline: var(--fd-gutter); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.fd-logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--fd-ink); }
.fd-page .fd-logo__img { width: auto; height: 20px; }
.fd-logo__product { padding-left: .7rem; border-left: 1px solid var(--fd-line); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.fd-nav { display: flex; align-items: center; gap: 2rem; }
.fd-nav__list { display: flex; gap: 2rem; }
.fd-nav__list a { font-size: .8125rem; color: rgba(0, 0, 0, .8); text-decoration: none; transition: color .2s var(--fd-ease); }
.fd-nav__list a:hover { color: #000; }
@media (max-width: 760px) { .fd-nav__list { display: none; } }
@media (max-width: 380px) { .fd-logo__product { display: none; } }

/* Knappar och länkar */
.fd-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .7rem 1.4rem; border: 0; border-radius: var(--fd-pill); background: var(--fd-accent); color: #fff !important; font: inherit; font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: background-color .25s var(--fd-ease), transform .25s var(--fd-ease); }
.fd-btn:hover { background: var(--fd-accent-hover); }
.fd-btn:active { transform: scale(.98); }
.fd-btn--ghost { background: transparent; color: var(--fd-accent) !important; box-shadow: inset 0 0 0 1px currentColor; }
.fd-btn--ghost:hover { background: var(--fd-accent); color: #fff !important; box-shadow: none; }
.fd-btn--small { min-height: 30px; padding: .3rem .9rem; font-size: .75rem; }
.fd-page .fd-link { display: inline-flex; align-items: center; gap: .15rem; color: var(--fd-accent); text-decoration: none; font-size: 1.0625rem; }
.fd-link::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-.04em); transition: transform .25s var(--fd-ease); }
.fd-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.fd-link:hover::after { transform: translate(3px, -.04em); }

/* Sektioner och typografi */
.fd-section { padding-block: clamp(5rem, 10vw, 8.5rem); }
.fd-section--top { padding-block: clamp(2.75rem, 5vw, 4.5rem) clamp(5rem, 10vw, 8.5rem); }
.fd-section--alt { background: var(--fd-bg-alt); }
.fd-section--ink { background: var(--fd-night); color: #f5f5f7; color-scheme: dark; }
.fd-head { max-width: 860px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.fd-eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .75rem; font-size: clamp(1rem, 1.4vw, 1.1875rem); font-weight: 600; letter-spacing: -0.01em; color: var(--fd-ink-2); }
.fd-section--ink .fd-eyebrow, .fd-section--ink .fd-muted, .fd-section--ink .fd-h2 em { color: var(--fd-night-2); }
.fd-title { font-weight: 600; font-size: clamp(2.75rem, 6vw, 5.25rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.fd-gradient { background: linear-gradient(100deg, #1d1d1f 10%, #6e6e73 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fd-h2 { font-weight: 600; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.07; letter-spacing: -0.035em; text-wrap: balance; }
.fd-h2 em { font-style: normal; color: var(--fd-ink-2); }
.fd-lead { margin-top: 1.25rem; max-width: 46ch; font-size: clamp(1.125rem, 1.8vw, 1.4375rem); line-height: 1.38; letter-spacing: -0.016em; font-weight: 500; color: var(--fd-ink-2); text-wrap: pretty; }
.fd-muted { color: var(--fd-ink-2); }
.fd-head .fd-muted { margin-top: 1rem; max-width: 52ch; }
.fd-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--fd-green); }
.fd-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: fd-ping 2s var(--fd-ease-out) infinite; }
@keyframes fd-ping { from { transform: scale(1); opacity: .6; } 80%, to { transform: scale(3); opacity: 0; } }

/* Intro ovanför temana */
.fd-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 2rem 4rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.fd-intro__connect { display: grid; justify-items: start; gap: 1rem; }
@media (max-width: 960px) { .fd-intro { grid-template-columns: 1fr; } }
.fd-copy { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .4rem .4rem .4rem 1.1rem; border-radius: var(--fd-pill); background: var(--fd-bg-alt); }
.fd-copy__label { font-size: .75rem; font-weight: 600; color: var(--fd-ink-2); white-space: nowrap; }
.fd-copy code { flex: 1; min-width: 0; font-family: var(--fd-mono); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-copy__btn { flex: none; border: 0; border-radius: var(--fd-pill); padding: .5rem 1rem; background: var(--fd-ink); color: #fff; font: inherit; font-size: .8125rem; font-weight: 500; cursor: pointer; transition: background-color .2s var(--fd-ease); }
.fd-copy__btn:hover { background: #000; }
.fd-copy__btn.is-copied { background: var(--fd-green); }
@media (max-width: 480px) { .fd-copy__label { display: none; } }

/* Temakort, tre kolumner */
.fd-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 1100px) { .fd-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .fd-themes { grid-template-columns: 1fr; } }
.fd-theme { display: flex; flex-direction: column; background: var(--fd-card); border-radius: var(--fd-radius-lg); overflow: hidden; }
.fd-theme__shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; margin: .6rem .6rem 0; border-radius: calc(var(--fd-radius-lg) - .6rem); background: #e8e8ed; }
.fd-theme__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--fd-ease-out); }
.fd-theme__shot:hover img { transform: scale(1.04); }
.fd-theme__open { position: absolute; right: .9rem; bottom: .9rem; padding: .45rem .9rem; border-radius: var(--fd-pill); background: rgba(29, 29, 31, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: .8125rem; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity .3s var(--fd-ease), transform .5s var(--fd-ease-out); }
.fd-theme__shot:hover .fd-theme__open, .fd-theme__shot:focus-visible .fd-theme__open { opacity: 1; transform: none; }
.fd-theme__body { display: flex; flex-direction: column; gap: .9rem; padding: clamp(1.25rem, 2.2vw, 1.75rem); flex: 1; }
.fd-theme__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.fd-theme h3 { font-weight: 600; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.022em; }
.fd-theme__head code { font-family: var(--fd-mono); font-size: .75rem; color: var(--fd-ink-2); padding: .2rem .5rem; border-radius: 6px; background: var(--fd-bg); }
.fd-theme p { color: var(--fd-ink-2); font-size: .9375rem; }
.fd-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.fd-tags li { padding: .2rem .65rem; border-radius: var(--fd-pill); background: var(--fd-bg); font-size: .75rem; font-weight: 500; }
.fd-theme__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; padding-top: .9rem; border-top: 1px solid var(--fd-line); }
.fd-theme__facts div { display: flex; flex-direction: column-reverse; }
.fd-theme__facts dt { font-size: .6875rem; color: var(--fd-ink-2); }
.fd-theme__facts dd { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.fd-theme__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .4rem; }
.fd-theme__actions .fd-btn { min-height: 38px; padding: .5rem 1.1rem; font-size: .875rem; }
.fd-recipes summary { cursor: pointer; font-size: .8125rem; font-weight: 500; color: var(--fd-ink-2); }
.fd-recipes ul { margin-top: .5rem; display: grid; gap: .3rem; }
.fd-recipes a { font-size: .875rem; text-decoration: none; }
.fd-recipes a:hover { color: var(--fd-accent); }
.fd-recipes__label { margin-top: .8rem; font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fd-ink-2); }
.fd-recipes a span { color: var(--fd-ink-2); font-size: .75rem; }

/* Anslut */
.fd-connect { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.fd-connect .fd-head { margin-bottom: 0; }
.fd-tabs { border-radius: var(--fd-radius-md); background: var(--fd-night-card); overflow: hidden; }
.fd-tablist { display: flex; gap: .25rem; padding: .5rem; overflow-x: auto; border-bottom: 1px solid var(--fd-night-line); scrollbar-width: none; }
.fd-tablist button { flex: none; border: 0; background: transparent; color: var(--fd-night-2); padding: .5rem 1rem; border-radius: var(--fd-pill); font: inherit; font-size: .9375rem; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s; }
.fd-tablist button[aria-selected="true"] { background: rgba(255, 255, 255, .12); color: #fff; }
.fd-panel { padding: clamp(1.5rem, 3vw, 2.25rem); }
.fd-panel > p { color: var(--fd-night-2); margin-bottom: 1rem; }
.fd-steps { counter-reset: s; display: grid; gap: 1rem; }
.fd-steps li { counter-increment: s; position: relative; padding-left: 2.75rem; min-height: 1.75rem; }
.fd-steps li::before { content: counter(s); position: absolute; left: 0; top: -.05rem; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: rgba(255, 255, 255, .12); font-size: .8125rem; font-weight: 600; }
.fd-steps strong { color: #fff; font-weight: 600; }
.fd-page .fd-section--ink code { font-family: var(--fd-mono); font-size: .875em; padding: .1rem .4rem; border-radius: 6px; background: rgba(255, 255, 255, .1); word-break: break-all; }
.fd-note { margin-top: 1.5rem !important; padding-top: 1rem; border-top: 1px solid var(--fd-night-line); font-size: .875rem; color: var(--fd-night-2); }
.fd-code { position: relative; border-radius: var(--fd-radius-sm); background: #000; box-shadow: inset 0 0 0 1px var(--fd-night-line); }
.fd-code pre { padding: 1.1rem 6rem 1.1rem 1.1rem; overflow-x: auto; font-family: var(--fd-mono); font-size: .875rem; line-height: 1.6; color: #f5f5f7; }
.fd-code .fd-copy__btn { position: absolute; top: .6rem; right: .6rem; background: rgba(255, 255, 255, .14); }
.fd-prompt { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--fd-radius-md); background: var(--fd-night-card); }
.fd-prompt blockquote { margin: 0 0 1.25rem; font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
.fd-prompt .fd-copy__btn { background: var(--fd-night-accent); color: #fff; }
.fd-prompt .fd-copy__btn.is-copied { background: var(--fd-green); }

/* Verktyg */
.fd-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.fd-tools li { padding: 1.5rem; border-radius: var(--fd-radius-md); background: var(--fd-bg); }
.fd-tools code { font-family: var(--fd-mono); font-size: .875rem; font-weight: 600; }
.fd-tools p { margin-top: .6rem; font-size: .9375rem; color: var(--fd-ink-2); }
.fd-tools__note { margin-top: 1.75rem; max-width: 60ch; }

/* Footer, hela bredden som headern */
.fd-footer { border-top: 1px solid var(--fd-line); padding-block: 1.75rem; font-size: .8125rem; color: var(--fd-ink-2); }
.fd-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-inline: var(--fd-gutter); }
.fd-footer a { text-decoration: none; }
.fd-footer a:hover { text-decoration: underline; }

/* Rörelse */
.fd-js [data-fd-reveal] { opacity: 0; translate: 0 24px; transition: opacity .9s var(--fd-ease-out), translate 1.1s var(--fd-ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.fd-js [data-fd-reveal].is-visible { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fd-js [data-fd-reveal] { opacity: 1; translate: none; transition: none; }
  .fd-dot::after { animation: none; }
  .fd-theme__shot img, .fd-btn { transition: none; }
}
