/* Sezona landing page (moja-sezona.com). Colours come from tokens.css (generated from design/tokens.json);
   the sea, sun and surface values mirror web/src/styles/theme.css. See landing/BRIEF.md. */

@font-face {
  font-family: 'Instrument Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(fonts/instrument-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(fonts/instrument-sans-latin-wght-normal.woff2) format('woff2-variations');
  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;
}

:root {
  --ap-tint-s: 42%; --ap-tint-l: 88%; --ap-swatch-s: 45%; --ap-swatch-l: 66%;
  --color-surface: #FFFEFB;
  --color-sea: #146069;
  --color-sea-deep: #093D47;
  --color-sun: #F7C13A;
  --color-sun-ink: #231F1A;
  --color-on-sea: #FFFFFF;
  --color-on-sea-soft: rgba(255, 255, 255, 0.86);
  --sea-gradient: linear-gradient(135deg, var(--color-sea-deep), var(--color-sea));
  --card-shadow: 0 10px 30px rgba(64, 46, 20, 0.10), 0 2px 6px rgba(64, 46, 20, 0.06);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ap-tint-s: 35%; --ap-tint-l: 20%; --ap-swatch-s: 38%; --ap-swatch-l: 46%;
    --color-surface: #231E17;
    --color-sea: #206A75;
    --color-sea-deep: #103E47;
    --color-sun: #F7CB55;
    --card-shadow: none;
  }
}
:root[data-theme="dark"] {
  --ap-tint-s: 35%; --ap-tint-l: 20%; --ap-swatch-s: 38%; --ap-swatch-l: 46%;
  --color-surface: #231E17;
  --color-sea: #206A75;
  --color-sea-deep: #103E47;
  --color-sun: #F7CB55;
  --card-shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: var(--color-selection); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }
