/* BUKA landing page at / (website only). The hero is the design handoff "BUKA landing", screen 2a "Plakat s grafikom"
   (1440 × 900); the sections below it tell a new visitor what BUKA does (focus of 31 Oct 2026: phones first).
   The tokens and the font come from site.css. Below 1200 px the hero is one column. Below 768 px (phones) the page has a
   24 px padding, the buttons fill the width and the graphic of the hero is hidden: the wizard demo follows it. */

.landing-page { box-sizing: border-box; max-width: 1440px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 40px 64px 32px; display: flex; flex-direction: column; line-height: normal; }

/* The header wraps when the nav does not fit beside the wordmark (a phone with the link „Cijene”). */
.landing-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.landing-wordmark { font-size: 22px; font-weight: 600; letter-spacing: 0.02em; }
.landing-nav { display: flex; flex-wrap: wrap; gap: 24px; white-space: nowrap; }
.landing-nav a { font-size: 16px; color: var(--ink); }
.landing-narrow { display: none; }
.landing-nav a:hover, .landing-nav a:focus-visible { color: var(--accent); }

.landing-hero { margin: 72px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px; align-items: start; }
/* The copy is as high as the graphic, so the copy ends at the lower edge of the graphic. */
.landing-copy { display: flex; flex-direction: column; min-height: 520px; }
.landing-copy h1 { margin: 0; font-size: clamp(64px, 7.8vw, 112px); font-weight: 500; letter-spacing: -0.045em; line-height: 0.9; }
.landing-dot { color: var(--accent); }
.landing-bottom { margin-top: auto; padding-top: 40px; display: flex; flex-direction: column; gap: 28px; }
.landing-bottom p { margin: 0; max-width: 560px; font-size: 20px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.landing-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.landing-button { display: inline-block; padding: 13px 22px; border: 1px solid var(--ink); font-size: 16px; text-align: center; transition: background-color 120ms, border-color 120ms, color 120ms; }
.landing-button.primary { background: var(--ink); color: var(--paper); }
.landing-button.primary:hover, .landing-button.primary:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.landing-button.secondary { color: var(--ink); }
.landing-button.secondary:hover, .landing-button.secondary:focus-visible { background: var(--ink); color: var(--paper); }

.landing-figure { position: relative; box-sizing: border-box; width: 520px; height: 520px; border: 1px solid var(--ink); }
.landing-figure canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* The sections: a title block, then the content. On a wide screen the split sections put them side by side, with the
   content in the column of the graphic. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.landing-section { margin-top: 128px; scroll-margin-top: 24px; }
.landing-split { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px; align-items: start; }
.landing-head { display: flex; flex-direction: column; gap: 16px; }
.landing-eyebrow { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.landing-section h2 { margin: 0; font-size: clamp(30px, 4.4vw, 56px); font-weight: 500; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
.landing-text { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* The wizard demo of step 1 (/demo/carobnjak?prikaz=crtez, landing.js): a square frame, the caption of the demo under it. */
.landing-demo { margin: 0; }
.landing-demo-frame { position: relative; aspect-ratio: 1; }
.landing-demo-frame iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
/* The border lies over the frame: at a size of part pixels the frame would cover an edge of it. */
.landing-demo-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--ink); pointer-events: none; }

/* What BUKA calculates: one row for each tab. */
.landing-rows { margin: 0; border-top: 1px solid var(--ink); }
.landing-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule-light); }
.landing-rows dt { font-size: 18px; font-weight: 500; }
.landing-rows dd { margin: 0; font-size: 16px; color: var(--ink-2); white-space: nowrap; }

/* The three steps: the wizard demo, then screenshots of the sample project on a phone, each a square with a caption.
   Side by side the rows of the steps line up (subgrid): the numbers, the titles, the texts and the squares start at
   the same height, also when one text is shorter. */
