/* Sulha.
   The page is laid out as a ledger: an account of the product on the left,
   the screen that does it in a fixed figure column on the right.
   Two deep-green bands, taken straight off the app icon, carry the two
   things worth raising your voice about: where your records live, and
   the price. */

:root {
  --paper:  #ecedea;   /* cool stone, so the app's own white screens read as lit */
  --ink:    #000000;   /* the app uses true black for its one action, so does this */
  --rule:   #d2d5cf;
  --quiet:  #53564f;
  --owe:    #ab2112;   /* money you owe     — the app's red   */
  --due:    #0b6a45;   /* money owed to you — the app's green */

  --deep:   #023a30;   /* the icon's field */
  --deeper: #012a23;
  --cream:  #fdf7e5;   /* the icon's cream */
  --lime:   #6fdcad;
  --cream-quiet: rgba(253, 247, 229, 0.70);
  --cream-rule:  rgba(253, 247, 229, 0.22);

  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --disp: "Darker Grotesque", "IBM Plex Sans", sans-serif;

  --gut: clamp(20px, 4vw, 44px);
  --band: clamp(60px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--gut); }

/* ---------------------------------------------------------- masthead */

.masthead { border-bottom: 1px solid var(--rule); }
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }

.wordmark {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--disp); font-weight: 800; font-size: 30px;
  line-height: 1; letter-spacing: -0.015em; text-decoration: none;
}
.mark { width: 34px; height: 34px; border-radius: 9px; }

.masthead nav, .foot nav { display: flex; gap: 22px; }
.masthead nav a, .foot nav a {
  font-size: 15px; color: var(--quiet); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 1px;
}
.masthead nav a:hover, .foot nav a:hover { color: var(--ink); border-bottom-color: currentColor; }

/* ------------------------------------------------------- ledger grid */

.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.entry-wrap { border-top: 1px solid var(--rule); }
.entry-wrap .entry { padding-block: var(--band); }

.entry-wide { grid-template-columns: minmax(0, 1.08fr) minmax(0, 560px); }

.col-text > :first-child { margin-top: 0; }
.col-text > :last-child  { margin-bottom: 0; }
.col-text p { max-width: 54ch; margin: 0 0 1.15em; color: var(--quiet); font-size: 17.5px; }

h2 {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 0.96; letter-spacing: -0.02em;
  margin: 0 0 0.52em; max-width: 15ch;
}

/* ------------------------------------------------------------- hero */

.hero .entry { padding-block: clamp(36px, 4.4vw, 60px) clamp(44px, 5.5vw, 76px); }

.line {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(42px, 6.1vw, 84px);
  line-height: 0.9; letter-spacing: -0.028em;
  margin: 0 0 0.42em; display: flex; flex-direction: column;
}
.line span { display: block; }
.line-c {
  font-weight: 500; font-size: 0.42em; line-height: 1.1;
  letter-spacing: -0.01em; color: var(--quiet); margin-top: 0.34em;
}

.amt { font-variant-numeric: tabular-nums lining-nums; }
.amt-due { color: var(--due); }
.amt-owe { color: var(--owe); }

.lead {
  max-width: 48ch; font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55; margin: 0 0 1.9em; color: var(--ink);
}

/* The app as it appears in a list of apps, which is where it is going. */
.applisting {
  display: flex; align-items: center; gap: 15px;
  padding: 0 0 22px; margin: 0 0 22px;
  border-bottom: 1px solid var(--rule);
  max-width: 420px;
}
.applisting-icon { width: 60px; height: 60px; border-radius: 14px; flex: none; }
.applisting-text { min-width: 0; }
.applisting-name { margin: 0; font-weight: 600; font-size: 18px; line-height: 1.2; }
.applisting-meta { margin: 3px 0 0; font-size: 15px; color: var(--quiet); line-height: 1.3; }

/* ----------------------------------------------------------- stores */

.stores { display: flex; flex-wrap: wrap; gap: 12px; }

