/*
 * sonnetskills.com home. Its own sheet, not site.css: the rest of the site is
 * still the old dark design, and this page takes its look from the volume
 * covers instead — white paper, black type, one hard red, and one square per
 * agent.
 */

:root {
  --ink: #000;
  --text: #333;
  --muted: #666;
  --line: #e4e4e4;
  --tint: #f3f3f3;
  --red: #d71914;
  --red-dark: #b5120e;
  --sq: #e6e4e1;
  --sq-faint: #f2f1ef;
  --wrap: 1180px;
  --gutter: 24px;
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body.hp {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
.hp img { max-width: 100%; height: auto; display: block; }
.hp a { color: inherit; }
.hp h1, .hp h2, .hp h3 { color: var(--ink); margin: 0; letter-spacing: -0.02em; }
.hp h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; font-weight: 800; max-width: 22ch; }
.hp h3 { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.hp p { margin: 0; }
.hp :focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: #000; color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hp-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.hp-lede { font-size: 19px; line-height: 1.55; color: var(--text); max-width: 60ch; margin-top: 18px; }
.hp-fine { font-size: 14px; color: var(--muted); margin-top: 16px; max-width: 56ch; }
.hp-quiet { color: var(--muted); }
.hp-link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hp-link:hover { color: var(--red); }

/* ---------- buttons ---------- */

.hp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; padding: 0 26px; border-radius: 10px;
  font: 700 17px/1 var(--font); text-decoration: none; letter-spacing: -0.01em;
  border: 2px solid transparent; cursor: pointer;
}
.hp-btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 8px; }
.hp-btn-red { background: var(--red); color: #fff !important; }
.hp-btn-red:hover { background: var(--red-dark); }
.hp-btn-line { border-color: var(--ink); color: var(--ink); background: #fff; }
.hp-btn-line:hover { background: var(--ink); color: #fff; }
.hp-btn-white { background: #fff; color: var(--ink) !important; }
.hp-btn-white:hover { background: var(--sq); }
.hp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- header ---------- */

.hp-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hp-header-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.hp-logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.hp-logo-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); position: relative; }
.hp-logo-mark::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 7px; height: 7px; border-radius: 2px; background: var(--red); }
.hp-nav { display: flex; gap: 22px; margin-right: auto; }
.hp-nav a, .hp-auth .nav-link { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--text); white-space: nowrap; }
.hp-nav a:hover, .hp-auth .nav-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.hp-auth { display: flex; align-items: center; gap: 18px; }
.auth-pending .hp-auth { visibility: hidden; }

/* The signed-in menu site.js puts in [data-auth-area]. */
.hp-auth .nav-link-strong { font-weight: 700; color: var(--ink); }
.hp-auth .avatar { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font: 700 14px var(--font); cursor: pointer; }
.hp-auth .account-wrap, .hp-auth > div { position: relative; }
.hp-auth .account-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 8px; z-index: 50; }
.hp-auth .account-menu[hidden] { display: none; }
.hp-auth .account-id { display: grid; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 14px; }
.hp-auth .account-id span { color: var(--muted); overflow-wrap: anywhere; }
.hp-auth .menu-item { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: 8px; font: 500 15px var(--font); color: var(--ink); text-decoration: none; cursor: pointer; }
.hp-auth .menu-item:hover { background: var(--tint); }

/* ---------- hero: the 500 squares ---------- */

.hp-hero { padding: 48px 0 64px; border-bottom: 1px solid var(--line); }
.hp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hp-hero h1 { font-size: clamp(42px, 6.4vw, 80px); line-height: 0.98; font-weight: 900; letter-spacing: -0.045em; max-width: 11ch; }