.sea :focus-visible, .end :focus-visible { outline-color: var(--color-sun); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 10px; background: var(--color-sun); color: var(--color-sun-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Sea: the brand field. Owns the top of the page and the closing band. */
.sea, .end { position: relative; overflow: hidden; background: var(--sea-gradient); color: var(--color-on-sea); }
.sea { padding-bottom: clamp(150px, 16vw, 220px); }
.sea::after {
  /* the shore: the page's sand ground meets the sea in a wave, as in the app's sun mark */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(48px, 7vw, 96px);
  background: var(--color-bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 62 C260 8 470 8 720 52 S1190 108 1440 40 V100 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 62 C260 8 470 8 720 52 S1190 108 1440 40 V100 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.sea-sun {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(48vw, 740px);
  background: url(favicon.svg) 62% 34% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 60%);
  mask-image: linear-gradient(to right, transparent, #000 60%);
  opacity: 0.95;
  pointer-events: none;
}

.nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { display: inline-block; width: 34px; height: 34px; border-radius: 10px; background: url(favicon.svg) center / cover no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.brand-mark.small { width: 20px; height: 20px; border-radius: 6px; vertical-align: -4px; margin-right: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--color-on-sea-soft); transition: color 150ms ease-out, background-color 150ms ease-out; }
.nav-links a:hover { color: var(--color-on-sea); background: rgba(255, 255, 255, 0.10); }
.nav-links .nav-signin { margin-left: 8px; padding: 0 18px; color: var(--color-on-sea); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
.nav-narrow-inline { display: none; }

.hero { position: relative; z-index: 1; padding-top: clamp(40px, 7vw, 96px); }
.hero h1 { max-width: 12ch; font-size: clamp(2.75rem, 1.2rem + 5.2vw, 5.75rem); line-height: 1.0; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.lead { max-width: 44ch; margin-top: 24px; font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem); line-height: 1.5; color: var(--color-on-sea-soft); text-wrap: pretty; }

.signup { margin-top: 36px; max-width: 600px; }
.signup label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--color-on-sea); }
.signup-row { display: flex; gap: 10px; }
.signup input {
  flex: 1 1 auto; min-width: 0; height: 56px; padding: 0 18px; border: 0; border-radius: 14px;
  background: var(--color-surface-input); color: var(--color-ink); font: inherit; font-size: 17px; caret-color: var(--color-accent);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.10);
}
.signup input::placeholder { color: var(--color-text3); }
.signup input:focus-visible { outline: 2px solid var(--color-sun); outline-offset: 2px; }
.signup button, .end-cta {
  flex: none; display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 26px; border: 0; border-radius: 14px;
  background: var(--color-sun); color: var(--color-sun-ink); font: inherit; font-size: 17px; font-weight: 650; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(4, 30, 36, 0.28);
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}
.signup button:hover, .end-cta:hover { background: color-mix(in srgb, var(--color-sun) 88%, #fff); }
.signup button:active, .end-cta:active { transform: translateY(1px); }
.signup-note { margin-top: 12px; font-size: 15px; color: var(--color-on-sea-soft); }

/* The product, shown as the app draws it */
.stage { position: relative; z-index: 2; margin-top: calc(-1 * clamp(110px, 12vw, 170px)); }
.tl-card { overflow: hidden; border-radius: 20px; background: var(--color-surface); box-shadow: var(--card-shadow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tl-card { box-shadow: 0 0 0 1px var(--color-rule); } }
:root[data-theme="dark"] .tl-card, :root[data-theme="dark"] .panel { box-shadow: 0 0 0 1px var(--color-rule); }
.stage figcaption { max-width: 72ch; margin-top: 16px; font-size: 14.5px; line-height: 1.5; color: var(--color-text2); }
.stage figcaption strong { color: var(--color-ink); }

.tl { display: flex; align-items: stretch; --lane: 76px; --head: 62px; }
.tl-names { flex: 0 0 168px; position: relative; z-index: 3; background: var(--color-surface); border-right: 1px solid var(--color-rule); }
.tl-names-head { height: var(--head); border-bottom: 1px solid var(--color-rule); }
.tl-name {
  --tint: hsl(var(--h) var(--ap-tint-s) var(--ap-tint-l));
  display: flex; align-items: center; gap: 8px; height: var(--lane); padding: 0 12px 0 18px;
  border-bottom: 1px solid var(--color-rule); font-size: 14px; font-weight: 700;
  background-color: color-mix(in srgb, var(--tint) 40%, transparent);
}
.tl-name:last-child, .tl-lane:last-child { border-bottom: 0; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; background: hsl(var(--h) var(--ap-swatch-s) var(--ap-swatch-l)); }
.tl-scroll { flex: 1 1 auto; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--color-rule) transparent; }
.tl-grid { min-width: 640px; }
.tl-head { display: grid; grid-template-columns: repeat(14, 1fr); height: var(--head); border-bottom: 1px solid var(--color-rule); }
.tl-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 8px; border-left: 1px solid var(--color-grid); font-size: 11.5px; line-height: 1.3; color: var(--color-text3); font-weight: 500; }
.tl-day:first-child { border-left: 0; }
.tl-day.is-weekend { background: color-mix(in srgb, var(--color-ink) 3%, transparent); }
.tl-num { font-size: 14px; font-weight: 500; color: var(--color-ink); }
.tl-day.is-today .tl-num { color: var(--color-accent); font-weight: 700; }
.tl-day.is-today .tl-wd { color: var(--color-accent); }
.tl-names-head { display: flex; align-items: flex-end; padding: 0 12px 10px 18px; }
.tl-month { font-size: 13px; font-weight: 700; color: var(--color-text2); }
.tl-body { position: relative; }
.tl-weekends span { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--color-ink) 4%, transparent); }
.tl-today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--color-accent); z-index: 2; }
.tl-lane {
  --tint: hsl(var(--h) var(--ap-tint-s) var(--ap-tint-l));
  position: relative; height: var(--lane); overflow: hidden; border-bottom: 1px solid var(--color-rule);
  background-color: color-mix(in srgb, var(--tint) 40%, transparent);
  background-image: linear-gradient(to left, var(--color-grid) 1px, transparent 1px);
  background-size: calc(100% / 14) 100%;
}
.tl-bar {
  position: absolute; z-index: 1; top: 16px; height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 10px; border-radius: 10px; background: var(--tint); color: var(--color-ink);
  font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden;
}
.tl-bar.cut-start { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.tl-bar.cut-end { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.tl-guest { display: inline-flex; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tl-count { font-weight: 500; color: var(--color-text2); }
.tl-owed { width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--color-warn); flex: none; }

/* Features: words on one side, the screen that does it on the other */
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px; padding-block: clamp(64px, 8vw, 112px) clamp(48px, 6vw, 80px); }
h2 { font-size: clamp(1.875rem, 1.3rem + 1.9vw, 2.875rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.intro-text p, .feature-text p { max-width: 58ch; color: var(--color-text2); font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.intro-text p + p { margin-top: 16px; }
.intro-text { padding-top: 6px; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; align-items: center; padding-block: clamp(56px, 7vw, 96px); }
.feature + .feature, .intro + .feature { border-top: 1px solid var(--color-rule); }
.intro + .feature { box-shadow: none; }
.feature-text h2 { margin-bottom: 20px; }
.feature-text .more { margin-top: 16px; font-size: 16px; color: var(--color-text3); }

.panel { border-radius: 20px; background: var(--color-surface); box-shadow: var(--card-shadow); padding: 24px 28px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .panel { box-shadow: 0 0 0 1px var(--color-rule); } }
.panel-head { margin-bottom: 12px; font-size: 17px; font-weight: 700; }
.panel-head, .pay-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.eg { font-size: 13px; font-weight: 500; color: var(--color-text3); }
.row-title { font-size: 16px; font-weight: 600; }
.row-sub { font-size: 14px; color: var(--color-text2); }
.row-why { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--color-warn); }
.ev-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-top: 1px solid var(--color-rule); }
.status { flex: none; font-size: 14.5px; font-weight: 600; text-align: right; }
.status.ready { color: var(--color-text2); }
.status.needs { color: var(--color-warn); }
.status.done { color: var(--color-accent); }
.ev-action { padding-top: 14px; border-top: 1px solid var(--color-rule); font-size: 15px; font-weight: 600; color: var(--color-accent); }

.pay dl { margin-top: 14px; }
.pay dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--color-rule); font-size: 15px; }
.pay dt { color: var(--color-text2); }
.pay dd { font-weight: 600; }
.pay .owed dt, .pay .owed dd { color: var(--color-warn); font-weight: 700; }

