/* Layouts for generated pages: homepage, hubs, /apps, /notes. */
.landing main { padding-bottom: 72px; }
body.page-sketch .ea-sec { max-width: 1040px; margin: 0 auto; padding: 44px 24px 0; }
.ea-sec h2 { font: 800 clamp(26px, 3.4vw, 40px)/1.05 var(--font-ui); letter-spacing: var(--track-tight); margin: 0 0 22px; }
.ea-sec h2.ea-center, .ea-center { text-align: center; justify-content: center; }
.ea-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.ea-sec-head a { font-weight: 700; color: var(--ink); text-decoration: none; }

body.page-sketch .ea-home-hero { padding: 0; max-width: none; position: relative; min-height: 500px; display: grid; place-items: center; overflow: hidden; }
.ea-hero-art .ea-mascot { position: absolute; }
.ea-hero-copy { position: relative; z-index: 2; text-align: center; max-width: 820px; padding: 28px 24px 24px; }
.ea-hero-copy h1 { font: 800 clamp(38px, 5.4vw, 60px)/1.04 var(--font-ui); letter-spacing: -0.055em; margin: 0; }
.ea-rot-lead { display: block; }
.ea-rot { display: inline-grid; justify-items: center; align-items: center; position: relative; padding-bottom: .3em; }
.ea-rw { grid-area: 1/1; position: relative; text-decoration: none; white-space: nowrap; opacity: 0; transform: translateY(55%); visibility: hidden; pointer-events: none;
    transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), opacity .35s ease, visibility 0s .35s; }
.ea-rw svg { position: absolute; left: -4px; bottom: -.26em; width: calc(100% + 8px); height: .26em; overflow: visible; }
.ea-rw.is-on { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.ea-rw-sum { transform: translateY(55%); }
.ea-rw.is-draw path { animation: ea-draw .6s .15s ease-out both; }
@keyframes ea-draw { from { stroke-dasharray: 1 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1 1; stroke-dashoffset: 0; } }
.ea-rw.is-out { opacity: 0; transform: translateY(-55%); visibility: visible; transition-delay: 0s; }
.ea-hero-art .ea-peek { width: 90px; top: 40%; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); animation: none; }
.ea-peek-l { left: 1%; transform: translateX(-160%); }
.ea-peek-r { right: 1%; transform: translateX(160%); }
.ea-peek.is-peek { transform: none; }
.is-hop > svg { animation: ea-hop .5s cubic-bezier(.3, 1.4, .5, 1); transform-origin: 50% 100%; }
@keyframes ea-hop { 0% { transform: none; } 40% { transform: translateY(-14px) rotate(-5deg); } 100% { transform: none; } }
.ea-hero-copy p { font-size: 17px; color: var(--ink-2); margin: 24px auto; max-width: 520px; line-height: 1.5; }
.ea-hero-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ea-hero-note { position: absolute; right: -40px; bottom: 0; transform: rotate(-6deg); }


body.page-sketch section.ea-hub-hero.ea-hub-hero { background: var(--hub-tint); padding: 0; margin: 18px auto 0; max-width: 1040px; border-radius: 28px; }
body.page-sketch section.ea-hub-hero.plain.plain { background: transparent; padding: 0; }
.ea-hub-hero .in { display: flex; align-items: center; gap: 28px; padding: 34px 36px; }
.ea-hub-hero .ea-mascot { width: 150px; flex: none; }
.ea-hub-hero h1 { font: 800 clamp(34px, 5vw, 54px)/1 var(--font-ui); letter-spacing: -0.05em; margin: 0 0 10px; color: var(--ink); }
.ea-hub-hero p { margin: 0 0 8px; font-size: 17px; color: var(--ink-2); max-width: 560px; }
.ea-hub-hero .ea-note { color: var(--hub-ink); }

.ea-app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ea-app-tile { display: flex; gap: 14px; align-items: center; padding: 14px; color: var(--ink); text-decoration: none; }
.ea-app-tile img { width: 56px; height: 56px; }
.ea-app-tile strong { display: block; font-size: 16px; }
.ea-app-tile small { color: var(--ink-2); font-size: 13px; }