.hp-board { position: relative; }
.hp-board-title { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.hp-squares {
  display: grid; grid-template-columns: repeat(25, 1fr); gap: 4px;
  user-select: none; -webkit-user-select: none;
}
.hp-sq {
  aspect-ratio: 1; border-radius: 3px; background: var(--sq);
  border: 1px solid transparent; padding: 0; cursor: pointer;
  transition: background-color .25s ease, opacity .25s ease;
}
.hp-sq.is-start { background: var(--red); }
.hp-squares.is-filtered .hp-sq { background: var(--sq-faint); }
.hp-squares.is-filtered .hp-sq.is-in { background: var(--ink); }
.hp-squares.is-filtered .hp-sq.is-in.is-start { background: var(--red); }
.hp-sq:hover, .hp-sq.is-peek { outline: 2px solid var(--ink); outline-offset: 1px; }
/* The volume boundaries: 100 agents, four rows of twenty-five. */
.hp-sq.is-vol-break { margin-top: 6px; }

.hp-peek {
  margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: var(--tint);
  font-size: 15px; line-height: 1.45; min-height: 104px;
}
.hp-peek b { color: var(--ink); display: block; font-size: 16px; }
.hp-peek span { color: var(--muted); font-size: 14px; }

.hp-depts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 36px; }
.hp-depts button {
  display: grid; gap: 2px; text-align: left; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: var(--font);
}
.hp-depts button b { font-size: 17px; color: var(--ink); }
.hp-depts button span { font-size: 13px; color: var(--muted); }
.hp-depts button:hover { border-color: var(--ink); }
.hp-depts button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); }
.hp-depts button[aria-selected="true"] b, .hp-depts button[aria-selected="true"] span { color: #fff; }

.hp-picks { margin-top: 20px; }
.hp-picks-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: baseline; margin-bottom: 8px; }
.hp-picks-head p { font-size: 15px; color: var(--muted); }
.hp-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.hp-row {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 2.4fr) 150px 170px; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.hp-row h3 { font-size: 17px; }
.hp-row h3 small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 3px; letter-spacing: 0; }
.hp-row p { font-size: 15px; color: var(--text); }
.hp-row dl { margin: 0; font-size: 14px; }
.hp-row dt { color: var(--muted); }
.hp-row dd { margin: 0; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */

.hp-section { padding: 96px 0; }
.hp-tint { background: var(--tint); }
.hp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hp-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

.hp-sample { margin: 0; }
.hp-sample img { border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.hp-sample figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }

.hp-ticks, .hp-crosses { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.hp-ticks li, .hp-crosses li { position: relative; padding-left: 30px; }
.hp-ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 3px; background: var(--red); }
.hp-crosses li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 3px; background: var(--sq); }
.hp-crosses li { color: var(--muted); }

