/* ==========================================================================
   fx-seg.css: the five audience pages (/fuer-webdesigner, /fuer-architekten,
   /fuer-hersteller, /fuer-akademien, /fuer-teams and their /en/ + /he/ twins).
   Same design language as the home page (index.html keeps its own inline copy
   of these tokens; the values here are the same, change both together).
   Every rule uses logical properties (inline-start/end), so the Hebrew pages
   mirror without a second stylesheet.
   Section banners match the data-sid of the HTML section they style.
   ========================================================================== */

/* ==========================================================================
   TOKENS: emerald / copper on deep ink (index.html :root)
   ========================================================================== */
:root {
  --ink: #101d28; --ink-raised: #172b35; --hero: #061721;
  --emerald: #007f68; --emerald-hover: #006451; --jade: #59c3a0;
  --copper: #c5784f; --copper-bright: #d4976e; --copper-dark: #925031;
  --champagne: #d8c5a3; --ivory: #f4f0e7;
  --muted: #b4c2c5; --muted-light: #536268;
  --line: rgba(244,240,231,.16); --line-light: rgba(16,29,40,.16);
  --radius: 16px; --max: 1376px; --gutter: 48px; --section: 88px;
  --body: "Segoe UI", Arial, sans-serif;
  --accent: Georgia, "Times New Roman", serif;
  --mono: Consolas, monospace;
  --ease: 180ms ease-out;
}

/* ==========================================================================
   BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ink); color: var(--ivory); font-family: var(--body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; }
h2 { font-size: clamp(34px, 3.6vw, 52px); font-weight: 650; }
h3 { font-size: 24px; letter-spacing: -.025em; }
p { max-width: 64ch; }
:focus-visible { outline: 3px solid var(--jade); outline-offset: 5px; }
.light :focus-visible { outline-color: var(--emerald); }
::selection { background: var(--copper); color: var(--ink); }
.container { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: var(--section); }
.light { background: var(--ivory); color: var(--ink); }
.skip-link { position: fixed; inset-block-start: -90px; inset-inline-start: 20px; z-index: 100; background: var(--ivory); color: var(--ink); padding: 12px 20px; }
.skip-link:focus { inset-block-start: 8px; }
/* Copy arrives per language from COPY-<lang>.md. An element whose text is not
   written yet must not leave a hole in the layout, so empty copy collapses. */
[data-t]:empty { display: none; }

/* ==========================================================================
   SHARED TYPE + BUTTONS (same as the home page)
   ========================================================================== */