.store {
  display: block; min-width: 196px;
  padding: 13px 26px 15px;
  border: 1.5px solid var(--ink); border-radius: 16px;
  background: transparent;
}
.store-k { display: block; font-size: 12px; line-height: 1.3; color: var(--quiet); }
.store-n { display: block; margin-top: 1px; font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -0.012em; }

/* ----------------------------------------------------------- phones */

.col-fig { justify-self: end; width: 100%; }
.phone { margin: 0; }
.phone img { width: 100%; border-radius: 30px; border: 1px solid var(--rule); }

.col-fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); align-items: start; }
.phone-sm img { border-radius: 24px; }
.phone-drop { margin-top: clamp(28px, 5vw, 64px); }

/* A screen shown in part is faded out rather than guillotined, so it reads
   as a list that carries on past the edge of the page. */
.phone-cut img {
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 99%);
          mask-image: linear-gradient(to bottom, #000 74%, transparent 99%);
}

/* The one screen shown whole leans past the band it sits in. */
.phone-lead { margin-bottom: calc(-1 * clamp(0px, 5vw, 76px)); position: relative; z-index: 1; }

/* ------------------------------------------------- the ledger itself */

.ledger-band { border-top: 1px solid var(--rule); }
.ledger-band .wrap { padding-block: clamp(44px, 5vw, 72px); }

.ledger { width: 100%; border-collapse: collapse; font-size: clamp(16px, 1.55vw, 21px); line-height: 1.25; }
.ledger td { border-bottom: 1px solid var(--rule); padding: clamp(13px, 1.5vw, 19px) 0; vertical-align: baseline; }
.ledger tr:first-child td { border-top: 1px solid var(--ink); }
.ledger tr:last-child td { border-bottom-color: var(--ink); }
.ledger .d { width: 5.6em; color: var(--quiet); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.ledger .n { font-weight: 500; padding-right: 1.2em; }
.ledger .k { color: var(--quiet); padding-right: 1.2em; }
.ledger .a { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; width: 7em; }
.ledger .a.due { color: var(--due); }
.ledger .a.owe { color: var(--owe); }
.ledger-foot { margin: clamp(22px, 2.6vw, 34px) 0 0; max-width: 46ch; color: var(--quiet); font-size: 17px; }

/* ------------------------------------------------- where it all lives */

.vault {
  background: var(--deep);
  color: var(--cream);
  background-image: radial-gradient(120% 90% at 14% 0%, #04574a 0%, var(--deep) 46%, var(--deeper) 100%);
}
.vault .wrap { padding-block: clamp(72px, 9vw, 132px); }

.vault h2 { max-width: 20ch; margin-bottom: 0.4em; }

.vault-lead {
  max-width: 56ch; font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55; margin: 0; color: var(--cream-quiet);
}

.vault .col-text p { color: var(--cream-quiet); }

.vault .phone img { border-color: var(--cream-rule); }

.vault-detail { padding-top: clamp(56px, 7vw, 92px); align-items: center; }

/* The three places a record can be, and the one it never is. */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(10px, 1.4vw, 20px);
  margin-top: clamp(44px, 5.5vw, 72px);
}

.node {
  border: 1px solid var(--cream-rule);
  border-radius: 16px;
  padding: clamp(18px, 2vw, 26px);
  background: rgba(253, 247, 229, 0.045);
}
.node-t { margin: 0 0 7px; font-weight: 600; font-size: clamp(17px, 1.6vw, 20px); }
.node-d { margin: 0; font-size: 15px; line-height: 1.5; color: var(--cream-quiet); }

.node-absent {
  border-style: dashed;
  background: transparent;
}
.node-absent .node-t { color: var(--cream-quiet); text-decoration: line-through; text-decoration-thickness: 1.5px; }

.flow-note {
  margin: clamp(22px, 2.4vw, 32px) 0 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cream-quiet);
}
.flow-note a { text-decoration-color: var(--cream-rule); text-underline-offset: 3px; }
.flow-note a:hover { text-decoration-color: currentColor; }

.arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 104px; }
.arrow-l { position: relative; display: block; width: 100%; height: 1.5px; background: var(--lime); }
.arrow-l::after {
  content: ""; position: absolute; right: -1px; top: 50%;
  width: 7px; height: 7px; border-top: 1.5px solid var(--lime); border-right: 1.5px solid var(--lime);
  transform: translateY(-50%) rotate(45deg); transform-origin: center;
}
.arrow-none .arrow-l::after {
  content: "\00d7"; right: 50%; top: 50%;
  width: auto; height: auto; border: 0;
  transform: translate(50%, -50%);
  font-size: 17px; line-height: 1; color: var(--cream-quiet);
  background: var(--deep); padding: 0 6px;
}
.arrow-k { font-size: 12.5px; line-height: 1.3; text-align: center; color: var(--lime); }
.arrow-none .arrow-l { background: repeating-linear-gradient(90deg, var(--cream-rule) 0 5px, transparent 5px 10px); }
.arrow-none .arrow-k { color: var(--cream-quiet); }

/* -------------------------------------------------------- the price */

.close {
  background: var(--deeper);
  color: var(--cream);
}
.close .entry { padding-block: clamp(64px, 8vw, 108px); }
.close-icon { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 26px; }
.close h2 { max-width: 18ch; }
.close-p {
  max-width: 48ch; font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55; color: var(--cream-quiet); margin: 0 0 2em;
}
.close .store { border-color: rgba(253, 247, 229, 0.45); }
.close .store-n { color: var(--cream); }
.close .store-k { color: var(--cream-quiet); }
.close .phone img { border-color: var(--cream-rule); }

/* ----------------------------------------------------------- footer */

.foot { background: var(--deeper); color: var(--cream); }
.foot-in {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 16px; padding-block: 30px 42px;
  border-top: 1px solid var(--cream-rule);
}
.foot-c { margin: 0; font-size: 14.5px; color: var(--cream-quiet); }
.foot nav a { color: var(--cream-quiet); }
.foot nav a:hover { color: var(--cream); }

/* ------------------------------------------- one reveal, on page load */

@media (prefers-reduced-motion: no-preference) {
  .line span, .hero .lead, .hero .applisting, .hero .stores, .hero .col-fig {
    animation: rise 760ms cubic-bezier(.22,.68,.26,1) backwards;
  }
  .line-a { animation-delay: 40ms; }
  .line-b { animation-delay: 150ms; }
  .line-c { animation-delay: 260ms; }
  .hero .lead      { animation-delay: 330ms; }
  .hero .applisting{ animation-delay: 390ms; }
  .hero .stores    { animation-delay: 440ms; }
  .hero .col-fig   { animation-delay: 220ms; animation-duration: 900ms; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ narrow */

@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .arrow { flex-direction: row; min-width: 0; gap: 12px; padding-block: 14px; }
  .arrow-l { width: 1.5px; height: 30px; margin-left: 26px; }
  .arrow-l::after { right: auto; left: 50%; top: auto; bottom: -1px; transform: translateX(-50%) rotate(135deg); }
  .arrow-none .arrow-l::after { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); }
  .arrow-none .arrow-l { background: repeating-linear-gradient(180deg, var(--cream-rule) 0 5px, transparent 5px 10px); }
  .arrow-k { text-align: left; }
}

@media (max-width: 860px) {
  .entry, .entry-wide { grid-template-columns: 1fr; gap: clamp(34px, 7vw, 54px); }
  .col-fig { justify-self: start; max-width: 320px; }
  .col-fig-pair { max-width: 420px; }
  .phone-drop { margin-top: 0; }
  .phone-lead { margin-bottom: 0; }
  h2 { max-width: 18ch; }
  .line { font-size: clamp(42px, 11vw, 72px); }
}

@media (max-width: 680px) {
  .col-fig-pair { grid-template-columns: 1fr; gap: 28px; max-width: 320px; }
}

@media (max-width: 620px) {
  .ledger .k { display: none; }
  .ledger .d { width: 4.6em; font-size: 0.86em; }
  .ledger .a { width: 5.6em; }
}

@media (max-width: 420px) {
  body { font-size: 16.5px; }
  .col-fig { max-width: 100%; }
  .stores { display: grid; grid-template-columns: 1fr; }
}