/* The shelf scrolls sideways on narrow screens, like a row of books. */
.hp-shelf {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
}
.hp-shelf li { scroll-snap-align: start; }
.hp-shelf a { display: grid; gap: 4px; text-decoration: none; }
.hp-shelf img { border-radius: 6px; background: #fff; border: 1px solid var(--line); margin-bottom: 10px; }
.hp-shelf a:hover img { border-color: var(--ink); }
.hp-shelf b { color: var(--ink); font-size: 18px; }
.hp-shelf span { font-size: 14px; color: var(--muted); }

.hp-proof { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.hp-proof li { padding: 24px 28px 28px 0; border-bottom: 1px solid var(--line); }
.hp-proof li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.hp-proof li:not(:nth-child(3n + 1)) { padding-left: 28px; }
.hp-proof b { color: var(--ink); font-size: 18px; }
.hp-proof p { font-size: 15px; margin-top: 8px; }
.hp-proof cite { display: block; margin-top: 12px; font-style: normal; font-size: 13px; color: var(--muted); }

/* What happens after paying really is a sequence, so it is numbered. */
.hp-steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hp-steps li { counter-increment: step; background: #fff; border-radius: 12px; padding: 28px; }
.hp-steps li::before { content: counter(step); display: block; font-size: 56px; line-height: 1; font-weight: 900; color: var(--red); letter-spacing: -0.04em; margin-bottom: 18px; }
.hp-steps p { font-size: 15px; margin-top: 8px; }

.hp-addons { margin-top: 40px; }
.hp-addons-head { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.hp-addon { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid #d9d9d9; }
.hp-addon p { font-size: 15px; margin-top: 4px; max-width: 62ch; }
.hp-price { white-space: nowrap; font-size: 15px; color: var(--muted); }
.hp-price b { font-size: 22px; color: var(--ink); }

.hp-member { background: var(--ink); color: #d8d8d8; }
.hp-member h2 { color: #fff; }
.hp-member .hp-lede { color: #d8d8d8; }
.hp-ticks-light li { color: #fff; }
.hp-member-price { border: 1px solid #333; border-radius: 14px; padding: 36px; }
.hp-member-amt { color: #fff; font-size: 18px; }
.hp-member-amt b { font-size: 72px; line-height: 1; font-weight: 900; letter-spacing: -0.045em; display: block; margin-bottom: 6px; }
.hp-member-price p + p { margin-top: 12px; }
.hp-member-price .hp-btn { margin-top: 28px; }

.hp-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 36px; }

.hp-faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.hp-faq { border-top: 2px solid var(--ink); }
.hp-faq details { border-bottom: 1px solid #d9d9d9; }
.hp-faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 700; color: var(--ink); font-size: 18px; }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400; }
.hp-faq details[open] summary::after { content: "–"; }
.hp-faq details p { padding: 0 40px 22px 0; max-width: 64ch; }
.hp-faq a { text-decoration: underline; }

.hp-final { padding: 96px 0; border-top: 1px solid var(--line); }
.hp-final h2 { font-size: clamp(36px, 5vw, 60px); max-width: 16ch; font-weight: 900; letter-spacing: -0.04em; }

.hp-footer { background: var(--tint); padding: 64px 0 32px; font-size: 15px; }
.hp-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.hp-footer-grid > div p { margin-top: 14px; color: var(--muted); max-width: 32ch; }
.hp-footer nav { display: grid; gap: 10px; align-content: start; }
.hp-footer nav a { text-decoration: none; color: var(--text); }
.hp-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.hp-foot-head { font-weight: 700; color: var(--ink); }
.hp-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid #dcdcdc; font-size: 13px; color: var(--muted); }

.hp-bar { display: none; }

/* An international visitor buys on ip.sonnetskills.com in dollars: no rupee prices here. */
.is-global [data-inr] { display: none !important; }

/* ---------- smaller screens ---------- */

@media (max-width: 1020px) {
  .hp-hero-grid, .hp-split, .hp-faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hp-board { max-width: 600px; }
  .hp-depts { grid-template-columns: repeat(3, 1fr); }
  .hp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .hp-row dl:nth-of-type(1) { grid-column: 1; }
  .hp-proof { grid-template-columns: 1fr 1fr; }
  .hp-proof li:nth-child(n) { padding: 24px 24px 24px 0; border-right: 0; }
  .hp-proof li:nth-child(odd) { border-right: 1px solid var(--line); }
  .hp-proof li:nth-child(even) { padding-left: 24px; }
  .hp-steps { grid-template-columns: 1fr; }
  .hp-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body.hp { font-size: 16px; }
  .hp-nav { display: none; }
  .hp-header-in { gap: 12px; min-height: 60px; }
  .hp-logo { margin-right: auto; font-size: 17px; }
  .hp-auth { gap: 14px; }
  /* The hero button and the bottom bar sell on phones; the header stays one line. */
  .hp-auth .hp-btn[data-buy] { display: none; }
  .hp-peek { min-height: 0; }
  .hp-hero { padding: 36px 0 48px; }
  .hp-lede { font-size: 17px; }
  .hp-cta-row .hp-btn { width: 100%; }
  .hp-squares { gap: 3px; }
  .hp-sq { border-radius: 2px; }
  .hp-depts { display: flex; overflow-x: auto; margin: 32px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 4px; scroll-snap-type: x mandatory; }
  .hp-depts button { flex: 0 0 auto; min-width: 150px; scroll-snap-align: start; }
  .hp-row { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .hp-row h3, .hp-row p { grid-column: 1 / -1; }
  .hp-section, .hp-final { padding: 64px 0; }
  .hp-shelf { grid-template-columns: repeat(5, 72%); margin-right: calc(-1 * var(--gutter)); }
  .hp-proof { grid-template-columns: 1fr; }
  .hp-proof li:nth-child(n) { padding: 22px 0; border-right: 0; }
  .hp-addon { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hp-fit { grid-template-columns: 1fr; gap: 36px; }
  .hp-member-price { padding: 26px; }
  .hp-member-amt b { font-size: 60px; }
  .hp-footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .hp-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .hp-bar.is-on { transform: none; }
  .hp-bar p { font-size: 15px; color: var(--ink); }
  .hp-bar p span { color: var(--muted); margin-left: 6px; }
  body.hp { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-sq, .hp-bar { transition: none; }
}
