/* Hey Make website. Tokens match the Hey Make Design System (light + dark). */

/* Fonts, served from this site (no Google request). Both are SIL Open Font License 1.1; the licence
   texts sit next to the files in /assets/fonts/. Variable fonts: Bricolage Grotesque (optical size + weight), Figtree (weight). */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/bricolage-latin-ext.woff2) format("woff2");
  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: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/bricolage-latin.woff2) format("woff2");
  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; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin-ext.woff2) format("woff2");
  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: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(fonts/figtree-latin.woff2) format("woff2");
  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 {
  --paper: #FBF8F2;
  --surface: #F4EFE3;
  --line: #E2DACA;
  --line-strong: #CFC5B0;
  --dot: #D8D0BE;
  --ink: #2F2E2B;
  --muted: #66645D;
  --select: #6E7469;
  --select-ink: #FDFBF7;
  --coral: #D8401F;
  --coral-tile: #FF7A5C;
  --tile-ink: #16120A;
  --header-bg: rgba(251, 248, 242, 0.85);
  --icon-shadow: rgba(30, 29, 27, 0.22);
  --display: "Bricolage Grotesque", Figtree, sans-serif;
  --sans: Figtree, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F0F10; --surface: #161618; --line: #26262A; --line-strong: #3A3A40; --dot: #26262A;
    --ink: #EDEDED; --muted: #8A8A93; --coral: #FF7A5C;
    --header-bg: rgba(15, 15, 16, 0.82); --icon-shadow: rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F0F10; --surface: #161618; --line: #26262A; --line-strong: #3A3A40; --dot: #26262A;
  --ink: #EDEDED; --muted: #8A8A93; --coral: #FF7A5C;
  --header-bg: rgba(15, 15, 16, 0.82); --icon-shadow: rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, ul, ol { margin: 0; }
:focus-visible { outline: 2px solid var(--select); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 12px; }
@media (max-width: 640px) { .site-header { position: static; } .nav { gap: 2px 16px; } }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.mark { width: 30px; height: 30px; flex: none; display: block; border-radius: 15%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mark { box-shadow: 0 0 0 1px rgba(255,255,255,.14); } }
:root[data-theme="dark"] .mark { box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
/* The wordmark, copied from the app (heymake/src/shared/ui.css, .wordmark): a light "hey", a bold "make" with one
   workspace colour per letter. Hover the logo (.brand) and each letter of "make" melts into a dot, one after another. */
.wordmark { font-family: "Bricolage Grotesque", "Segoe UI", sans-serif; font-size: 22px; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; display: inline-flex; align-items: baseline; }
.wordmark .wm-hey { font-weight: 500; color: #16120A; }
.wordmark .wm-make { font-weight: 800; margin-left: .02em; }
.wordmark .wm-l { position: relative; display: inline-block; }
.wordmark .wm-ch { display: inline-block; background-image: var(--g); background-clip: text; -webkit-background-clip: text; color: transparent; padding-bottom: .08em;
  transition: transform .5s cubic-bezier(.65, 0, .35, 1), opacity .35s ease, filter .4s ease; transform-origin: 50% 62%; }
.wordmark .wm-dot { position: absolute; left: 50%; top: 58%; width: .4em; height: .4em; border-radius: 50%; background-image: var(--g); pointer-events: none;
  transform: translate(calc(-50% + var(--dx, 0px)), -50%) scale(0); opacity: 0; transition: transform .55s cubic-bezier(.34, 1.4, .64, 1), opacity .25s ease; }
.wordmark .wm-0 { --g: linear-gradient(170deg, #FFA235, #EE5A2C); }
.wordmark .wm-1 { --g: linear-gradient(170deg, #F26AAE, #B957E0); }
.wordmark .wm-2 { --g: linear-gradient(170deg, #4E98FF, #1AA6CC); }
.wordmark .wm-3 { --g: linear-gradient(170deg, #22C2A6, #1FA862); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wordmark .wm-hey { color: #FFFFFF; }
  :root:not([data-theme="light"]) .wordmark .wm-0 { --g: linear-gradient(170deg, #FFC24D, #FF7A45); }
  :root:not([data-theme="light"]) .wordmark .wm-1 { --g: linear-gradient(170deg, #FF9CC8, #D383F2); }
  :root:not([data-theme="light"]) .wordmark .wm-2 { --g: linear-gradient(170deg, #8CC0FF, #42CBEB); }
  :root:not([data-theme="light"]) .wordmark .wm-3 { --g: linear-gradient(170deg, #55DCC6, #3CCB84); }
}
:root[data-theme="dark"] .wordmark .wm-hey { color: #FFFFFF; }
:root[data-theme="dark"] .wordmark .wm-0 { --g: linear-gradient(170deg, #FFC24D, #FF7A45); }
:root[data-theme="dark"] .wordmark .wm-1 { --g: linear-gradient(170deg, #FF9CC8, #D383F2); }
:root[data-theme="dark"] .wordmark .wm-2 { --g: linear-gradient(170deg, #8CC0FF, #42CBEB); }
:root[data-theme="dark"] .wordmark .wm-3 { --g: linear-gradient(170deg, #55DCC6, #3CCB84); }
.brand:hover .wordmark .wm-ch { transform: scale(.2); opacity: 0; filter: blur(3px); }
.brand:hover .wordmark .wm-dot { transform: translate(calc(-50% + var(--dx, 0px)), -50%) scale(1); opacity: 1; }
.wordmark .wm-1 > * { transition-delay: 50ms; }
.wordmark .wm-2 > * { transition-delay: 100ms; }
.wordmark .wm-3 > * { transition-delay: 150ms; }
@media (prefers-reduced-motion: reduce) { .wordmark .wm-ch, .wordmark .wm-dot { transition: none; } .brand:hover .wordmark .wm-ch { transform: none; opacity: 1; filter: none; } .brand:hover .wordmark .wm-dot { opacity: 0; } }
@media (max-width: 480px) { .wordmark { font-size: 19px; } }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 14px; }
.nav a { color: var(--muted); padding-block: 10px; transition: color .2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.theme-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--muted); cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.theme-btn:hover { color: var(--ink); border-color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 4px; font-size: 14px; font-weight: 600; transition: transform .15s ease, opacity .15s ease, border-color .2s ease; }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { opacity: .88; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }

/* Type helpers */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
.h1 { font-size: clamp(38px, 6.2vw, 76px); line-height: 1.03; }
.h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }

/* Sections */
.section { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.split { display: flex; flex-wrap: wrap; gap: 32px 40px; }
.split > .side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split > .main { flex: 999 1 560px; min-width: 0; }

/* Hero */
.hero { padding: 88px 0 36px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero .h1 { max-width: 880px; }
.hero .lead { max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Workspace icons: same as the app (heymake/src/shared/ui.css, "Workspace icons", commit e428e3e) */
:root { --tile-shadow: 0 4px 12px rgba(30,24,10,.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tile-shadow: none; } }
:root[data-theme="dark"] { --tile-shadow: none; }
.ws-icon { flex: none; display: block; overflow: visible; }
.ws-tile { display: inline-grid; place-items: center; flex: none; box-shadow: var(--tile-shadow); transition: transform .2s ease; }
.ws-tile.small { box-shadow: none; }
.ws-tile.tile-3d { background: linear-gradient(150deg, #FFC24D, #F26B3A); }
.ws-tile.tile-px { background: linear-gradient(150deg, #FF8CBC, #C46FE6); }
.ws-tile.tile-ph { background: linear-gradient(150deg, #7CB3FF, #2FB8D9); }
.ws-tile.tile-vd { background: linear-gradient(150deg, #3FCDB7, #2FB873); }
.ws-icon .m-cube, .ws-icon .m-heart, .ws-icon .m-clap, .ws-icon .m-sun { transform-box: fill-box; }
.ws-icon .m-cube, .ws-icon .m-heart { transform-origin: center; }
.ws-icon .m-clap { transform-origin: 0% 100%; }
@media (prefers-reduced-motion: no-preference) {
  :is(.ws-tab, .other, .ws-motion):hover .m-cube { animation: ws-cube .6s cubic-bezier(.3,.7,.3,1); }
  :is(.ws-tab, .other, .ws-motion):hover .m-heart { animation: ws-beat .5s ease; }
  :is(.ws-tab, .other, .ws-motion):hover .m-sun { animation: ws-rise .6s ease; }
  :is(.ws-tab, .other, .ws-motion):hover .m-clap { animation: ws-clap .45s ease; }
  :is(.ws-tab, .other):hover .ws-tile { transform: translateY(-2px); }
  @keyframes ws-cube { 0% { transform: rotate(0); } 35% { transform: rotate(-10deg) scale(1.04); } 100% { transform: rotate(0); } }
  @keyframes ws-beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.12); } 55% { transform: scale(.97); } }
  @keyframes ws-rise { 0% { transform: translateY(6px); opacity: 0; } 100% { transform: none; opacity: 1; } }
  @keyframes ws-clap { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(10deg); } }
}

/* Workspace switcher */
.ws-tabs { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ws-tab { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 20px 8px 10px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.ws-tab:hover { border-color: var(--muted); }
.ws-tab[aria-selected="true"] { background: var(--select); border-color: var(--select); color: var(--select-ink); }
.ws-tab[aria-selected="true"] .ws-tile { box-shadow: 0 0 0 2px var(--select-ink); }
.ws-tab .name { display: block; font-size: 15px; font-weight: 600; }
.ws-tab .kind { display: block; font-size: 12px; opacity: .8; }

/* Placeholders for screenshots */
.shot { background-color: var(--surface); background-image: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 0); background-size: 14px 14px; border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; max-width: 100%; }
.shot span { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.shot svg { color: var(--muted); }

/* Showcase */
.showcase { padding: 8px 0 24px; display: flex; flex-direction: column; gap: 20px; }
.showcase-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.showcase-grid .big { flex: 999 1 560px; min-width: 0; aspect-ratio: 16 / 10; }
.showcase-grid .side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.showcase-grid .side .shot { flex: 1 1 0; min-height: 180px; }
.showcase-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.showcase-foot .who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.showcase-foot .title { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; display: block; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  .animate > * { animation: rise .5s cubic-bezier(.16, 1, .3, 1) both; }
  .animate > *:nth-child(2) { animation-delay: .07s; }
}

/* Feature lists */
.feat-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.feat-list li { display: flex; gap: 14px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.feat-list .n { font-size: 12px; color: var(--muted); min-width: 20px; font-variant-numeric: tabular-nums; }
.feat-list .t { display: block; font-size: 15px; font-weight: 600; }
.feat-list .d { display: block; font-size: 14px; color: var(--muted); }

.cards { display: flex; flex-wrap: wrap; gap: 12px; }
.card { flex: 1 1 320px; min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.card h3 { font-size: 17px; font-weight: 600; }
.card p { font-size: 15px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.chip { padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.chip.on { background: var(--coral-tile); border-color: var(--coral-tile); color: var(--tile-ink); font-weight: 600; }
.layout-diagram { display: grid; grid-template-columns: 3fr 1fr; grid-template-rows: 24px 52px 40px; gap: 6px; font-size: 11px; color: var(--muted); }
.layout-diagram > div { border: 1px solid var(--line); border-radius: 4px; background: var(--paper); display: grid; place-items: center; }
.layout-diagram .top { grid-column: 1 / 3; }
.layout-diagram .view { grid-row: 2 / 4; }

/* Maker */
.maker { display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: center; }
.maker .shot { width: 168px; height: 168px; flex: none; }
.maker .text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* Pricing */
.price-box { width: 100%; max-width: 440px; margin: 0 auto; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price strong { font-family: var(--display); font-size: 52px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex: none; margin-top: 4px; color: var(--select); }

.platforms { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; font-size: 14px; color: var(--muted); }
.platforms .on { color: var(--ink); }

.site-footer { margin-top: 72px; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 28px 40px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a:hover { color: var(--ink); }

/* Workspace pages */
.pills { padding-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 14px; }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); transition: border-color .2s ease; }
.pill:hover { border-color: var(--muted); }
.pill[aria-current="page"] { background: var(--select); border-color: var(--select); color: var(--select-ink); }
.ws-hero { padding: 52px 0 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.ws-hero .ws-tile { box-shadow: var(--tile-shadow); }
.hero-shot { aspect-ratio: 16 / 9; border-radius: 7px; }
.feat-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.feat-card { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s ease; }
.feat-card:hover { border-color: var(--line-strong); }
.feat-card .shot { aspect-ratio: 16 / 9; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background-color: var(--paper); }
.feat-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.feat-card .head { display: flex; align-items: baseline; gap: 12px; }
.feat-card .n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.feat-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.feat-card ul { padding-left: 30px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; }
.every { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.every li { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.every li.later { color: var(--muted); }
.others { display: flex; flex-wrap: wrap; gap: 12px; }
.other { flex: 1 1 320px; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 20px 22px; display: flex; align-items: center; gap: 16px; transition: border-color .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.other:hover { border-color: var(--muted); transform: translateY(-2px); }
.other .txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.other .txt strong { font-size: 18px; font-weight: 600; }
.band { margin-top: 72px; padding: 40px 32px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Pricing: Free and Member side by side */
.plans { width: 100%; max-width: 920px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 12px; text-align: left; align-items: stretch; }
.plans .price-box { max-width: none; margin: 0; }
.plans .price-box.member { background: var(--paper); border-color: var(--ink); }
.plan-name { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plans .ticks { flex: 1 1 auto; }
.ticks b { display: block; font-weight: 600; }
.ticks .perk { display: block; font-size: 14px; color: var(--muted); }
.btn.soon { cursor: default; color: var(--muted); }
.btn.soon:active { transform: none; }

[hidden] { display: none !important; }