.landing-steps { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); column-gap: 32px; }
.landing-steps li { border-top: 1px solid var(--ink); padding-top: 16px; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 8px; }
.landing-step-number { font-size: 14px; font-weight: 500; color: var(--accent); }
.landing-steps h3 { margin: 0; font-size: 20px; font-weight: 500; }
.landing-step-media { margin: 12px 0 0; }
/* Steps 02 and 03 (mock-up screen 10, 11 Nov 2026): on a darker paper field, the results in a window with a title bar and a
   shadow, and the Iskaznica as an A4 sheet with a second sheet behind it. The field cuts what is below its edge. */
.landing-shot { position: relative; box-sizing: border-box; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--ink); background: #E8DFCA; }
.landing-shot img { display: block; width: 100%; height: auto; }
.landing-window { position: absolute; left: 10%; top: 10%; width: 80%; box-sizing: border-box; background: var(--paper); border: 1px solid var(--ink); box-shadow: 12px 12px 0 #DBCFB5; }
.landing-window-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--ink); color: var(--paper); font-size: 12px; }
.landing-window-bar > span { width: 8px; height: 8px; border: 1px solid var(--paper); }
.landing-window-bar > .landing-window-title { width: auto; height: auto; margin-left: 10px; border: 0; letter-spacing: 0.04em; }
.landing-sheet { position: absolute; left: 15%; top: 10%; width: 70%; aspect-ratio: 1 / 1.414; box-sizing: border-box; overflow: hidden; background: var(--paper); border: 1px solid var(--ink); }
.landing-sheet.back { left: calc(15% + 12px); top: calc(10% + 12px); }

/* Cijene (mock-up screen 10, PKP-228; only for a user of CreditGate.Applies): the tiles of the page Cijene (site.css) at the
   width of the board. */
.landing-prices { margin-top: 40px; max-width: 1040px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

.landing-end { display: flex; flex-direction: column; gap: 28px; }
.landing-end h2 { font-size: clamp(34px, 5.6vw, 72px); }

/* The page that a phone shows once after the sign-in (/na-racunalu). */
.desk-tip { margin: 72px 0 40px; display: flex; flex-direction: column; gap: 28px; max-width: 760px; }
.desk-tip h1 { margin: 0; font-size: clamp(40px, 10vw, 72px); font-weight: 500; letter-spacing: -0.04em; line-height: 0.95; }
.desk-tip .nowrap { white-space: nowrap; }
.desk-tip p { margin: 0; max-width: 560px; font-size: 20px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* The footer stays at the bottom of the screen. */
.landing-footer { margin-top: auto; padding-top: 96px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.landing-footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.landing-footer a:hover { color: var(--accent); }

@media (max-width: 1199px) {
    .landing-hero, .landing-split { grid-template-columns: minmax(0, 1fr); }
    .landing-copy { min-height: 0; }
    .landing-figure { width: 100%; max-width: 520px; height: auto; aspect-ratio: 1; }
    .landing-split { gap: 32px; }
}

@media (max-width: 767px) {
    .landing-page { padding: 24px 24px 32px; }
    .landing-hero { margin-top: 40px; }
    .landing-copy h1 { font-size: clamp(44px, 12vw, 64px); }
    .landing-bottom { padding-top: 24px; }
    .landing-bottom p { font-size: 19px; line-height: 1.45; }
    .landing-buttons { flex-direction: column; gap: 10px; }
    .landing-button { display: block; padding: 14px 20px; font-size: 17px; }
    /* On a phone the graphic of the hero is a screen of scrolling with no information: the demo follows instead. */
    .landing-figure { display: none; }
    .landing-section { margin-top: 64px; }
    .landing-prices { margin-top: 24px; }
    .landing-split { gap: 24px; }
    .landing-steps { margin-top: 24px; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 0; }
    .landing-steps li { grid-row: auto; grid-template-rows: none; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding: 16px 0; }
    .landing-step-number { padding-top: 4px; }
    .landing-steps li > :not(.landing-step-number) { grid-column: 2; }
    /* The demo and the screenshots use the full width of the phone. */
    .landing-steps li > .landing-step-media { grid-column: 1 / -1; }
    .landing-steps h3 { font-size: 18px; }
    .landing-footer { padding-top: 48px; }
    .landing-nav { gap: 16px; }
    .landing-wide { display: none; }
    .landing-narrow { display: inline; }
}
