/* Jan Tomas Studio — shared frame for every page: edge margins (top menu + footer) and the footer styles.
   Change it here and it changes on all pages. The footer markup is in /site-footer.js. */
:root{
  --edge-x:clamp(24px,3.5vw,56px);  /* distance of the top menu and the footer from the left/right edge */
  --edge-y:clamp(16px,2.2vw,28px);  /* footer: distance from the bottom edge */
  --fs-small:clamp(.75rem,.65rem + .25vw,.8125rem); /* small text: header, footer, project type, detail navigation, technical info — 12 px mobile/tablet → 13 px desktop */
  --ls-small:.03em;                 /* optical tracking for 12–13 px */
  --hdr-h:56px;                     /* header height, the same on every page and device */
}
site-footer{display:block}
/* footer spacing: one distance --fg between all blocks and the same distance above the first and below the last line */
.site-footer{--fg:48px;--fgb:47px;display:block;background:#151413;padding:calc(var(--fg) - 2px) var(--edge-x) var(--fgb)}  /* -2 px: the name's line box; 48 px to the letters */
@media (max-width:600px){.site-footer{--fgb:46px}}  /* --fgb: the same 48 px measured to the letters (the text line box adds 1–2 px below) */
html.light .site-footer{background:#ffffff}
html.light .site-footer .footer-h{color:#8a827d;-webkit-text-fill-color:#8a827d}  /* footer one tone apart from the page (dark #0b0b0b → #151413, light #f3f0eb → white) */
/* three link columns of the same structure, evenly spaced (sized to their content) */
/* layout (JT's sketch): name left + Light/Dark switch right; the three columns under the name; LinkedIn left + copyright right.
   Phones: the three columns side by side, LinkedIn and the copyright centred under each other */
.site-footer .footer-top{display:flex;flex-direction:column;align-items:stretch;gap:calc(var(--fg) - 3px);margin:0 0 var(--fgb)}
.site-footer .footer-head{display:flex;justify-content:space-between;align-items:center;gap:20px}
.site-footer .footer-brand{display:inline-flex;align-items:center;gap:10px;margin:-10px 0;padding:10px 0;color:var(--t3,#a09890);text-decoration:none;transition:color .2s ease}
.site-footer .footer-brand:hover,.site-footer .footer-brand:focus-visible{color:var(--white,#f0ede8);outline:none}
.site-footer .footer-name{white-space:nowrap;color:inherit;-webkit-text-fill-color:currentColor}
.site-footer .footer-cols{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;column-gap:96px;flex:none;width:max-content}  /* three columns of the same width (the widest one), the same fixed distance between them: when the window narrows they only move */
.site-footer .footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px}
.site-footer .footer-social{display:flex;gap:4px;margin:-12px 0 -12px -12px}  /* 44 px tap targets; the glyph lines up with the left edge */
.site-footer .footer-copy{white-space:nowrap}
.site-footer .footer-head > .theme-sw{flex:none;margin:-5px 0}  /* centred on the name line, takes its height */
@media (pointer:coarse){.site-footer .footer-head > .theme-sw{margin:-10px 0}}
@media (max-width:600px){.site-footer .footer-bottom{flex-direction:column;gap:19px}.site-footer .footer-social{margin:-12px 0}}
.site-footer .footer-social a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;color:var(--t3,#a09890);transition:color .2s ease}
.site-footer .footer-social a:hover,.site-footer .footer-social a:focus-visible{color:var(--white,#f0ede8);outline:none}
.site-footer .footer-col ul{list-style:none;margin:0;padding:0}
.site-footer .footer-col li{margin:0 0 8px}
.site-footer .footer-col li:last-child{margin-bottom:0}
.site-footer .footer-h,.site-footer .footer-col a,.site-footer .footer-copy,.site-footer .footer-name{font-family:'JTCID02','Inter',-apple-system,BlinkMacSystemFont,sans-serif;font-size:var(--fs-small);font-weight:400;font-style:normal;letter-spacing:var(--ls-small);text-transform:none;line-height:1.4}
.site-footer .footer-h{margin:0 0 14px;color:#6b6460;-webkit-text-fill-color:#6b6460}  /* column titles quieter than the links */
.site-footer .footer-col a,.site-footer .footer-copy{color:var(--t3,#a09890);-webkit-text-fill-color:var(--t3,#a09890);text-decoration:none}
.site-footer .footer-copy{margin:0;font-size:min(var(--fs-small),calc((100vw - 2 * var(--edge-x,24px)) / 25.6))} /* the copyright is always one line: on the smallest phones its size steps down just enough */
.site-footer .footer-col a{transition:color .2s ease}
.site-footer .footer-col a:hover,.site-footer .footer-col a:focus-visible{color:var(--white,#f0ede8);-webkit-text-fill-color:var(--white,#f0ede8);outline:none}
@media (max-width:819px){.site-footer .footer-cols{column-gap:20px;width:100%;max-width:44rem}}  /* phone: symbol + name above, the columns spread under it */
@media (max-width:600px){.site-footer .footer-col li{margin-bottom:10px}}

/* ── HEADER (markup + behaviour: /site-header.js) ──
   Own bar with the page background; same edge margins as the footer; hides on scroll down,
   shows on scroll up, hidden over the JT Typeface animation. */
site-header{display:block}
.site-header{position:fixed;top:0;left:0;right:0;z-index:120;display:flex;align-items:center;justify-content:space-between;gap:1rem;
  height:var(--hdr-h);box-sizing:border-box;padding:0 var(--edge-x);background:var(--black,#0b0b0b);transform:none;transition:transform .35s cubic-bezier(.4,0,.2,1)} /* no transform at rest: text renders exactly like the footer */
.site-header.hdr-hidden{transform:translateY(-100%)}
.site-header .hdr-mark{display:flex;align-items:center;text-decoration:none}
.site-header .hdr-nav{display:flex;align-items:center;gap:clamp(18px,2.2vw,32px)}
@media (max-width:479px){.site-header .hdr-nav{gap:14px}.site-header .hdr-name,.site-header .hdr-nav a,.site-header .hdr-nav > button{white-space:nowrap}} /* phones: Contact, Log in and the theme switch stay on one line with the name */
.site-header .hdr-name,.site-header .hdr-nav a,.site-header .hdr-nav > button{
  font-family:'JTCID02','Inter',-apple-system,BlinkMacSystemFont,sans-serif;font-size:var(--fs-small);font-weight:400;font-style:normal;
  letter-spacing:var(--ls-small);text-transform:none;line-height:1.4;color:var(--t3,#a09890);-webkit-text-fill-color:var(--t3,#a09890);
  text-decoration:none;background:none;border:0;padding:10px 0;cursor:pointer;transition:color .2s ease;-webkit-tap-highlight-color:transparent}
.site-header .hdr-name{padding:0;cursor:inherit}
.site-header .hdr-mark:hover .hdr-name,.site-header .hdr-nav a:hover,.site-header .hdr-nav > button:hover,
.site-header .hdr-nav a:focus-visible,.site-header .hdr-nav > button:focus-visible,.site-header .hdr-mark:focus-visible .hdr-name{color:var(--white,#f0ede8);-webkit-text-fill-color:var(--white,#f0ede8);outline:none}
.site-header [hidden]{display:none}
.theme-sw{display:flex;gap:2px;padding:2px;border-radius:var(--rad,9px);box-shadow:inset 0 0 0 1px var(--line,#5a5350)}
.theme-sw button{display:flex;align-items:center;justify-content:center;width:30px;height:26px;padding:0;border:0;border-radius:var(--rad,9px);cursor:pointer;
  color:var(--t3,#a09890);-webkit-text-fill-color:var(--t3,#a09890);background:transparent;-webkit-tap-highlight-color:transparent}
.theme-sw button svg{width:13px;height:13px}
.theme-sw button[aria-pressed="true"]{color:var(--black,#0b0b0b);-webkit-text-fill-color:var(--black,#0b0b0b);background:var(--white,#f0ede8);box-shadow:var(--glow,0 0 14px rgba(255,255,255,.35))}
@media (pointer:coarse){.theme-sw button{width:40px;height:36px}}
@media (prefers-reduced-motion:reduce){.site-header{transition:none}}

/* ── PRICING CARDS (JT Typeface) — shared: homepage and /typemoment/ ── */
/* Monthly / Yearly: the same segmented control as Aspect ratio on /typemoment/ (.an-seg) and the app */
.bill-toggle{display:inline-flex;gap:2px;padding:2px;margin:0 0 2.4rem;border:1px solid var(--ol);border-radius:var(--rad);background:rgba(0,0,0,.25)}
html.light .bill-toggle{background:rgba(0,0,0,.04)}
.bill-toggle button{flex:1 1 auto;min-width:120px;min-height:32px;padding:0 10px;border:0;border-radius:var(--rad);background:none;font-family:var(--font);font-size:16px;font-weight:400;letter-spacing:.01em;line-height:1.2;color:var(--t3);-webkit-text-fill-color:currentColor;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .2s,color .2s}
@media (pointer:coarse){.bill-toggle button{min-height:44px}}
.bill-toggle button[aria-pressed="true"]{background:var(--white);color:var(--black);box-shadow:var(--glow)}
.bill-toggle button:focus-visible{outline:1px solid var(--focus);outline-offset:-1px}
@media (hover:hover) and (pointer:fine){.bill-toggle button:hover:not([aria-pressed="true"]){color:var(--white)}}
.plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;width:100%;max-width:52rem;text-align:left}
.plan{display:flex;flex-direction:column;gap:1rem;padding:2.4rem clamp(1.25rem,3vw,2.2rem);border:1px solid var(--ol);border-radius:var(--rad)}
.plan-name{margin:0;font-family:var(--font,'JTCID02',sans-serif);font-size:clamp(1.25rem,1.5vw,1.7rem);letter-spacing:.015em;color:var(--white)}
.plan-price{margin:0;color:var(--white)}
.plan-price .amt{font-size:clamp(1.875rem,2.4vw,2.25rem);letter-spacing:0}
.plan-price .per,.plan-price .vat,.plan-save{font-size:16px;letter-spacing:.02em;color:var(--t3)}
.plan-save{margin:-.6rem 0 0;min-height:1.5em}
.plan-for,.plan ul{margin:0;font-size:16px;letter-spacing:.02em;line-height:1.5;color:var(--t2)}
.plan ul{padding-left:1.1em;flex:1}
.plan li{margin:.35rem 0}
.plan li::marker{color:var(--rose)}
.plan .ui-btn{align-self:flex-start;margin-top:.6rem}
@media (max-width:767px){.plans{grid-template-columns:1fr}}
/* three plans (Free · Personal · Commercial), the same on the homepage and /typemoment/ (markup: /site-plans.js) */
.jt-plans{display:flex;flex-direction:column;align-items:center;width:100%;margin-top:2.4rem}
.jt-plans .plan ul{list-style:none;padding-left:0}
.jt-plans .plan li{position:relative;padding-left:1.6em}
.jt-plans .plan li::before{content:"";position:absolute;left:0;top:.3em;width:1em;height:.9em;background:var(--rose);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M1.5 7.5l4.5 4.5L14.5 1.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M1.5 7.5l4.5 4.5L14.5 1.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
/* "Coming soon" buttons look the same on both pages */
.jt-plans .ui-btn[aria-disabled="true"]{opacity:.4;cursor:default}
/* agreement line under the plans (homepage and /typemoment/): the same size, colour and style as the legal note on /login/ */
.plans-legal{margin:1.5rem 0 0;text-align:center;font-size:var(--fs-small);letter-spacing:var(--ls-small);line-height:1.5;color:var(--t3)}
.plans-msg{margin:1.5rem 0 0;text-align:center;font-size:var(--fs-small);letter-spacing:var(--ls-small);line-height:1.5;color:var(--white)} /* checkout notice under the plans */
.plans-msg[hidden]{display:none}
.plans-legal-2{margin-top:.4rem}
.plans-legal a{color:inherit;-webkit-text-fill-color:currentColor;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.plans.plans-3{grid-template-columns:repeat(3,minmax(0,1fr));max-width:calc(72rem - 2 * var(--edge-x))} /* the same width on both pages */
.bill-toggle .bill-save{font-size:.8em;opacity:.7;margin-left:.4em}
@media (max-width:1023px){.plans.plans-3{grid-template-columns:1fr;max-width:34rem}}


/* "Write. Animate. Export." (homepage and /typemoment/): the app's default letter gradient (Gradient 1–3), left to right across the words,
   mixed in OKLCH so the colours stay vivid between them (no grey in the middle; browsers without it use the plain mix); in light mode a darker version of the same three colours for contrast (≥ 4.5:1 on the light background) */
.tf-grad{width:fit-content;max-width:100%;margin-left:auto;margin-right:auto;background-image:linear-gradient(90deg,#ff3b8a,#ffb347,#3b82ff);background-image:linear-gradient(90deg in oklch,#ff3b8a,#ffb347,#3b82ff);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
html.light .tf-grad{background-image:linear-gradient(90deg,#c2185b,#a15c00,#1f5fd6);background-image:linear-gradient(90deg in oklch,#c2185b,#a15c00,#1f5fd6)}

/* Pages with the JT Typeface app (homepage, /typemoment/): no visible page scrollbar. The app's Controls tab sits at the
   right edge of the screen; a click just above or below it landed on the scrollbar track and the page jumped a screen.
   Scrolling with wheel, trackpad, touch and keyboard is unchanged. */
html:has(.tf-frame),html:has(.tf-frame) body{scrollbar-width:none;-ms-overflow-style:none}
html:has(.tf-frame)::-webkit-scrollbar,html:has(.tf-frame) body::-webkit-scrollbar{display:none;width:0;height:0}

/* Narrow phones: three columns do not fit without breaking the links into two lines, so the columns go two per row
   (Studio · Contact, then Legal), each of the same width */
@media (max-width:480px){.site-footer .footer-cols{grid-auto-columns:auto;justify-content:space-between;column-gap:12px}}
@media (max-width:359px){.site-footer .footer-cols{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:var(--fgb)}}  /* the smallest phones: two rows */

/* No italics anywhere on the site: emphasised words keep only their colour (and links their underline) */
em,i{font-style:normal}

/* Light / Dark switch: a short cross-fade of the whole page (site-header.js, View Transitions) */
::view-transition-old(root),::view-transition-new(root){animation-duration:.35s;animation-timing-function:ease}
/* cookie banner (/site-consent.js) — bottom right, at the same edge distance as the header and footer (--edge-x); colors only from the site palette:
   page background, frame = field/plan frame (--ol), text = the small note under the forms (13 px, --t3, underlined link);
   both buttons exactly the form button (Send inquiry / Subscribe): 44 px, radius 9 px, active colors with glow */
.cc{position:fixed;z-index:9000;right:var(--edge-x,24px);bottom:max(var(--edge-x,24px),env(safe-area-inset-bottom));width:min(420px,calc(100% - 2 * var(--edge-x,24px)));box-sizing:border-box;
  display:flex;flex-direction:column;gap:16px;padding:20px;background:#0b0b0b;border:1px solid rgba(255,255,255,.24);border-radius:9px;
  font-family:'JTCID02','Inter',-apple-system,BlinkMacSystemFont,sans-serif;opacity:0;transform:translateY(12px);transition:opacity .3s ease,transform .3s ease}
.cc.on{opacity:1;transform:none}
html.light .cc{background:#f3f0eb;border-color:rgba(0,0,0,.22)}
.cc-t{margin:0;font-size:var(--fs-small,13px);letter-spacing:var(--ls-small,.03em);line-height:1.5;color:#a09890;-webkit-text-fill-color:#a09890}
html.light .cc-t{color:#5f5752;-webkit-text-fill-color:#5f5752}
.cc-t a{color:inherit;-webkit-text-fill-color:inherit;text-decoration:underline;text-underline-offset:2px}
.cc-b{display:flex;gap:12px}
.cc-b .cc-btn{flex:1 1 0}
.cc-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;height:44px;padding:0 20px;border-radius:9px;line-height:1;
  font-family:inherit;font-size:16px;font-weight:400;font-style:normal;letter-spacing:.02em;text-transform:none;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:opacity .2s ease;
  color:#0b0b0b;-webkit-text-fill-color:#0b0b0b;background:#f0ede8;border:1px solid #f0ede8;box-shadow:0 0 14px rgba(255,255,255,.35)}
html.light .cc-btn{color:#f3f0eb;-webkit-text-fill-color:#f3f0eb;background:#161616;border-color:#161616;box-shadow:0 0 12px rgba(0,0,0,.14)}
.cc-btn:focus-visible{outline:0;border-color:rgba(255,255,255,.6)}
html.light .cc-btn:focus-visible{border-color:rgba(0,0,0,.5)}
@media (hover:hover) and (pointer:fine){.cc-btn:hover{opacity:.82}}
@media (prefers-reduced-motion:reduce){.cc{transition:none}}
