/* The landing page, set as an owner's statement. Load after tokens.css, bundle.css and base.html's own rules.
   Rules, not boxes: an ink rule opens a section, a hairline parts two rows, a double rule closes a total. On a desk twelve
   columns: numbers, side heads, captions and notes in the first four, words and figures in the other eight, a plate across
   all. A serif for what is said, the sans for what is explained, the mono for every figure, label and caption. Mulberry:
   the one action, and the tab on each section's rule. Teal and amber: a status, where the words name one. Logical
   properties, so Hebrew mirrors by itself. Nothing moves but the loop and a pressed button. */

/* the fallbacks, at the web fonts' width: the headline breaks in the same place before and after they arrive */
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); size-adjust: 104%; }
@font-face { font-family: "Frank Ruhl Fallback"; src: local("Times New Roman"); size-adjust: 105%; }

.landing {
  --ink: #1A1A18; --ink-2: #4A4945; --hair: var(--line);
  --page: 1200px; --gutter: clamp(20px, 5vw, 64px); --gap: 24px;
  --roman: Newsreader, "Newsreader Fallback", Georgia, serif; --serif: var(--roman);
  --mono: "IBM Plex Mono", "IBM Plex Sans Hebrew", Menlo, Consolas, monospace;
  --label: 400 16px/24px var(--mono); --label-tight: -0.02em;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h18.5M14.5 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.25'/%3E%3C/svg%3E");
  counter-reset: part fig; background: var(--surface); color: var(--ink); font-size: 17px; line-height: 27px; font-kerning: normal;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
}
.landing:lang(he) { --serif: "Frank Ruhl Libre", "Frank Ruhl Fallback", David, serif; --label: 400 16px/24px var(--font-sans); --label-tight: 0; }      /* the mono has no Hebrew: labels take the sans */
.landing .wrap { inline-size: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.landing main { max-width: none; padding: 0; }
.landing main:focus-visible { outline: none; }
.landing :is(p, figure, ul, ol) { margin: 0; padding: 0; min-inline-size: 0; }
.landing :is(ul, ol) { list-style: none; }
.landing p { max-inline-size: 35em; text-wrap: pretty; }
.landing :is(b, strong) { font-weight: 600; }
.landing .n { font-family: var(--mono); font-size: 0.95em; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -0.03em; word-spacing: -0.2em; }
.landing :is(.small, figcaption) .n { font-size: 1em; }
.landing .nb { white-space: nowrap; }
.landing .ok { color: var(--positive); }
.landing .held { color: var(--warning); }
.landing a:not(.osp-btn) { color: inherit; text-underline-offset: 4px; }
.landing :is(a, button) { touch-action: manipulation; }
.landing :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* the running header */
.landing .top { box-sizing: border-box; align-items: center; gap: 0 clamp(16px, 2vw, 28px); height: 60px; padding-inline: max(var(--gutter), calc((100% - var(--page)) / 2)); border-block-start: 4px solid #000; border-block-end: 1px solid var(--hair); background: var(--surface); color: var(--ink); }
.landing .top .brand { height: 44px; margin-inline-end: auto; }
.landing .top .brand img { height: 22px; }
.landing .running { display: none; }
.landing .top .lang { display: block; margin: 0; }
.landing .top .lang button, .landing .sign-in { display: inline-flex; align-items: center; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: underline 1px var(--line-strong); text-underline-offset: 5px; }
.landing .top :focus-visible { outline-color: var(--focus); }
.landing .skip { position: absolute; inset-inline-start: 16px; top: -80px; z-index: 20; padding: 12px 16px; background: var(--surface); }
.landing .skip:focus { top: 8px; }

/* a section: its ink rule with the tab, its number, its heading */
.landing section:not(.title) { counter-increment: part; padding-block-end: clamp(72px, 8.5vw, 120px); }
.landing section:not(.title) > .wrap { position: relative; border-block-start: 1px solid var(--ink); padding-block-start: 24px; }
.landing section:not(.title) > .wrap::before { content: counter(part, decimal-leading-zero); display: block; font: 500 16px/24px var(--mono); }
.landing section:not(.title) > .wrap::after { content: ""; position: absolute; inset-block-start: -1px; inset-inline-start: 0; inline-size: 48px; block-size: 4px; background: var(--action); }
.landing :is(h1, h2, h3) { margin: 0; font-family: var(--serif); font-weight: 500; font-optical-sizing: auto; text-wrap: balance; }
.landing h1, .landing .close h2 { font-size: clamp(42px, 7.4vw, 76px); line-height: 1.03; letter-spacing: -0.022em; }
.landing h2 { margin-block-start: 12px; font-size: clamp(32px, 20px + 2.1vw, 46px); line-height: 1.1; letter-spacing: -0.016em; }
.landing h3 { font-size: clamp(24px, 18px + 0.84vw, 30px); line-height: 1.2; letter-spacing: -0.008em; }
.landing :is(.lede, .answer span) { max-inline-size: 30em; font-size: clamp(19px, 17px + 0.35vw, 22px); line-height: 1.5; text-wrap: pretty; }
.landing .lede { margin-block-start: 20px; color: var(--ink-2); }
.landing .small { max-inline-size: 35em; margin-block-start: 24px; font-size: 16px; line-height: 24px; color: var(--ink-2); }

/* the title page: the question, whom it is for, the answer as a total, the one action, figure 1 */
.landing .title { padding-block: clamp(36px, 4.4vw, 60px) clamp(72px, 8.5vw, 120px); }
.landing h1 span { display: block; }
.landing .for { margin-block-start: 20px; font: var(--label); letter-spacing: var(--label-tight); color: var(--ink-2); text-wrap: balance; }
.landing .answer { max-inline-size: none; margin-block-start: 28px; padding-block: 18px 16px; border-block-start: 1px solid var(--ink); border-block-end: 3px double var(--ink); }
.landing .answer strong { display: block; font: 500 clamp(28px, 25px + 0.64vw, 34px)/1.2 var(--serif); letter-spacing: -0.01em; }
.landing .answer span { display: block; margin-block-start: 8px; }
.landing .go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; margin-block-start: 24px; }
.landing .osp-btn--primary { height: 52px; padding-inline: 28px; font-size: 17px; letter-spacing: 0; }
.landing .on { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; font-weight: 500; text-decoration: underline 1px; text-underline-offset: 5px; }
.landing .on::after { content: ""; inline-size: 20px; block-size: 10px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
[dir=rtl] .landing .on::after { transform: scaleX(-1); }
.landing :is(.osp-btn, .on, .sign-in, .lang button) { user-select: none; -webkit-user-select: none; }
.landing :is(.on, .sign-in, .lang button) { transition: transform 160ms var(--ease-out); }
.landing :is(.on, .sign-in, .lang button):active { transform: scale(0.97); }
.landing :is(.brand, .foot a, .reads a):active { opacity: 0.6; }
.landing .reads { max-inline-size: none; margin-block-start: 40px; padding-block: 18px; border-block: 1px solid var(--hair); color: var(--ink-2); }
.landing .reads > span { display: block; }
.landing .reads > span:first-child { color: var(--ink); }
.landing .reads a { padding-block: 12px; }      /* a thumb's height, without moving the line */

/* figures: a thin frame and a numbered caption; the English screens keep their left and right in both languages */
.landing figure { counter-increment: fig; }
.landing .shot img { display: block; box-sizing: border-box; inline-size: 100%; height: auto; background: var(--surface); border: 1px solid var(--ink); }
.landing .view { display: block; }
.landing video { display: block; inline-size: 100%; height: auto; aspect-ratio: 16 / 9; background: #F3F2EE; outline: 1px solid var(--ink); outline-offset: -1px; }
.landing figcaption { margin-block-start: 10px; font: var(--label); letter-spacing: var(--label-tight); color: var(--ink-2); text-wrap: balance; }
.landing figcaption > span::before { content: "Fig. " counter(fig) " · "; font-family: var(--mono); font-weight: 500; color: var(--ink); }
.landing:lang(he) figcaption > span::before { content: "איור " counter(fig) " · "; word-spacing: -0.25em; }
.landing figcaption > :is(span, small) { display: block; font-size: inherit; }
@media (min-width: 360px) { .landing figcaption :is(.ok, .held) { white-space: nowrap; } }
.landing .loop { margin-block-start: clamp(36px, 4.4vw, 60px); }
.landing .loop .osp-btn { height: 44px; margin-block: -6px -12px; padding: 0; border: 0; background: none; color: var(--ink); font: var(--label); font-weight: 500; letter-spacing: var(--label-tight); text-decoration: underline 1px; text-underline-offset: 5px; }
.landing .loop .osp-btn[hidden] { display: none; }
.landing .shot { margin-block-start: 40px; }

/* rows */
.landing .lines { margin-block-start: 32px; border-block-start: 1px solid var(--ink); }
.landing .lines li { padding-block: 14px; border-block-end: 1px solid var(--hair); }
.landing .lines li > span { display: block; color: var(--ink-2); text-wrap: pretty; }
.landing .how { counter-reset: how; }
.landing .how li { counter-increment: how; position: relative; padding-inline-start: 2em; }
.landing .how li::before { content: counter(how); position: absolute; inset-block-start: 14px; inset-inline-start: 0; font-family: var(--mono); font-weight: 500; }
.landing .entry { margin-block-start: 40px; padding-block-start: 28px; border-block-start: 1px solid var(--hair); }
.landing :is(.words p, .item p, .entry > p) { margin-block-start: 10px; color: var(--ink-2); }
.landing .item { padding-block: 28px 36px; border-block-start: 1px solid var(--hair); }
.landing .cols { margin-block-start: 40px; }
.landing .cols > :last-child > :last-child { padding-block-end: 0; }
.landing :is(.entry, .item) .shot { margin-block-start: 24px; }
.landing .text > p + p { margin-block-start: 20px; }
.landing .maps { margin-block-start: 48px; }
.landing .maps .shot { margin-block: 16px 40px; }
.landing .maps .shot:nth-last-child(2) { margin-block-end: 0; }

/* the email, on ruled paper: the gradient only draws its lines */
.landing .letter { margin-block-start: 40px; }
.landing .letter > div { position: relative; display: flow-root; border-block-start: 1px solid var(--ink); }
.landing .letter > div::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; border-block-end: 1px solid var(--ink); }
.landing .letter__head { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); align-items: baseline; max-inline-size: none; padding-block: 10px; border-block-end: 1px solid var(--hair); overflow-wrap: anywhere; font-size: 16px; line-height: 24px; }
.landing .letter__head b { font: 400 16px/24px var(--mono); letter-spacing: -0.02em; color: var(--ink-2); }
.landing .letter p:not(.letter__head) { max-inline-size: none; padding-inline-end: max(0px, 100% - 29em); padding-block-start: 36px; font: 500 20px/36px var(--roman); background: linear-gradient(transparent 35px, var(--hair) 35px) 0 -7px / 100% 36px; }
.landing .letter .letter__head + p:not(.letter__head) { padding-block-start: 7px; background-position-y: 0; }
.landing .letter p:last-child { padding-block-end: 36px; margin-block-end: -7px; }
.landing .letter p .n { font-weight: 400; }

/* the close and the foot */
.landing .close h2 { padding-block-end: 20px; border-block-end: 3px double var(--ink); }
.landing .close .osp-btn { margin-block-start: 28px; }
.landing .foot { padding-block: 28px 48px; border-block-start: 1px solid var(--ink); font-size: 16px; line-height: 24px; color: var(--ink-2); }
.landing .foot ul { display: flex; gap: 0 28px; }
.landing .foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration-color: var(--line-strong); }
.landing .foot p { margin-block-start: 12px; max-inline-size: 35em; }