.ea-tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.ea-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .ea-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ea-post-grid { grid-template-columns: minmax(0, 1fr); } }
.ea-tool { display: flex; flex-direction: column; gap: 6px; padding: 20px; color: var(--ink); text-decoration: none; }
.ea-tool strong { font-size: 16.5px; line-height: 1.3; letter-spacing: -0.01em; }
.ea-tool small { color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.ea-tool { gap: 8px; }
.ea-tool .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ea-tool .emo { display: grid; place-items: center; width: 52px; height: 52px; font-size: 28px; line-height: 1; border-radius: 16px; background: var(--hub-tint); box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(70, 45, 20, .16); transform: rotate(-4deg); transition: transform .35s var(--spring); }
.ea-tool:hover .emo { transform: rotate(0) scale(1.08); }
.ea-tool .pill { font: 700 11px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--hub-ink); background: #fff; border: 1px solid var(--hub-tint); border-radius: 99px; padding: 5px 9px; }
.ea-tool .bottom { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ea-tool .go { font-weight: 700; font-size: 13px; color: var(--hub-ink); }
.ea-tool .app { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.ea-tool .app img { width: 22px; height: 22px; flex: none; }
.ea-post { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: var(--ink); text-decoration: none; min-width: 0; }
.ea-post .cover { position: relative; display: grid; place-items: center; height: 120px; background: var(--hub-tint); flex: none; }
.ea-post .cover .ea-sticker { width: 56px; height: 56px; border-radius: 24%; box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(70, 45, 20, .2); transform: rotate(-5deg); transition: transform .35s var(--spring); }
.ea-post:hover .cover .ea-sticker { transform: rotate(0) scale(1.06); }
.ea-post .tnote { position: absolute; right: 12px; top: 50%; margin-top: -14px; font: 700 21px/1 var(--font-note); color: var(--hub-ink); transform: rotate(-6deg); white-space: nowrap; }
.ea-post .body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 8px; flex: 1; }
.ea-post .topic { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font: 600 12px/1 var(--font-ui); color: var(--hub-ink); background: var(--hub-tint); border-radius: 99px; padding: 4px 10px 4px 5px; }
.ea-post .topic:not(:has(img)) { padding-left: 10px; }
.ea-post .topic img { width: 18px; height: 18px; flex: none; }
.ea-post .kind { font: 700 10.5px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-top: 2px; }
.ea-post strong { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ea-post small { color: var(--ink-2); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ea-post .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 18px 16px; font-size: 12px; color: var(--ink-3); }
.ea-post .go { font-weight: 700; font-size: 13px; color: var(--hub-ink); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .ea-post .cover .ea-sticker { transition: none; } .ea-post:hover .cover .ea-sticker { transform: rotate(-5deg); } }

.ea-icon-wall { display: flex; flex-wrap: wrap; gap: 18px; }
.ea-icon-wall a { transition: transform .35s var(--spring); }
.ea-icon-wall a:nth-child(3n) { transform: rotate(-4deg); }
.ea-icon-wall a:nth-child(3n+1) { transform: rotate(3deg); }
.ea-icon-wall a:hover { transform: translateY(-6px) rotate(0) scale(1.08); }
.ea-studio p { color: var(--ink-2); font-size: 16px; }

body.page-sketch .ea-faq { max-width: 1040px; margin: 0 auto; padding: 44px 24px 0; }
.ea-faq h2 { font: 800 32px/1 var(--font-ui); letter-spacing: var(--track-tight); }
.ea-faq-item { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 18px 20px; margin-bottom: 14px; }
.ea-faq-item h3 { margin: 0 0 6px; font-size: 17px; }
.ea-faq-item p { margin: 0; color: var(--ink-2); }


/* demos */
.d-train { width: 100%; max-width: 520px; background: #fff; border-radius: 14px; padding: 16px 18px; }
.d-train .row { display: flex; justify-content: space-between; font-size: 12px; color: #888; font-weight: 600; }
.d-train .row b { color: var(--ink); font-size: 20px; letter-spacing: -.03em; }
.d-train .track { position: relative; height: 10px; background: #e1efef; border-radius: 99px; margin: 16px 0 8px; }
.d-train .track i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: #2e8b8b; animation: d-ride 7s linear infinite; }
.d-train .track .train { position: absolute; right: -2px; top: 50%; transform: translateY(-55%); width: 34px; height: 16px; display: block; }
@keyframes d-ride { from { width: 4%; } to { width: 94%; } }
.d-train .stations { display: flex; justify-content: space-between; font-size: 11px; color: #999; font-weight: 600; }
.d-water { background: #fff; border-radius: 14px; padding: 14px; width: 100%; }
.d-water .q { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.d-water .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.d-water button { border: 1.5px solid #e5e2dc; background: #fff; border-radius: 99px; padding: 5px 10px; font: 600 12px var(--font-ui); cursor: pointer; }
.d-water button.on { background: #6aa84f; border-color: #6aa84f; color: #fff; }
.d-water .ans { margin-top: 12px; background: #eef7e8; color: #3e6b28; border-radius: 10px; padding: 9px 11px; font-size: 12.5px; font-weight: 700; }
.d-pol { display: flex; padding: 10px 0; }
.d-pol div { width: 80px; height: 100px; background: #fff; border-radius: 4px; padding: 6px 6px 20px; box-shadow: 0 6px 14px rgba(0,0,0,.1); margin-left: -14px; transition: transform .35s cubic-bezier(.3,1.7,.5,1); }
.d-pol div:nth-child(1) { transform: rotate(-6deg); } .d-pol div:nth-child(3) { transform: rotate(6deg); }
.d-pol div i { display: block; height: 100%; border-radius: 2px; }
a:hover .d-pol div:nth-child(1) { transform: rotate(-14deg) translateX(-12px); }
a:hover .d-pol div:nth-child(3) { transform: rotate(14deg) translateX(12px); }
.d-cup { background: #fff; border-radius: 14px; padding: 14px 16px; text-align: center; }
.d-cup small { display: block; color: #888; font-weight: 600; font-size: 12px; }
.d-cup .stars { font-size: 26px; letter-spacing: 4px; color: #f5b400; }
.d-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.d-chips span { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 99px; padding: 7px 12px; font-size: 12.5px; font-weight: 700; }
.d-chips i { font-style: normal; }

@media (max-width: 760px) {
    body.page-sketch .ea-home-hero { min-height: 0; padding-top: 130px; }
    .ea-rw { white-space: normal; }
    .ea-rw-sum { max-width: 100%; }
    .ea-hero-art .ea-mascot:nth-child(n+3):not(.ea-peek) { display: none; }
    .ea-hero-art .ea-mascot { width: 92px !important; top: 10px !important; }
    .ea-hero-art .ea-peek { width: 72px !important; left: calc(50% - 36px) !important; right: auto !important; top: 0 !important; transform: translateY(-130%); }
    .ea-hero-art .ea-peek.is-peek { transform: none; }
    .ea-hero-art .ea-mascot:nth-child(2) { left: auto !important; right: 8% !important; }
    .ea-hero-note { position: static; display: block; margin-top: 10px; }
    .ea-hero-copy { padding-bottom: 20px; }
    body.page-sketch section.ea-hub-hero.ea-hub-hero { margin-left: 16px; margin-right: 16px; }
    .ea-hub-hero .in { flex-direction: column; text-align: center; padding: 26px 20px; }
    .ea-hub-hero .ea-mascot { width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
    .d-train .track i { animation: none; width: 60%; }
    .ea-rw, .is-hop > svg { transition: none; animation: none; }
}

body.page-sketch #corners.ea-sec { padding-top: 8px; }
body.page-sketch section.ea-hub-hero.ea-hub-hero { margin-top: 14px; }

/* bento: whole card is clickable through the heading link; demo controls sit above it */
.ea-bento .ea-card { position: relative; }
.ea-bento h3 a { color: inherit; text-decoration: none; }
.ea-bento h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.ea-bento .meta a { display: block; margin-top: 6px; color: var(--hub-ink, var(--ink)); font-weight: 700; text-decoration: none; position: relative; z-index: 2; }
.ea-bento .d-water button { position: relative; z-index: 2; }
.ea-bento .ea-card:focus-within { outline: 2px solid var(--tomato); outline-offset: 3px; }
.ea-sec h2 a { color: var(--tomato, var(--ink)); text-decoration: none; }

.blog-post-card { background: #fff; border: 0 !important; border-radius: 16px !important; box-shadow: var(--shadow-card) !important; transition: transform .3s var(--spring); }
.blog-post-card:hover { transform: translateY(-4px) rotate(-.3deg); }
.bf-chip { border-radius: 12px !important; border: 0 !important; background: #fff; box-shadow: 0 1px 0 var(--rule); font-weight: 700; }
.bf-chip.is-on { background: var(--ink); color: #fff; }

/* featured flagship card */
.ea-bento .ea-card.featured { box-shadow: var(--shadow-card), 0 0 0 2px rgba(255, 90, 54, .35), 0 14px 30px rgba(255, 90, 54, .14); }
.ea-bento .featured .ea-demo { min-height: 180px; }
.ea-featured-pill { position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--tomato); color: #fff; font: 700 11px/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; border-radius: 99px; transform: rotate(-3deg); box-shadow: var(--shadow-sticker); pointer-events: none; }
.ea-bento .meta.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.ea-bento .meta.acts a { display: inline-flex; align-items: center; gap: 7px; margin-top: 0; }
.ea-bento .meta.acts .try { color: var(--tomato-ink); }
.ea-bento .meta.acts img { width: 22px; height: 22px; }

/* Hero mascots link to their hub; a handwritten label appears on hover. */
a.ea-mascot-link { cursor: pointer; text-decoration: none; }
a.ea-mascot-link::after { content: attr(data-label); position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%) rotate(-4deg) translateY(4px);
    font: 700 22px/1 var(--font-note); color: var(--tomato); white-space: nowrap; opacity: 0; transition: opacity .2s, transform .3s var(--spring); pointer-events: none; }
a.ea-mascot-link:hover::after, a.ea-mascot-link:focus-visible::after { opacity: 1; transform: translateX(-50%) rotate(-4deg); }

/* Sticker outline on the drawing only, so the hover label stays clean text. */
a.ea-mascot-link.ea-sticker-svg { filter: none; }
a.ea-mascot-link > svg { filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 10px 14px rgba(70, 45, 20, .18)); }
/* Mascots in the lower half of the hero show their label above, so the hero's overflow clip never cuts it. */
a.ea-mascot-link[data-label-up]::after { bottom: auto; top: -30px; }