.eyebrow { max-width: none; font-size: 11px; letter-spacing: .2em; font-weight: 650; text-transform: uppercase; color: var(--copper-bright); margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.light .eyebrow { color: var(--copper-dark); }
/* Hebrew has no capitals and the tracking pulls the letters apart */
:lang(he) .eyebrow { letter-spacing: .04em; font-size: 13px; }
.accent { font-family: var(--accent); font-style: italic; font-weight: 400; color: var(--copper-bright); }
.light .accent { color: var(--emerald); }
:lang(he) .accent { font-family: var(--body); font-style: normal; font-weight: 650; }

.button { min-height: 50px; padding: 13px 24px; border: 1px solid transparent; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; font-size: 15px; font-weight: 650; line-height: 1.4; text-align: center; transition: transform var(--ease), background var(--ease), border-color var(--ease); }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(120deg, #008b73, #006a5b); border-color: #19a58c; box-shadow: inset 0 1px 0 #7ce8c14d; }
.button-primary:hover { background: var(--emerald-hover); }
.button-copper { color: var(--ink); background: linear-gradient(125deg, #c78352, #e6a16b); border-color: #f1b784; box-shadow: inset 0 1px 0 #ffffff42; }
.button-copper:hover { background: var(--copper-bright); }
.button-outline { background: transparent; border-color: var(--line); color: var(--ivory); }
.button-outline:hover { border-color: var(--champagne); }
.light .button-outline { border-color: var(--line-light); color: var(--ink); }
.arrow { font-size: 20px; line-height: 1; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.microcopy { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ==========================================================================
   HEADER (data-sid="header"): logo back to the home page, language, login,
   the one sign-up button. No section nav: the page is short and reads top
   to bottom, so the header stays at four controls.
   ========================================================================== */
.site-header { background: var(--hero); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { flex-shrink: 0; width: 220px; }
.header-actions { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.header-actions .button { min-height: 44px; padding: 10px 18px; font-size: 13px; }
.header-login:hover { color: var(--jade); }
/* Language: three plain links to the same page in the other language (no JS).
   They count as one control (data-group="lang"). */
.lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang a { min-width: 44px; min-height: 40px; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font: 12px var(--mono); letter-spacing: .04em; }
/* The current language: the page's own lang attribute (lang.php sets it), so the
   markup stays the same in all three languages. */
html[lang="de"] .lang a[hreflang="de"], html[lang="en"] .lang a[hreflang="en"], html[lang="he"] .lang a[hreflang="he"] { background: var(--ink-raised); color: var(--ivory); }
.lang a:hover { color: var(--ivory); }

/* ==========================================================================
   HERO (data-sid="hero"): the promise on the left, a real screen of the
   product on the right with ONE copper pin on it: the pin is the product.
   ========================================================================== */
.seg-hero { background: radial-gradient(120% 90% at 85% 10%, #0d2a33 0%, var(--hero) 60%); padding-block: 40px 80px; }
.seg-hero .grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; min-height: 520px; }
.seg-hero h1 { font-size: clamp(44px, 5vw, 76px); font-weight: 750; letter-spacing: -.05em; line-height: 1.02; }
.seg-hero h1 > span { display: block; }
:lang(he) .seg-hero h1 { letter-spacing: -.02em; }
.seg-hero .lead { font-size: 19px; color: var(--muted); margin-top: 24px; max-width: 34em; }
.seg-hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
/* The screen: a real product screenshot in a thin device frame. */
.shot { position: relative; margin: 0; }
.shot .frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0b1820; box-shadow: 0 40px 80px -40px rgba(0,0,0,.85); }
.shot .frame::before { content: ""; display: block; height: 26px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 16px 13px, #3a4a52 4px, transparent 5px), radial-gradient(circle at 32px 13px, #3a4a52 4px, transparent 5px), radial-gradient(circle at 48px 13px, #3a4a52 4px, transparent 5px), #0f2029; }
.shot img { width: 100%; }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; }
.light .shot figcaption { color: var(--muted-light); }
/* The pin: --x (percent) and --y (0..1) are the spot on the screenshot itself,
   below the 26px title bar, so each page places it on what its image is about.
   Physical left, not inline-start: a screenshot does not mirror in Hebrew. */
.pin { position: absolute; left: var(--x, 50%); top: calc(26px + (100% - 26px) * var(--y, .5)); width: 34px; height: 34px; margin: -34px 0 0 -2px; border-radius: 50% 50% 50% 0; background: var(--copper); border: 2px solid #f6c49d; box-shadow: 0 6px 18px rgba(0,0,0,.5); transform: rotate(-45deg); transform-origin: 0 100%; }
.pin::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .pin { animation: pin-drop 900ms cubic-bezier(.2,.9,.3,1.3) 400ms both; }
  @keyframes pin-drop { from { opacity: 0; translate: 0 -40px; } to { opacity: 1; translate: 0 0; } }
}

/* ==========================================================================
   FILM (data-sid="film"): this audience's film, the section's one idea.
   The box takes the shape of the file fx-film.js plays: 16:9 on a landscape
   screen, 9:16 on a portrait one (never one letterboxed into the other).
   The shape is decided here, before any script runs, so the page never jumps.
   Portrait: as wide as the column, but never taller than ~80% of the screen.
   ========================================================================== */
.film { padding-block-start: 24px; }
.film-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 48px; margin-bottom: 32px; }
.film-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.film-cap { font-size: 15px; color: var(--muted); }
.film-head { max-width: 1120px; margin-inline: auto; }
.film-box { position: relative; width: 100%; max-width: 1120px; aspect-ratio: 16 / 9; margin-inline: auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #0b1820; box-shadow: 0 40px 80px -40px rgba(0,0,0,.85); }
.film-video { display: block; width: 100%; height: 100%; }
@media (orientation: portrait) {
  .film-head { grid-template-columns: 1fr; }
  .film-box { aspect-ratio: 9 / 16; width: min(100%, calc(80vh * 9 / 16)); width: min(100%, calc(80svh * 9 / 16)); }
}

/* ==========================================================================
   USE CASES (data-sid="usecases"): three real situations, each as
   before → in ClickAndSay → result next to the screen that does it.
   The rows alternate sides; that rhythm is the section's one idea.
   ========================================================================== */
.usecases .intro { margin-bottom: 56px; max-width: 760px; }
.usecase { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; padding-block: 48px; border-top: 1px solid var(--line-light); }
.usecase:nth-of-type(even) .uc-copy { order: 2; }
.uc-beta { max-width: 760px; margin-top: 8px; padding-left: 16px; border-left: 2px solid var(--copper); font-size: 16px; line-height: 1.5; }
.uc-num { font: 14px var(--mono); color: var(--copper-dark); margin-bottom: 14px; display: block; }
.uc-copy h3 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 22px; }
.uc-steps { display: grid; gap: 14px; }
.uc-steps div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; font-size: 16px; line-height: 1.5; }
.uc-steps dt { font-size: 12px; letter-spacing: .06em; font-weight: 650; color: var(--muted-light); padding-top: 4px; }
:lang(he) .uc-steps dt { letter-spacing: 0; font-size: 13px; }
.uc-steps div:last-child dd { font-weight: 650; }

/* ==========================================================================
   PLAN (data-sid="plan"): which plan fits this audience, one card.
   ========================================================================== */
.plan .card { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 44px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--ink-raised), var(--ink)); }
.plan .card h2 { font-size: clamp(30px, 3vw, 44px); }
.plan .card p { color: var(--muted); margin-top: 16px; font-size: 17px; }
.plan .plan-body { margin-top: 18px; color: var(--muted); font-size: 16px; display: grid; gap: 12px; max-width: 68ch; }
.plan .plan-body p { margin: 0; }
.plan .plan-body ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; }
.plan .plan-body li::marker { color: var(--copper-bright); }
.plan .plan-name { font: 13px var(--mono); color: var(--copper-bright); letter-spacing: .06em; margin-bottom: 14px; display: block; }

/* ==========================================================================
   FAQ (data-sid="faq"): five questions, native <details>.
   ========================================================================== */
.faq .grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq details { border-top: 1px solid var(--line-light); }
.faq details:last-child { border-bottom: 1px solid var(--line-light); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding-block: 22px; padding-inline: 0 32px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 18px; color: var(--copper-dark); font-size: 22px; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { font-size: 16px; color: var(--muted-light); padding-block: 0 24px; padding-inline: 0 24px; }

/* ==========================================================================
   FINAL CTA (data-sid="final-cta")
   ========================================================================== */
.final-cta { padding-block: 72px; background: var(--hero); }
.final-cta .container { display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.final-cta h2 { max-width: 720px; }
.final-cta p { color: var(--muted); margin-top: 16px; font-size: 16px; }
.final-cta .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   FOOTER (data-sid="footer"): the other four audiences, then the legal links.
   ========================================================================== */
.site-footer { font-size: 13px; color: var(--muted); }
.site-footer .container { padding-block: 32px; border-top: 1px solid var(--line); display: grid; gap: 22px; }
.seg-switch { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.seg-switch a { padding-block: 8px; color: var(--ivory); }
.seg-switch a:hover, .footer-links a:hover { color: var(--jade); }
.seg-switch a[aria-current="page"] { color: var(--copper-bright); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-links a { display: inline-block; padding-block: 8px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .seg-hero .grid, .usecase { grid-template-columns: 1fr; gap: 40px; }
  .usecase:nth-of-type(even) .uc-copy { order: 0; }
  .faq .grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; --section: 64px; }
  body { font-size: 17px; }
  .brand { width: 44px; }   /* the <picture> swaps to the symbol-only logo here */
  .header-login { display: none; }
  .header-inner { min-height: 68px; gap: 12px; }
  .header-actions { gap: 6px; }
  .lang a { min-width: 36px; padding-inline: 6px; }
  .header-actions .button { padding-inline: 12px; }
  .seg-hero { padding-block: 24px 56px; }
  .seg-hero .grid { min-height: 0; }
  .seg-hero .cta-row .button { width: 100%; }
  .uc-steps div { grid-template-columns: 1fr; gap: 4px; }
  .plan .card { grid-template-columns: 1fr; padding: 28px; }
  .final-cta .container { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover { transform: none; }
}