.landing:lang(he) :is(h1, h2, h3, .answer strong) { letter-spacing: 0; }
@media (hover: hover) and (pointer: fine) { .landing :is(.on, .sign-in, .lang button, .foot a, .reads a):hover { text-decoration-thickness: 2px; } }
@media (hover: none) { .landing .osp-btn--primary:hover { background: var(--action); border-color: var(--action); } }
@media (prefers-reduced-motion: reduce) { .landing :is(.on, .sign-in, .lang button):active { transform: none; } }

@media (max-width: 700px) {
  .landing .go .osp-btn, .landing .close .osp-btn { inline-size: 100%; }
  /* a phone shows the part of a wide screen that carries its words, large enough to read, cut where it is white */
  .landing :is(.shot--held, .shot--package, .shot--rentroll, .shot--hebrew) img { object-fit: cover; object-position: left top; }
  .landing .shot--held img { aspect-ratio: 1330 / 888; }
  .landing .shot--package img { aspect-ratio: 1110 / 782; }
  .landing .shot--rentroll img { aspect-ratio: 1060 / 771; }
  .landing .shot--hebrew img { aspect-ratio: 680 / 452; object-position: right top; }
  .landing .view { position: relative; overflow: hidden; border: 1px solid var(--ink); }
  .landing .view img { position: absolute; top: 0; left: 0; border: 0; }
  .landing .shot--statement .view { aspect-ratio: 740 / 844; }
  .landing .shot--statement .view img { top: calc(-19600% / 844); inline-size: calc(160000% / 740); }
  .landing .shot--home .view { aspect-ratio: 780 / 650; }
  .landing .shot--home .view img { left: auto; right: 0; inline-size: calc(160000% / 780); }
  .landing .shot--valuation .view { aspect-ratio: 950 / 425; }
  .landing .shot--valuation .view img { inline-size: calc(160000% / 950); }
  .landing .shot--pnl .view { aspect-ratio: 1106 / 930; }
  .landing .shot--pnl .view img { top: calc(-37400% / 930); inline-size: calc(160000% / 1106); }
  .landing .shot--stress .view { aspect-ratio: 1054 / 521; }
  .landing .shot--stress .view img { top: calc(-10000% / 521); inline-size: calc(160000% / 1054); }
}