.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; height: 230px; padding-top: 8px; border-bottom: 1px solid var(--color-rule); }
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-val { margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--color-text2); white-space: nowrap; }
.bar { display: block; width: 100%; max-width: 88px; height: calc(var(--v) * 170px); border-radius: 10px 10px 4px 4px; background: color-mix(in srgb, var(--color-sea) 30%, var(--color-surface)); }
.bar-col.is-high .bar { background: linear-gradient(180deg, var(--color-sea), var(--color-sea-deep)); }
.bar-col.is-high .bar-val { color: var(--color-ink); }
.bar-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; text-align: center; font-size: 13px; color: var(--color-text2); }
.rep-note { margin-top: 20px; font-size: 14.5px; color: var(--color-text2); }

.today-col { display: grid; gap: 20px; }
.today {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 20px; align-items: end;
  padding: 26px 160px 28px 28px; border-radius: 24px; background: var(--sea-gradient); color: var(--color-on-sea);
}
.today > div:not(.today-sun) { position: relative; z-index: 1; }
.today-sun { position: absolute; right: 0; top: 0; bottom: 0; width: 170px; background: url(favicon.svg) center 36% / cover no-repeat; -webkit-mask-image: linear-gradient(to right, transparent, #000 60%); mask-image: linear-gradient(to right, transparent, #000 60%); opacity: 0.9; }
.t-label { font-size: 13px; font-weight: 600; color: var(--color-on-sea-soft); }
.t-num { font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
.t-num small { font-size: 18px; font-weight: 600; }
.t-bar { display: block; height: 6px; margin-top: 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); }
.t-bar span { display: block; width: 75%; height: 100%; border-radius: 3px; background: var(--color-sun); }
.roles > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px 4px; border-top: 1px solid var(--color-rule); font-size: 15px; }
.roles > div:last-child { border-bottom: 1px solid var(--color-rule); }
.roles dt { font-weight: 600; }
.roles dd { color: var(--color-text2); }

/* Pricing */
.pricing { padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--color-rule); }
.plans { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; }
.plan { padding: 8px 48px 8px 0; }
.plan + .plan { padding-left: 48px; border-left: 1px solid var(--color-rule); }
.plan h3 { font-size: 17px; font-weight: 600; color: var(--color-text2); }
.plan-price { margin: 6px 0 14px; font-size: clamp(2.75rem, 2rem + 2.6vw, 4.25rem); line-height: 1; font-weight: 700; letter-spacing: -0.035em; }
.plan-price.is-soon { color: var(--color-text3); }
.plan p:not(.plan-price) { max-width: 40ch; color: var(--color-text2); }
.plan-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: var(--color-accent); font-weight: 600; text-decoration: underline; }
.plan-link:hover { text-decoration-thickness: 2px; }