@media (min-width: 701px) {
  .landing { --label: 400 13px/20px var(--mono); --label-tight: 0; }
  .landing:lang(he) { --label: 400 14px/20px var(--font-sans); }
  .landing .top .lang button, .landing .sign-in { font-size: 15px; }
  .landing .for { font-size: 15px; line-height: 24px; }
  .landing section:not(.title) > .wrap::before { font-size: 15px; }
  .landing :is(.small, .foot, .letter__head) { font-size: 15px; }
  .landing figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; text-wrap: wrap; }
  .landing .letter__head b { font-size: 13px; letter-spacing: 0; }
  .landing .lines li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); column-gap: var(--gap); padding-block: 16px; }
  .landing .entry .lines li { display: block; }
  .landing .how li::before { inset-block-start: 16px; }
  .landing .shot--home img { padding-block-end: 12px; }
  .landing .foot .wrap { display: flex; flex-wrap: wrap; gap: 0 28px; }
  .landing .loop .osp-btn { margin-block: -10px -14px; }
  .landing h1 { max-inline-size: 12.5em; text-wrap: wrap; }
}

@media (min-width: 1001px) {
  .landing { line-height: 28px; }
  .landing :is(section > .wrap, .answer, .reads, .entry, .spread, .maps, .cols), .landing .foot .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gap); }
  .landing section > .wrap > * { grid-column: 5 / -1; }
  .landing section > .wrap > :is(h1, .answer, .loop, .reads, .entry, .spread, .maps, .cols) { grid-column: 1 / -1; }
  .landing .top { display: grid; grid-template-columns: calc((100% + var(--gap)) / 3 - clamp(16px, 2vw, 28px)) 1fr auto auto; }
  .landing .top .brand { justify-self: start; }
  .landing .running { display: block; font: var(--label); color: var(--ink-2); }
  .landing section:not(.title) > .wrap { padding-block-start: 28px; align-items: first baseline; }
  .landing section:not(.title) > .wrap::before { grid-column: 1 / 5; }
  .landing h1 { font-size: clamp(60px, 6vw, 76px); }
  .landing h2 { margin-block-start: 0; }
  .landing .lede { margin-block-start: 24px; }
  .landing section > .wrap > h1 { grid-row: 1; align-self: end; align-self: last baseline; }
  .landing section > .wrap > .for { grid-row: 1; grid-column: 9 / -1; align-self: end; align-self: last baseline; }
  .landing .answer { margin-block-start: 40px; padding-block: 22px 20px; align-items: baseline; }
  .landing .answer strong { grid-column: 1 / 5; }
  .landing .answer span { grid-column: 5 / -1; margin: 0; }
  .landing .go { margin-block-start: 28px; }
  .landing .reads > span:first-child { grid-column: 1 / 5; }
  .landing .reads > span + span { grid-column: 5 / -1; }
  .landing .shot { margin-block-start: 56px; }
  /* a figure in the words' columns: its caption in the margin, level with its top */
  .landing section > .wrap > :is(.shot, .letter) { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gap); }
  .landing section > .wrap > :is(.shot, .letter) > * { grid-area: 1 / 5 / auto / -1; }
  .landing section > .wrap > :is(.shot, .letter) > figcaption { grid-area: 1 / 1 / auto / 5; display: block; align-self: start; margin: 0; padding-block-start: 10px; border-block-start: 1px solid var(--ink); text-wrap: balance; }
  .landing section > .wrap > .lines { margin-block-start: 44px; }
  .landing .spread { margin-block-start: 48px; }
  .landing .spread > .shot { grid-column: span 6; margin: 0; }
  .landing .entry { margin-block-start: 44px; padding-block-start: 32px; }
  .landing .lede + .entry { margin-block-start: 60px; }
  .landing .entry > * { grid-column: 5 / -1; margin-block-start: 0; }
  .landing .entry > :is(.words, h3) { grid-column: 1 / 5; }
  .landing .entry > p { margin-block-start: 4px; }
  .landing .entry > .shot { margin-block-start: 8px; }
  .landing .words { position: sticky; inset-block-start: 92px; align-self: start; }
  .landing .entry--plate > p { text-wrap: balance; }
  .landing .entry--plate > .shot { grid-column: 1 / -1; margin-block-start: 28px; }
  .landing .entry > .lines { margin-block-start: -10px; border-block-start: 0; }
  .landing .maps > p { grid-row: 1; }
  .landing .maps > .shot { grid-row: 2; margin-block-end: 0; }
  .landing .maps > :nth-child(-n + 2) { grid-column: 1 / 5; }
  .landing .maps > :nth-child(n + 3) { grid-column: 5 / -1; }
  .landing .maps > .shot--home { grid-row: 2 / span 2; }
  .landing .maps > .small { grid-area: 3 / 1 / auto / 5; align-self: end; }
  .landing section .cols { position: relative; column-gap: 48px; border-block-start: 1px solid var(--hair); }
  .landing .cols > * { grid-column: span 6; }
  .landing .cols > * > .item:first-child { border-block-start: 0; }
  .landing .cols::after { content: ""; position: absolute; inset-block: 28px 0; inset-inline-start: 50%; border-inline-start: 1px solid var(--hair); }
  .landing .how { grid-row: 2; }
  .landing section > .wrap > .how + .small { grid-area: 2 / 1 / auto / 4; margin-block-start: 60px; align-self: start; }
  .landing .how li { padding-inline-start: 0; }
  .landing .how li::before { inset-inline: auto calc(100% + var(--gap)); }
  .landing .close .osp-btn { justify-self: start; }
  .landing .foot { padding-block: 32px 64px; }
  .landing .foot .wrap { align-items: first baseline; }
  .landing .foot ul { grid-column: 1 / 3; display: block; }
  @media (pointer: fine) { .landing .foot a { min-height: 32px; } }
  .landing .foot .wrap > a { grid-column: 3 / 5; justify-self: start; }
  .landing .foot p { grid-column: 5 / -1; margin-block-start: 4px; }
}

/* a short laptop screen: the title page closes up, so figure 1 still shows */
@media (min-width: 1001px) and (max-height: 800px) {
  .landing .title { padding-block-start: 36px; }
  .landing h1 { font-size: clamp(56px, 5.2vw, 66px); }
  .landing .answer { margin-block-start: 28px; padding-block: 16px 14px; }
  .landing .go { margin-block-start: 22px; }
  .landing .loop { margin-block-start: 36px; }
}