/* Closing band */
.end { margin-top: 0; }
.end-sun { width: min(52vw, 640px); background-position: 60% 40%; opacity: 0.9; }
.end-inner { position: relative; z-index: 1; padding-block: clamp(80px, 10vw, 136px) clamp(56px, 7vw, 88px); }
.end h2 { max-width: 14ch; font-size: clamp(2.25rem, 1.3rem + 3.4vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; }
.end-inner > p:not(.end-signin) { max-width: 46ch; margin: 20px 0 32px; font-size: 18px; color: var(--color-on-sea-soft); }
.end-signin { margin-top: 18px; font-size: 15px; color: var(--color-on-sea-soft); }
.end-signin a { color: var(--color-on-sea); font-weight: 600; }
.foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: 24px 36px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 14px; color: var(--color-on-sea-soft); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; color: var(--color-on-sea); font-weight: 600; }
.foot p { display: flex; align-items: center; gap: 6px; }
.foot .brand-mark.small { margin-right: 2px; }

@media (max-width: 1180px) { .sea-sun { opacity: 0.55; } }
@media (max-width: 900px) { .sea-sun { display: none; } }
@media (max-width: 1000px) {
  .intro, .feature { grid-template-columns: 1fr; }
  .feature { gap: 32px; }
  .panel, .today-col { max-width: 600px; }
}
@media (max-width: 720px) {
  .nav-wide { display: none; }
  .nav-wide-inline { display: none; }
  .nav-narrow-inline { display: inline; }
  .nav-links .nav-signin { margin-left: 4px; padding: 0 14px; }
  .sea-sun { display: none; }
  .end-sun { opacity: 0.25; }
  .signup-row { flex-direction: column; }
  .signup button { width: 100%; }
  .tl { --lane: 64px; --head: 56px; }
  .tl-names { flex-basis: 96px; }
  .tl-name { padding: 0 8px 0 10px; font-size: 13px; gap: 6px; }
  .tl-grid { min-width: 560px; }
  .tl-bar { top: 12px; height: 40px; padding: 0 8px; font-size: 12.5px; border-radius: 8px; }
  .panel { padding: 20px; }
  .today { grid-template-columns: 1fr 1fr 1fr; padding: 22px; gap: 16px; }
  .today-sun { display: none; }
  .tl-names-head { padding: 0 8px 8px 10px; }
  .tl-month { font-size: 12px; }
  .today-wide { grid-column: 1 / -1; }
  .t-num { font-size: 34px; }
  .roles > div { grid-template-columns: 100px 1fr; gap: 12px; }
  .plans { grid-template-columns: 1fr; gap: 40px; }
  .plan { padding: 0; }
  .plan + .plan { padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--color-rule); }
  .foot { flex-direction: column; }
}
